]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
powerpc/mpc8xxx: Move HWCONFIG_BUFFER_SIZE into config.h
authorYork Sun <yorksun@freescale.com>
Fri, 17 Aug 2012 09:00:54 +0000 (09:00 +0000)
committerAndy Fleming <afleming@freescale.com>
Thu, 23 Aug 2012 17:16:56 +0000 (12:16 -0500)
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>
arch/powerpc/cpu/mpc85xx/cpu_init.c
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
arch/powerpc/cpu/mpc8xxx/ddr/options.c
arch/powerpc/include/asm/config.h

index f293265c860db62c688b2132bea82784d3bdcfe5..afb56719da29f2072fd0c35ea3de95656a7e82cc 100644 (file)
@@ -48,8 +48,6 @@
 
 #include "../../../../drivers/block/fsl_sata.h"
 
-#define HWCONFIG_BUFFER_SIZE 128
-
 DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef CONFIG_QE
index 8aac1dec0f2e2c27a4391c88f5e1c25694fc7478..2a6806036975673e5d504043211577a324ca69e7 100644 (file)
@@ -46,8 +46,6 @@
 
 static u32 serdes_prtcl_map;
 
-#define HWCONFIG_BUFFER_SIZE   128
-
 #ifdef DEBUG
 static const char *serdes_prtcl_str[] = {
        [NONE] = "NA",
index 2923456ebe90715cb0b735758e4beb6e381c8aee..13e48252742d50a5a782ff9123d325612bc01b43 100644 (file)
@@ -19,7 +19,6 @@
  * This is pretty fragile on both the use of stack and if the buffer is big
  * enough. However we will get a warning from getenv_f for the later.
  */
-#define HWCONFIG_BUFFER_SIZE   128
 
 /* Board-specific functions defined in each board's ddr.c */
 extern void fsl_ddr_board_options(memctl_options_t *popts,
index d13863693954669d54c1f4467040bcec45a05cc2..67cea01aae84b7242ee0729f9a19b127dd60a6d1 100644 (file)
 #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