From b2893e1fcb28fad8c8b317104df8cee0142c7631 Mon Sep 17 00:00:00 2001 From: Timur Tabi Date: Mon, 5 Nov 2007 09:34:06 -0600 Subject: 83xx: fix CFG_ENV_ADDR and CFG_ENV_SECT_SIZE definitions Fix the definitions of CFG_ENV_ADDR and CFG_ENV_SECT_SIZE for all of the currently-defined 83xx boards. This change guarantees that the environment will be located on the first flash sector after the U-Boot image. Signed-off-by: Timur Tabi Signed-off-by: Kim Phillips --- include/configs/MPC8360EMDS.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/configs/MPC8360EMDS.h') diff --git a/include/configs/MPC8360EMDS.h b/include/configs/MPC8360EMDS.h index 41f062c..8098951 100644 --- a/include/configs/MPC8360EMDS.h +++ b/include/configs/MPC8360EMDS.h @@ -170,6 +170,7 @@ #undef CFG_RAMBOOT #endif +/* CFG_MONITOR_LEN must be a multiple of CFG_ENV_SECT_SIZE */ #define CFG_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ #define CFG_MALLOC_LEN (128 * 1024) /* Reserved for malloc */ @@ -443,8 +444,8 @@ #ifndef CFG_RAMBOOT #define CFG_ENV_IS_IN_FLASH 1 - #define CFG_ENV_ADDR (CFG_MONITOR_BASE + 0x40000) - #define CFG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */ + #define CFG_ENV_ADDR (CFG_MONITOR_BASE + CFG_MONITOR_LEN) + #define CFG_ENV_SECT_SIZE 0x20000 #define CFG_ENV_SIZE 0x2000 #else #define CFG_NO_FLASH 1 /* Flash is not usable now */ -- cgit v1.1 From e6af9932d31171e35db880e7b2f29f903b1b7660 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Mon, 26 Nov 2007 11:00:54 -0600 Subject: Remove CONFIG options related to OF that we dont use The MPC8360E MDS config defined: CONFIG_OF_HAS_BD_T CONFIG_OF_HAS_UBOOT_ENV Which we don't use or ever needed. This seems like copy-paste feature creep. Signed-off-by: Kumar Gala --- include/configs/MPC8360EMDS.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/configs/MPC8360EMDS.h') diff --git a/include/configs/MPC8360EMDS.h b/include/configs/MPC8360EMDS.h index 8098951..c192f33 100644 --- a/include/configs/MPC8360EMDS.h +++ b/include/configs/MPC8360EMDS.h @@ -349,8 +349,6 @@ #define CONFIG_OF_LIBFDT 1 #undef CONFIG_OF_FLAT_TREE #define CONFIG_OF_BOARD_SETUP 1 -#define CONFIG_OF_HAS_BD_T 1 -#define CONFIG_OF_HAS_UBOOT_ENV 1 #define OF_CPU "PowerPC,8360@0" #define OF_SOC "soc8360@e0000000" -- cgit v1.1 From 5b8bc606c61456566af6912f818a153b6b06f242 Mon Sep 17 00:00:00 2001 From: Kim Phillips Date: Thu, 20 Dec 2007 14:09:22 -0600 Subject: mpc83xx: convert to using do_fixup_*() convert to using simpler mpc85xx style fdt update code; streamline by eliminating macros OF_SOC, OF_CPU, etc. which allows us to rm the old school FLAT_TREE code from 83xx (since the sbc8349 was just converted over to using libfdt). Signed-off-by: Kim Phillips --- include/configs/MPC8360EMDS.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'include/configs/MPC8360EMDS.h') diff --git a/include/configs/MPC8360EMDS.h b/include/configs/MPC8360EMDS.h index c192f33..fedb8a9 100644 --- a/include/configs/MPC8360EMDS.h +++ b/include/configs/MPC8360EMDS.h @@ -347,14 +347,8 @@ /* pass open firmware flat tree */ #define CONFIG_OF_LIBFDT 1 -#undef CONFIG_OF_FLAT_TREE #define CONFIG_OF_BOARD_SETUP 1 - -#define OF_CPU "PowerPC,8360@0" -#define OF_SOC "soc8360@e0000000" -#define OF_QE "qe@e0100000" -#define OF_TBCLK (bd->bi_busfreq / 4) -#define OF_STDOUT_PATH "/soc8360@e0000000/serial@4500" +#define CONFIG_OF_STDOUT_VIA_ALIAS 1 /* I2C */ #define CONFIG_HARD_I2C /* I2C with hardware support */ -- cgit v1.1