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>
This commit is contained in:
parent
1d083ff2c4
commit
7ac3cc20e0
|
@ -48,8 +48,6 @@
|
|||
|
||||
#include "../../../../drivers/block/fsl_sata.h"
|
||||
|
||||
#define HWCONFIG_BUFFER_SIZE 128
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#ifdef CONFIG_QE
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
|
||||
static u32 serdes_prtcl_map;
|
||||
|
||||
#define HWCONFIG_BUFFER_SIZE 128
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char *serdes_prtcl_str[] = {
|
||||
[NONE] = "NA",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue