Skip to content
Snippets Groups Projects
Commit 867b06f4 authored by chenhui zhao's avatar chenhui zhao Committed by Kumar Gala
Browse files

powerpc/mpc8548cds: Update config file


- Increase the size of malloc space.
- Enable e1000 network card.
- Show pci devices on startup.
- Change the location of env address.
- Use hwconfig to turn off ECC by default.

[Kumar Gala] Fixed white space formating for CONFIG_EXTRA_ENV_SETTINGS

Signed-off-by: default avatarZhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 1605cc9e
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,7 @@ extern unsigned long get_clock_freq(void); ...@@ -86,6 +86,7 @@ extern unsigned long get_clock_freq(void);
#define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup*/ #define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup*/
#define CONFIG_DDR_SPD #define CONFIG_DDR_SPD
#define CONFIG_DDR_ECC
#define CONFIG_ECC_INIT_VIA_DDRCONTROLLER /* DDR controller or DMA? */ #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER /* DDR controller or DMA? */
#define CONFIG_MEM_INIT_VALUE 0xDeadBeef #define CONFIG_MEM_INIT_VALUE 0xDeadBeef
...@@ -162,6 +163,7 @@ extern unsigned long get_clock_freq(void); ...@@ -162,6 +163,7 @@ extern unsigned long get_clock_freq(void);
#define CONFIG_SYS_FLASH_CFI #define CONFIG_SYS_FLASH_CFI
#define CONFIG_SYS_FLASH_EMPTY_INFO #define CONFIG_SYS_FLASH_EMPTY_INFO
#define CONFIG_HWCONFIG /* enable hwconfig */
/* /*
* SDRAM on the Local Bus * SDRAM on the Local Bus
...@@ -276,7 +278,7 @@ extern unsigned long get_clock_freq(void); ...@@ -276,7 +278,7 @@ extern unsigned long get_clock_freq(void);
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (128 * 1024) /* Reserved for malloc */ #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) /* Reserved for malloc */
/* Serial Port */ /* Serial Port */
#define CONFIG_CONS_INDEX 2 #define CONFIG_CONS_INDEX 2
...@@ -381,8 +383,9 @@ extern unsigned long get_clock_freq(void); ...@@ -381,8 +383,9 @@ extern unsigned long get_clock_freq(void);
#undef CONFIG_EEPRO100 #undef CONFIG_EEPRO100
#undef CONFIG_TULIP #undef CONFIG_TULIP
#define CONFIG_E1000 /* Define e1000 pci Ethernet card */
#undef CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
...@@ -423,8 +426,12 @@ extern unsigned long get_clock_freq(void); ...@@ -423,8 +426,12 @@ extern unsigned long get_clock_freq(void);
* Environment * Environment
*/ */
#define CONFIG_ENV_IS_IN_FLASH 1 #define CONFIG_ENV_IS_IN_FLASH 1
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x40000) #if CONFIG_SYS_MONITOR_BASE > 0xfff80000
#define CONFIG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */ #define CONFIG_ENV_ADDR 0xfff80000
#else
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
#endif
#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K for env */
#define CONFIG_ENV_SIZE 0x2000 #define CONFIG_ENV_SIZE 0x2000
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
...@@ -524,20 +531,21 @@ extern unsigned long get_clock_freq(void); ...@@ -524,20 +531,21 @@ extern unsigned long get_clock_freq(void);
#define CONFIG_BAUDRATE 115200 #define CONFIG_BAUDRATE 115200
#define CONFIG_EXTRA_ENV_SETTINGS \ #define CONFIG_EXTRA_ENV_SETTINGS \
"netdev=eth0\0" \ "hwconfig=fsl_ddr:ecc=off\0" \
"uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ "netdev=eth0\0" \
"tftpflash=tftpboot $loadaddr $uboot; " \ "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \
"protect off " MK_STR(CONFIG_SYS_TEXT_BASE) " +$filesize; " \ "tftpflash=tftpboot $loadaddr $uboot; " \
"erase " MK_STR(CONFIG_SYS_TEXT_BASE) " +$filesize; " \ "protect off " MK_STR(CONFIG_SYS_TEXT_BASE) " +$filesize; " \
"cp.b $loadaddr " MK_STR(CONFIG_SYS_TEXT_BASE) " $filesize; " \ "erase " MK_STR(CONFIG_SYS_TEXT_BASE) " +$filesize; " \
"protect on " MK_STR(CONFIG_SYS_TEXT_BASE) " +$filesize; " \ "cp.b $loadaddr " MK_STR(CONFIG_SYS_TEXT_BASE) " $filesize; " \
"cmp.b $loadaddr " MK_STR(CONFIG_SYS_TEXT_BASE) " $filesize\0" \ "protect on " MK_STR(CONFIG_SYS_TEXT_BASE) " +$filesize; " \
"consoledev=ttyS1\0" \ "cmp.b $loadaddr " MK_STR(CONFIG_SYS_TEXT_BASE) " $filesize\0"\
"ramdiskaddr=2000000\0" \ "consoledev=ttyS1\0" \
"ramdiskfile=ramdisk.uboot\0" \ "ramdiskaddr=2000000\0" \
"fdtaddr=c00000\0" \ "ramdiskfile=ramdisk.uboot\0" \
"fdtfile=mpc8548cds.dtb\0" "fdtaddr=c00000\0" \
"fdtfile=mpc8548cds.dtb\0"
#define CONFIG_NFSBOOTCOMMAND \ #define CONFIG_NFSBOOTCOMMAND \
"setenv bootargs root=/dev/nfs rw " \ "setenv bootargs root=/dev/nfs rw " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment