sbc8349: make enabling PCI more user friendly.
PATCH 1/2 sbc8349: make enabling PCI more user friendly.
Prior to this commit, to enable PCI, you had to go manually edit the board config header, which isn't really user friendly. This adds the typical PCI make targets to the toplevel Makefile in accordance with what is being done with other boards.
--- Makefile | 19 +++++++++++++++- doc/README.sbc8349 | 50 ++++++++++++++++++++++++++++++-------------- include/configs/sbc8349.h | 22 +++++++++++-------- 3 files changed, 64 insertions(+), 27 deletions(-)
Makefile +17 -2
@@ -2375,8 +2375,23 @@ MPC837XERDB_config: unconfig MVBLM7_config: unconfig @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision -sbc8349_config: unconfig - @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 +sbc8349_config \ +sbc8349_PCI_33_config \ +sbc8349_PCI_66_config: unconfig + @mkdir -p $(obj)include + @if [ "$(findstring _PCI_,$@)" ] ; then \ + $(XECHO) -n "... PCI HOST at " ; \ + echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ + fi ; \ + if [ "$(findstring _33_,$@)" ] ; then \ + $(XECHO) -n "33MHz... " ; \ + echo "#define PCI_33M" >>$(obj)include/config.h ; \ + fi ; \ + if [ "$(findstring _66_,$@)" ] ; then \ + $(XECHO) -n "66MHz... " ; \ + echo "#define PCI_66M" >>$(obj)include/config.h ; \ + fi ; + @$(MKCONFIG) -a sbc8349 ppc mpc83xx sbc8349 SIMPC8313_LP_config \ SIMPC8313_SP_config: unconfig
doc/README.sbc8349 +34 -16
53 lines not on this page · raw message
include/configs/sbc8349.h +13 -9
@@ -40,24 +40,28 @@#define CONFIG_MPC8349 1/* MPC8349 specific */ #define CONFIG_SBC8349 1/* WRS SBC8349 board specific */ -#undef CONFIG_PCI/* Don't enable PCI2 on sbc834x - it doesn't exist physically. */ #undef CONFIG_MPC83XX_PCI2/* support for 2nd PCI controller */ -#define PCI_66M -#ifdef PCI_66M -#define CONFIG_83XX_CLKIN 66000000/* in Hz */ -#else +/* +* The default if PCI isn't enabled, or if no PCI clk setting is given +* is 66MHz; this is what the board defaults to when the PCI slot is +* physically empty. The board will automatically (i.e w/o jumpers) +* clock down to 33MHz if you insert a 33MHz PCI card. +*/ +#ifdef PCI_33M #define CONFIG_83XX_CLKIN 33000000/* in Hz */ +#else /* 66M */ +#define CONFIG_83XX_CLKIN 66000000/* in Hz */ #endif #ifndef CONFIG_SYS_CLK_FREQ -#ifdef PCI_66M -#define CONFIG_SYS_CLK_FREQ 66000000 -#define HRCWL_CSB_TO_CLKIN HRCWL_CSB_TO_CLKIN_4X1 -#else +#ifdef PCI_33M #define CONFIG_SYS_CLK_FREQ 33000000#define HRCWL_CSB_TO_CLKIN HRCWL_CSB_TO_CLKIN_8X1 +#else /* 66M */ +#define CONFIG_SYS_CLK_FREQ 66000000 +#define HRCWL_CSB_TO_CLKIN HRCWL_CSB_TO_CLKIN_4X1#endif #endif
Signature · 1 line
1.6.3.3
PATCH 2/2 mpc8349: delete unused SYS_MID_FLASH_JUMP
This was introduced with the MPC8349EMDS board, and then copied to a couple other boards by nature of being the reference implementation.
u-boot$git grep CONFIG_SYS_MID_FLASH_JUMP include/configs/MPC8349EMDS.h:#define CONFIG_SYS_MID_FLASH_JUMP 0x7F000000
include/configs/sbc8349.h:#define CONFIG_SYS_MID_FLASH_JUMP 0x7F000000
include/configs/vme8349.h:#define CONFIG_SYS_MID_FLASH_JUMP 0x7F000000
u-boot$
It currently isn't used, so delete it before it spreads further.
--- include/configs/MPC8349EMDS.h | 1 - include/configs/sbc8349.h | 1 - include/configs/vme8349.h | 1 - 3 files changed, 0 insertions(+), 3 deletions(-)
include/configs/MPC8349EMDS.h +0 -1
@@ -172,7 +172,6 @@#define CONFIG_SYS_FLASH_ERASE_TOUT 60000/* Flash Erase Timeout (ms) */ #define CONFIG_SYS_FLASH_WRITE_TOUT 500/* Flash Write Timeout (ms) */ -#define CONFIG_SYS_MID_FLASH_JUMP 0x7F000000#define CONFIG_SYS_MONITOR_BASE TEXT_BASE/* start of monitor */ #if (CONFIG_SYS_MONITOR_BASE <CONFIG_SYS_FLASH_BASE )
include/configs/sbc8349.h +0 -1
@@ -157,7 +157,6 @@#define CONFIG_SYS_FLASH_ERASE_TOUT 60000/* Flash Erase Timeout (ms) */ #define CONFIG_SYS_FLASH_WRITE_TOUT 500/* Flash Write Timeout (ms) */ -#define CONFIG_SYS_MID_FLASH_JUMP 0x7F000000#define CONFIG_SYS_MONITOR_BASE TEXT_BASE/* start of monitor */ #if (CONFIG_SYS_MONITOR_BASE <CONFIG_SYS_FLASH_BASE )
include/configs/vme8349.h +0 -1
@@ -152,7 +152,6 @@#define CONFIG_SYS_FLASH_ERASE_TOUT 60000/* Flash Erase TO (ms) */ #define CONFIG_SYS_FLASH_WRITE_TOUT 500/* Flash Write TO (ms) */ -#define CONFIG_SYS_MID_FLASH_JUMP 0x7F000000#define CONFIG_SYS_MONITOR_BASE TEXT_BASE/* start of monitor */ #if (CONFIG_SYS_MONITOR_BASE <CONFIG_SYS_FLASH_BASE )
Signature · 1 line
1.6.3.3
PATCH 1/2 sbc8349: make enabling PCI more user friendly.
In reply to Paul GortmakerQuoted 7 lines · On Wed, 12 Aug 2009 15:44:51 -0400 Paul Gortmaker…
Prior to this commit, to enable PCI, you had to go manually edit the board config header, which isn't really user friendly. This adds the typical PCI make targets to the toplevel
Makefilein accordance with what is being done with other boards.Signed-off-by Paul Gortmaker <[email protected]>---
applied 1-2.
Thanks,
Kim