summaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2012-08-17 09:00:54 +0000
committerAndy Fleming <afleming@freescale.com>2012-08-23 12:16:56 -0500
commit7ac3cc20e09e10051fb42e4bb2325177c8b32e86 (patch)
tree424c6d6ec1243edc94b05905e4c29ac1842fd70f /arch/powerpc/include
parent1d083ff2c4be7864aacec30a82d01e90b78e680a (diff)
downloadu-boot-imx-7ac3cc20e09e10051fb42e4bb2325177c8b32e86.zip
u-boot-imx-7ac3cc20e09e10051fb42e4bb2325177c8b32e86.tar.gz
u-boot-imx-7ac3cc20e09e10051fb42e4bb2325177c8b32e86.tar.bz2
powerpc/mpc8xxx: Move HWCONFIG_BUFFER_SIZE into config.h
Before proper environment is setup, we extract hwconfig and put it into a buffer with size HWCONFIG_BUFFER_SIZE. We need to enlarge the buffer to accommodate longer string. Since this macro is used in multiple files, we move it into arch/powerpc/include/asm/config.h. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h
index d138636..67cea01 100644
--- a/arch/powerpc/include/asm/config.h
+++ b/arch/powerpc/include/asm/config.h
@@ -29,6 +29,10 @@
#include <asm/config_mpc86xx.h>
#endif
+#ifndef HWCONFIG_BUFFER_SIZE
+ #define HWCONFIG_BUFFER_SIZE 256
+#endif
+
/* CONFIG_HARD_SPI triggers SPI bus initialization in PowerPC */
#if defined(CONFIG_MPC8XXX_SPI) || defined(CONFIG_FSL_ESPI)
# ifndef CONFIG_HARD_SPI