diff options
Diffstat (limited to 'include')
142 files changed, 304 insertions, 667 deletions
| diff --git a/include/common.h b/include/common.h index 8ca67f64f..d49c51464 100644 --- a/include/common.h +++ b/include/common.h @@ -698,6 +698,10 @@ ulong get_ddr_freq(ulong);  #if defined(CONFIG_MPC85xx)  typedef MPC85xx_SYS_INFO sys_info_t;  void	get_sys_info  ( sys_info_t * ); +#  if defined(CONFIG_OF_LIBFDT) +	void ft_fixup_cpu(void *, u64); +	void ft_fixup_num_cores(void *); +#  endif  #endif  #if defined(CONFIG_MPC86xx)  typedef MPC86xx_SYS_INFO sys_info_t; diff --git a/include/config_defaults.h b/include/config_defaults.h index 567b46c87..ad08c1d33 100644 --- a/include/config_defaults.h +++ b/include/config_defaults.h @@ -14,6 +14,7 @@  #define CONFIG_BOOTM_NETBSD 1  #define CONFIG_BOOTM_PLAN9 1  #define CONFIG_BOOTM_RTEMS 1 +#define CONFIG_BOOTM_VXWORKS 1  #define CONFIG_GZIP 1  #define CONFIG_ZLIB 1 diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index 3633b09aa..d8339b26c 100644 --- a/include/config_fallbacks.h +++ b/include/config_fallbacks.h @@ -50,7 +50,8 @@  	defined(CONFIG_CMD_PART) || \  	defined(CONFIG_CMD_GPT) || \  	defined(CONFIG_MMC) || \ -	defined(CONFIG_SYSTEMACE) +	defined(CONFIG_SYSTEMACE) || \ +	defined(CONFIG_SANDBOX)  #define HAVE_BLOCK_DEVICE  #endif diff --git a/include/configs/B4860QDS.h b/include/configs/B4860QDS.h index b2a5c19e0..c182158be 100644 --- a/include/configs/B4860QDS.h +++ b/include/configs/B4860QDS.h @@ -289,6 +289,8 @@ unsigned long get_board_ddr_clk(void);  /* NAND Flash on IFC */  #define CONFIG_NAND_FSL_IFC +#define CONFIG_SYS_NAND_MAX_ECCPOS	256 +#define CONFIG_SYS_NAND_MAX_OOBFREE	2  #define CONFIG_SYS_NAND_BASE		0xff800000  #ifdef CONFIG_PHYS_64BIT  #define CONFIG_SYS_NAND_BASE_PHYS	(0xf00000000ull | CONFIG_SYS_NAND_BASE) @@ -737,7 +739,6 @@ unsigned long get_board_ddr_clk(void);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h index 499d8c205..584aba8d0 100644 --- a/include/configs/BSC9131RDB.h +++ b/include/configs/BSC9131RDB.h @@ -29,7 +29,7 @@  #define CONFIG_SPL_INIT_MINIMAL  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_NAND_SUPPORT -#define CONFIG_SPL_NAND_MINIMAL +#define CONFIG_SPL_NAND_BOOT  #define CONFIG_SPL_FLUSH_IMAGE  #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin" @@ -382,7 +382,6 @@ extern unsigned long get_sdram_size(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #define CONFIG_USB_EHCI diff --git a/include/configs/BSC9132QDS.h b/include/configs/BSC9132QDS.h index a6601fee8..6170cbc81 100644 --- a/include/configs/BSC9132QDS.h +++ b/include/configs/BSC9132QDS.h @@ -38,7 +38,7 @@  #define CONFIG_SPL_INIT_MINIMAL  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_NAND_SUPPORT -#define CONFIG_SPL_NAND_MINIMAL +#define CONFIG_SPL_NAND_BOOT  #define CONFIG_SPL_FLUSH_IMAGE  #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin" @@ -625,7 +625,6 @@ combinations. this should be removed later  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/CMS700.h b/include/configs/CMS700.h index 4a5fc864a..0bb22be9f 100644 --- a/include/configs/CMS700.h +++ b/include/configs/CMS700.h @@ -149,6 +149,9 @@  #define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */  #define CONFIG_SYS_NAND_QUIET          1 +#define CONFIG_SYS_NAND_MAX_OOBFREE	2 +#define CONFIG_SYS_NAND_MAX_ECCPOS	48 +  /*   * For booting Linux, the board info and command line data   * have to be in the first 8 MB of memory, since this is diff --git a/include/configs/DU440.h b/include/configs/DU440.h index 2d7fc59ea..71be1224f 100644 --- a/include/configs/DU440.h +++ b/include/configs/DU440.h @@ -406,7 +406,6 @@ int du440_phy_addr(int devnum);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #define CONFIG_SOURCE		1 diff --git a/include/configs/EXBITGEN.h b/include/configs/EXBITGEN.h index f366308f4..208b599f6 100644 --- a/include/configs/EXBITGEN.h +++ b/include/configs/EXBITGEN.h @@ -186,6 +186,5 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #endif	/* __CONFIG_H */ diff --git a/include/configs/JSE.h b/include/configs/JSE.h index 4284d6a3a..5738ea97a 100644 --- a/include/configs/JSE.h +++ b/include/configs/JSE.h @@ -274,6 +274,5 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #endif	/* __CONFIG_H */ diff --git a/include/configs/KAREF.h b/include/configs/KAREF.h index 71e90d77d..39eb2ef13 100644 --- a/include/configs/KAREF.h +++ b/include/configs/KAREF.h @@ -273,7 +273,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE  230400	     /* kgdb serial port baud	*/ -#define CONFIG_KGDB_SER_INDEX 2		     /* kgdb serial port	*/  #endif  /*----------------------------------------------------------------------- diff --git a/include/configs/METROBOX.h b/include/configs/METROBOX.h index 32ec0bf06..67154353d 100644 --- a/include/configs/METROBOX.h +++ b/include/configs/METROBOX.h @@ -338,7 +338,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE  230400	     /* kgdb serial port baud	*/ -#define CONFIG_KGDB_SER_INDEX 2		     /* kgdb serial port	*/  #endif  /*----------------------------------------------------------------------- diff --git a/include/configs/MIP405.h b/include/configs/MIP405.h index f248a5642..6042a1e3c 100644 --- a/include/configs/MIP405.h +++ b/include/configs/MIP405.h @@ -396,7 +396,6 @@   ************************************************************/  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /************************************************************ diff --git a/include/configs/MPC8315ERDB.h b/include/configs/MPC8315ERDB.h index 0f9f436e3..aedb529f8 100644 --- a/include/configs/MPC8315ERDB.h +++ b/include/configs/MPC8315ERDB.h @@ -634,7 +634,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8323ERDB.h b/include/configs/MPC8323ERDB.h index a1e5f3b2b..c4c771b50 100644 --- a/include/configs/MPC8323ERDB.h +++ b/include/configs/MPC8323ERDB.h @@ -481,7 +481,6 @@  #if (CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC832XEMDS.h b/include/configs/MPC832XEMDS.h index 71fc497e7..f5b62025d 100644 --- a/include/configs/MPC832XEMDS.h +++ b/include/configs/MPC832XEMDS.h @@ -574,7 +574,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8349EMDS.h b/include/configs/MPC8349EMDS.h index 037484104..7640d06ee 100644 --- a/include/configs/MPC8349EMDS.h +++ b/include/configs/MPC8349EMDS.h @@ -737,7 +737,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8349ITX.h b/include/configs/MPC8349ITX.h index e2ae59632..ffb9a158a 100644 --- a/include/configs/MPC8349ITX.h +++ b/include/configs/MPC8349ITX.h @@ -730,7 +730,6 @@ boards, we say we have two, but don't display a message if we find only one. */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif diff --git a/include/configs/MPC8360EMDS.h b/include/configs/MPC8360EMDS.h index ed780f17f..d4c82cd66 100644 --- a/include/configs/MPC8360EMDS.h +++ b/include/configs/MPC8360EMDS.h @@ -683,7 +683,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8360ERDK.h b/include/configs/MPC8360ERDK.h index d31be1973..01e7ac768 100644 --- a/include/configs/MPC8360ERDK.h +++ b/include/configs/MPC8360ERDK.h @@ -544,7 +544,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h index 98ffb9c29..f52e77a3a 100644 --- a/include/configs/MPC837XEMDS.h +++ b/include/configs/MPC837XEMDS.h @@ -662,7 +662,6 @@ extern int board_pci_host_broken(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h index ca28c0eb2..938f7ab3c 100644 --- a/include/configs/MPC837XERDB.h +++ b/include/configs/MPC837XERDB.h @@ -678,7 +678,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8536DS.h b/include/configs/MPC8536DS.h index 9ab1bc106..9b7cc6474 100644 --- a/include/configs/MPC8536DS.h +++ b/include/configs/MPC8536DS.h @@ -740,7 +740,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8540ADS.h b/include/configs/MPC8540ADS.h index 046b14bdd..2d42b2512 100644 --- a/include/configs/MPC8540ADS.h +++ b/include/configs/MPC8540ADS.h @@ -397,7 +397,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif diff --git a/include/configs/MPC8541CDS.h b/include/configs/MPC8541CDS.h index eca3b537b..b9ad03422 100644 --- a/include/configs/MPC8541CDS.h +++ b/include/configs/MPC8541CDS.h @@ -410,7 +410,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8544DS.h b/include/configs/MPC8544DS.h index 8132ec055..90fc2da34 100644 --- a/include/configs/MPC8544DS.h +++ b/include/configs/MPC8544DS.h @@ -441,7 +441,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8548CDS.h b/include/configs/MPC8548CDS.h index 6acd54db8..5fff1e2ca 100644 --- a/include/configs/MPC8548CDS.h +++ b/include/configs/MPC8548CDS.h @@ -535,7 +535,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8555CDS.h b/include/configs/MPC8555CDS.h index 5ffdd0162..23c6b07c3 100644 --- a/include/configs/MPC8555CDS.h +++ b/include/configs/MPC8555CDS.h @@ -408,7 +408,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8560ADS.h b/include/configs/MPC8560ADS.h index bb9ae2dcb..44b767919 100644 --- a/include/configs/MPC8560ADS.h +++ b/include/configs/MPC8560ADS.h @@ -438,7 +438,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif diff --git a/include/configs/MPC8568MDS.h b/include/configs/MPC8568MDS.h index 7406ac3be..4f438a807 100644 --- a/include/configs/MPC8568MDS.h +++ b/include/configs/MPC8568MDS.h @@ -430,7 +430,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h index df5572b3a..d877e8bbd 100644 --- a/include/configs/MPC8569MDS.h +++ b/include/configs/MPC8569MDS.h @@ -566,7 +566,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h index 63480ecb0..44d83a236 100644 --- a/include/configs/MPC8572DS.h +++ b/include/configs/MPC8572DS.h @@ -682,7 +682,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h index 41ebe31dd..f930fcde3 100644 --- a/include/configs/MPC8610HPCD.h +++ b/include/configs/MPC8610HPCD.h @@ -517,7 +517,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h index 0e666bac0..65d61c28d 100644 --- a/include/configs/MPC8641HPCN.h +++ b/include/configs/MPC8641HPCN.h @@ -670,7 +670,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)      #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -    #define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MigoR.h b/include/configs/MigoR.h index 9fd455142..88df94f11 100644 --- a/include/configs/MigoR.h +++ b/include/configs/MigoR.h @@ -10,8 +10,6 @@  #define __MIGO_R_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7722	1  #define CONFIG_MIGO_R		1 diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h index 1ed5e1df2..ea5cb6501 100644 --- a/include/configs/P1010RDB.h +++ b/include/configs/P1010RDB.h @@ -37,7 +37,7 @@  #define CONFIG_SPL_INIT_MINIMAL  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_NAND_SUPPORT -#define CONFIG_SPL_NAND_MINIMAL +#define CONFIG_SPL_NAND_BOOT  #define CONFIG_SPL_FLUSH_IMAGE  #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin" @@ -739,7 +739,6 @@ extern unsigned long get_sdram_size(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h index 262c3e5f1..934a6cb7a 100644 --- a/include/configs/P1022DS.h +++ b/include/configs/P1022DS.h @@ -75,6 +75,8 @@  #endif  #define CONFIG_NAND_FSL_ELBC +#define CONFIG_SYS_NAND_MAX_ECCPOS	56 +#define CONFIG_SYS_NAND_MAX_OOBFREE	5  #ifdef CONFIG_NAND  #define CONFIG_SPL @@ -725,7 +727,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P1023RDS.h b/include/configs/P1023RDS.h index 2aa1f59ea..11c74ff5f 100644 --- a/include/configs/P1023RDS.h +++ b/include/configs/P1023RDS.h @@ -469,7 +469,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h index b592c1966..85cb0767e 100644 --- a/include/configs/P1_P2_RDB.h +++ b/include/configs/P1_P2_RDB.h @@ -606,7 +606,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P2020COME.h b/include/configs/P2020COME.h index 15d2a43cd..ce3c76255 100644 --- a/include/configs/P2020COME.h +++ b/include/configs/P2020COME.h @@ -432,7 +432,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h index 9d3d9b33e..ada6c7b87 100644 --- a/include/configs/P2020DS.h +++ b/include/configs/P2020DS.h @@ -670,7 +670,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h index b238574b5..ee71252b0 100644 --- a/include/configs/P2041RDB.h +++ b/include/configs/P2041RDB.h @@ -677,7 +677,6 @@ unsigned long get_board_sys_clk(unsigned long dummy);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/PIP405.h b/include/configs/PIP405.h index 118072486..29888b4e1 100644 --- a/include/configs/PIP405.h +++ b/include/configs/PIP405.h @@ -353,7 +353,6 @@   ************************************************************/  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /************************************************************ diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h index 5ab9315b1..efe69601f 100644 --- a/include/configs/PMC440.h +++ b/include/configs/PMC440.h @@ -492,7 +492,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* pass open firmware flat tree */ diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h index 43a577800..7d0bc043f 100644 --- a/include/configs/T1040QDS.h +++ b/include/configs/T1040QDS.h @@ -233,6 +233,7 @@ unsigned long get_board_ddr_clk(void);  #define QIXIS_RCFG_CTL_RECONFIG_IDLE	0x20  #define QIXIS_RCFG_CTL_RECONFIG_START	0x21  #define QIXIS_RCFG_CTL_WATCHDOG_ENBLE	0x08 +#define	QIXIS_RST_FORCE_MEM		0x01  #define CONFIG_SYS_CSPR3_EXT	(0xf)  #define CONFIG_SYS_CSPR3	(CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) \ @@ -248,7 +249,7 @@ unsigned long get_board_ddr_clk(void);  #define CONFIG_SYS_CS3_FTIM1		(FTIM1_GPCM_TACO(0xff) | \  					FTIM1_GPCM_TRAD(0x3f))  #define CONFIG_SYS_CS3_FTIM2		(FTIM2_GPCM_TCS(0x0e) | \ -					FTIM2_GPCM_TCH(0x0) | \ +					FTIM2_GPCM_TCH(0x8) | \  					FTIM2_GPCM_TWP(0x1f))  #define CONFIG_SYS_CS3_FTIM3		0x0 @@ -682,7 +683,6 @@ unsigned long get_board_ddr_clk(void);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/T1040RDB.h b/include/configs/T1040RDB.h index 79312311d..d721139a1 100644 --- a/include/configs/T1040RDB.h +++ b/include/configs/T1040RDB.h @@ -609,7 +609,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/T1042RDB_PI.h b/include/configs/T1042RDB_PI.h index eff08e380..2c02d9da5 100644 --- a/include/configs/T1042RDB_PI.h +++ b/include/configs/T1042RDB_PI.h @@ -613,7 +613,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h index fc254256a..15cf2bd79 100644 --- a/include/configs/TQM834x.h +++ b/include/configs/TQM834x.h @@ -495,7 +495,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/VCMA9.h b/include/configs/VCMA9.h index 57b620d48..d40185e1e 100644 --- a/include/configs/VCMA9.h +++ b/include/configs/VCMA9.h @@ -138,8 +138,6 @@  #if defined(CONFIG_CMD_KGDB)  /* speed to run kgdb serial port */  #define CONFIG_KGDB_BAUDRATE		115200 -/* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/W7OLMC.h b/include/configs/W7OLMC.h index 8fda1b1ea..00a24ab84 100644 --- a/include/configs/W7OLMC.h +++ b/include/configs/W7OLMC.h @@ -301,7 +301,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use	*/  #endif  /* diff --git a/include/configs/W7OLMG.h b/include/configs/W7OLMG.h index 6836fc7b5..8ed2fa2d8 100644 --- a/include/configs/W7OLMG.h +++ b/include/configs/W7OLMG.h @@ -304,7 +304,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use	*/  #endif  /* diff --git a/include/configs/ac14xx.h b/include/configs/ac14xx.h index 1205557d8..d6cef888c 100644 --- a/include/configs/ac14xx.h +++ b/include/configs/ac14xx.h @@ -471,7 +471,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE		230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/actux1.h b/include/configs/actux1.h index 3315f54f3..9b8bd7894 100644 --- a/include/configs/actux1.h +++ b/include/configs/actux1.h @@ -58,8 +58,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/actux2.h b/include/configs/actux2.h index fb391ecd5..f0cbff79c 100644 --- a/include/configs/actux2.h +++ b/include/configs/actux2.h @@ -51,8 +51,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/actux3.h b/include/configs/actux3.h index 61d96f5ed..763910745 100644 --- a/include/configs/actux3.h +++ b/include/configs/actux3.h @@ -49,8 +49,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/actux4.h b/include/configs/actux4.h index 23872794e..12bd98a7e 100644 --- a/include/configs/actux4.h +++ b/include/configs/actux4.h @@ -56,8 +56,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/alpr.h b/include/configs/alpr.h index 61fdebac3..08bba3609 100644 --- a/include/configs/alpr.h +++ b/include/configs/alpr.h @@ -349,7 +349,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* pass open firmware flat tree */ diff --git a/include/configs/amcc-common.h b/include/configs/amcc-common.h index c9e9a038d..0f38c92fa 100644 --- a/include/configs/amcc-common.h +++ b/include/configs/amcc-common.h @@ -125,7 +125,6 @@   */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port*/ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use	*/  #endif  /* diff --git a/include/configs/ap325rxa.h b/include/configs/ap325rxa.h index 933de52c5..462b2e291 100644 --- a/include/configs/ap325rxa.h +++ b/include/configs/ap325rxa.h @@ -11,8 +11,6 @@  #define __AP325RXA_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7723	1  #define CONFIG_AP325RXA	1 diff --git a/include/configs/ap_sh4a_4a.h b/include/configs/ap_sh4a_4a.h index 83a5c37e4..bb39491f8 100644 --- a/include/configs/ap_sh4a_4a.h +++ b/include/configs/ap_sh4a_4a.h @@ -10,9 +10,6 @@  #define __AP_SH4A_4A_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7734	1  #define CONFIG_AP_SH4A_4A	1  #define CONFIG_400MHZ_MODE	1 diff --git a/include/configs/aria.h b/include/configs/aria.h index 32216cd50..b8d955abd 100644 --- a/include/configs/aria.h +++ b/include/configs/aria.h @@ -507,7 +507,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE		230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/arndale.h b/include/configs/arndale.h index b7fb29ea7..7e367f39b 100644 --- a/include/configs/arndale.h +++ b/include/configs/arndale.h @@ -85,6 +85,7 @@  #define CONFIG_DWMMC  #define CONFIG_EXYNOS_DWMMC  #define CONFIG_SUPPORT_EMMC_BOOT +#define CONFIG_BOUNCE_BUFFER  #define CONFIG_BOARD_EARLY_INIT_F diff --git a/include/configs/balloon3.h b/include/configs/balloon3.h index d3d62744f..b41a82360 100644 --- a/include/configs/balloon3.h +++ b/include/configs/balloon3.h @@ -61,7 +61,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/bf506f-ezkit.h b/include/configs/bf506f-ezkit.h index 5ad3ee70d..eed2d5bce 100644 --- a/include/configs/bf506f-ezkit.h +++ b/include/configs/bf506f-ezkit.h @@ -56,6 +56,7 @@  /*   * Flash Settings   */ +  #define CONFIG_FLASH_CFI_DRIVER  #define CONFIG_SYS_FLASH_BASE		0x20000000  #define CONFIG_SYS_FLASH_CFI @@ -63,7 +64,9 @@  #define CONFIG_SYS_MAX_FLASH_SECT	71  #define CONFIG_CMD_FLASH  #define CONFIG_MONITOR_IS_IN_RAM - +/* +#define CONFIG_SYS_NO_FLASH +*/  /*   * SPI Settings @@ -71,11 +74,12 @@  #define CONFIG_BFIN_SPI  #define CONFIG_ENV_SPI_MAX_HZ	30000000  #define CONFIG_SF_DEFAULT_SPEED	30000000 +/*  #define CONFIG_SPI_FLASH  #define CONFIG_SPI_FLASH_STMICRO  #define CONFIG_CMD_SF  #define CONFIG_CMD_SPI - +*/  /*   * Env Storage Settings diff --git a/include/configs/bf561-acvilon.h b/include/configs/bf561-acvilon.h index ee585c0ff..15ca1af23 100644 --- a/include/configs/bf561-acvilon.h +++ b/include/configs/bf561-acvilon.h @@ -53,7 +53,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL		0xffc2ffc2  #define CONFIG_EBIU_AMBCTL1_VAL		0x99b35554 -#define CONFIG_SYS_MONITOR_LEN		(256 * 1024) +#define CONFIG_SYS_MONITOR_LEN		(384 * 1024)  #define CONFIG_SYS_MALLOC_LEN		(128 * 1024) diff --git a/include/configs/bf561-ezkit.h b/include/configs/bf561-ezkit.h index 404039ac2..fb6f94873 100644 --- a/include/configs/bf561-ezkit.h +++ b/include/configs/bf561-ezkit.h @@ -90,6 +90,7 @@   */  #define CONFIG_SYS_I2C_SOFT  #ifdef CONFIG_SYS_I2C_SOFT +#define CONFIG_SYS_I2C  #define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PF0  #define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PF1  #define I2C_DELAY		udelay(5)	/* 1/4 I2C clock duration */ diff --git a/include/configs/blackvme.h b/include/configs/blackvme.h index cd37f9adb..6e5774c6b 100644 --- a/include/configs/blackvme.h +++ b/include/configs/blackvme.h @@ -177,6 +177,7 @@  #define CONFIG_BAUDRATE		57600  #define CONFIG_LOADS_ECHO	1  #define CONFIG_UART_CONSOLE	0 +#define CONFIG_BFIN_SERIAL  /*   * U-Boot environment variables. Use "printenv" to examine. diff --git a/include/configs/cm-bf537e.h b/include/configs/cm-bf537e.h index 8f10eba46..2838012e2 100644 --- a/include/configs/cm-bf537e.h +++ b/include/configs/cm-bf537e.h @@ -55,7 +55,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL	(B1WAT_7 | B1RAT_11 | B1HT_2 | B1ST_3 | B0WAT_7 | B0RAT_11 | B0HT_2 | B0ST_3)  #define CONFIG_EBIU_AMBCTL1_VAL	(B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_7 | B2RAT_11 | B2HT_2 | B2ST_3) -#define CONFIG_SYS_MONITOR_LEN	(512 * 1024) +#define CONFIG_SYS_MONITOR_LEN	(768 * 1024)  #define CONFIG_SYS_MALLOC_LEN	(128 * 1024) @@ -145,7 +145,7 @@  #define FLASHBOOT_ENV_SETTINGS \  	"flashboot=flread 20040000 1000000 3c0000;" \  	"bootm 0x1000000\0" - +#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/cm-bf537u.h b/include/configs/cm-bf537u.h index a1c8e8a85..da4cc6718 100644 --- a/include/configs/cm-bf537u.h +++ b/include/configs/cm-bf537u.h @@ -54,7 +54,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL	(B1WAT_7 | B1RAT_11 | B1HT_2 | B1ST_3 | B0WAT_7 | B0RAT_11 | B0HT_2 | B0ST_3)  #define CONFIG_EBIU_AMBCTL1_VAL	(B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_7 | B2RAT_11 | B2HT_2 | B2ST_3) -#define CONFIG_SYS_MONITOR_LEN	(512 * 1024) +#define CONFIG_SYS_MONITOR_LEN	(768 * 1024)  #define CONFIG_SYS_MALLOC_LEN	(128 * 1024) @@ -142,6 +142,7 @@  #define FLASHBOOT_ENV_SETTINGS \  	"flashboot=flread 20040000 1000000 300000;" \  	"bootm 0x1000000\0" +#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))  /* diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index 556b42a38..d1d732f21 100644 --- a/include/configs/coreboot.h +++ b/include/configs/coreboot.h @@ -204,7 +204,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE			115200 -#define CONFIG_KGDB_SER_INDEX			2  #endif  /* diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h index 665295c1a..969b9903f 100644 --- a/include/configs/corenet_ds.h +++ b/include/configs/corenet_ds.h @@ -672,7 +672,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/csb272.h b/include/configs/csb272.h index ca0bffa72..8a848bea8 100644 --- a/include/configs/csb272.h +++ b/include/configs/csb272.h @@ -99,7 +99,6 @@   */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/csb472.h b/include/configs/csb472.h index 596095d21..5c034175c 100644 --- a/include/configs/csb472.h +++ b/include/configs/csb472.h @@ -98,7 +98,6 @@   */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index 48b47cbd0..f210ed8b9 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -60,6 +60,7 @@  #define CONFIG_SPI_FLASH_SPANSION  #define CONFIG_CMD_SF  #define CONFIG_CMD_SPI +#define CONFIG_SPI_FLASH_BAR  #define CONFIG_TI_SPI_MMAP  #define CONFIG_SF_DEFAULT_SPEED                48000000  #define CONFIG_DEFAULT_SPI_MODE                SPI_MODE_3 diff --git a/include/configs/dvlhost.h b/include/configs/dvlhost.h index 87b331484..1af7f1698 100644 --- a/include/configs/dvlhost.h +++ b/include/configs/dvlhost.h @@ -57,8 +57,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/ecovec.h b/include/configs/ecovec.h index 3483cf1f5..3a5cc7482 100644 --- a/include/configs/ecovec.h +++ b/include/configs/ecovec.h @@ -23,9 +23,6 @@   */  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7724	1  #define CONFIG_BOARD_LATE_INIT		1  #define CONFIG_ECOVEC		1 diff --git a/include/configs/espt.h b/include/configs/espt.h index 1bd7eeceb..de16be70b 100644 --- a/include/configs/espt.h +++ b/include/configs/espt.h @@ -10,8 +10,6 @@  #ifndef __ESPT_H  #define __ESPT_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7763	1  #define CONFIG_ESPT	1  #define __LITTLE_ENDIAN		1 diff --git a/include/configs/exynos5-dt.h b/include/configs/exynos5-dt.h index d684790f8..414db420d 100644 --- a/include/configs/exynos5-dt.h +++ b/include/configs/exynos5-dt.h @@ -98,6 +98,7 @@  #define CONFIG_DWMMC  #define CONFIG_EXYNOS_DWMMC  #define CONFIG_SUPPORT_EMMC_BOOT +#define CONFIG_BOUNCE_BUFFER  #define CONFIG_BOARD_EARLY_INIT_F  #define CONFIG_SKIP_LOWLEVEL_INIT diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h index 7700b38c2..50330ccf6 100644 --- a/include/configs/km/kmp204x-common.h +++ b/include/configs/km/kmp204x-common.h @@ -385,7 +385,6 @@ unsigned long get_board_sys_clk(unsigned long dummy);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #define __USB_PHY_TYPE	utmi diff --git a/include/configs/korat.h b/include/configs/korat.h index b09af199c..811ff995e 100644 --- a/include/configs/korat.h +++ b/include/configs/korat.h @@ -542,7 +542,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400 /* speed to run kgdb serial port	*/ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use	*/  #endif  /* Pass open firmware flat tree */ diff --git a/include/configs/linkstation.h b/include/configs/linkstation.h deleted file mode 100644 index fcd809dfb..000000000 --- a/include/configs/linkstation.h +++ /dev/null @@ -1,504 +0,0 @@ -/* - * Copyright (C) 2006 Mihai Georgian <u-boot@linuxnotincluded.org.uk> - * - * SPDX-License-Identifier:	GPL-2.0+ - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* - * Valid values for CONFIG_SYS_TEXT_BASE are: - * - * Standard configuration - all models - * 0xFFF00000	boot from flash - * - * Test configuration (boot from RAM using uloader.o) - * LinkStation HD-HLAN and KuroBox Standard - * 0x03F00000	boot from RAM - * LinkStation HD-HGLAN and KuroBox HG - * 0x07F00000	boot from RAM - */ -#ifndef CONFIG_SYS_TEXT_BASE -#define CONFIG_SYS_TEXT_BASE	0xFFF00000 -#endif - -#if 0 -#define DEBUG -#endif - -#define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ - -/*----------------------------------------------------------------------- - * User configurable settings: - *   Mandatory settings: - *     CONFIG_IPADDR_LS		- the IP address of the LinkStation - *     CONFIG_SERVERIP_LS	- the address of the server for NFS/TFTP/DHCP/BOOTP - *   Optional settins: - *     CONFIG_NCIP_LS		- the adress of the computer running net console - *							  if not configured, it will be set to - *							  CONFIG_SERVERIP_LS - */ - - -#define CONFIG_IPADDR_LS	192.168.11.150 -#define CONFIG_SERVERIP_LS	192.168.11.149 - -#if !defined(CONFIG_IPADDR_LS) || !defined(CONFIG_SERVERIP_LS) -#error Both CONFIG_IPADDR_LS and CONFIG_SERVERIP_LS must be defined -#endif - -#if !defined(CONFIG_NCIP_LS) -#define CONFIG_NCIP_LS		CONFIG_SERVERIP_LS -#endif - -/*---------------------------------------------------------------------- - * DO NOT CHANGE ANYTHING BELOW, UNLESS YOU KNOW WHAT YOU ARE DOING - *---------------------------------------------------------------------*/ - -#define CONFIG_MPC8245		1 -#define CONFIG_LINKSTATION	1 - -/*--------------------------------------- - * Supported models - * - * LinkStation HDLAN /KuroBox Standard (CONFIG_HLAN) - * LinkStation old model               (CONFIG_LAN) - totally untested - * LinkStation HGLAN / KuroBox HG      (CONFIG_HGLAN) - * - * Models not supported yet - * TeraStatin                          (CONFIG_HTGL) - */ - -#if defined(CONFIG_HLAN) || defined(CONFIG_LAN) -#define CONFIG_IDENT_STRING		" LinkStation / KuroBox" -#elif defined(CONFIG_HGLAN) -#define CONFIG_IDENT_STRING		" LinkStation HG / KuroBox HG" -#elif defined(CONFIG_HTGL) -#define CONFIG_IDENT_STRING		" TeraStation" -#else -#error No LinkStation model defined -#endif - -#define CONFIG_BOOTDELAY	5 -#define CONFIG_ZERO_BOOTDELAY_CHECK -#undef CONFIG_BOOT_RETRY_TIME - -#define CONFIG_AUTOBOOT_KEYED -#define CONFIG_AUTOBOOT_PROMPT		\ -	"Boot in %02d seconds ('s' to stop)...", bootdelay -#define CONFIG_AUTOBOOT_STOP_STR	"s" - -#define CONFIG_CMD_IDE -#define CONFIG_CMD_PCI -#define CONFIG_CMD_DHCP -#define CONFIG_CMD_PING -#define CONFIG_CMD_EXT2 - -#define CONFIG_BOOTP_SUBNETMASK -#define CONFIG_BOOTP_GATEWAY -#define CONFIG_BOOTP_HOSTNAME -#define CONFIG_BOOTP_NISDOMAIN -#define CONFIG_BOOTP_BOOTPATH -#define CONFIG_BOOTP_BOOTFILESIZE -#define CONFIG_BOOTP_DNS -#define CONFIG_BOOTP_DNS2 -#define CONFIG_BOOTP_SEND_HOSTNAME -#define CONFIG_BOOTP_NTPSERVER -#define CONFIG_BOOTP_TIMEOFFSET - -#define CONFIG_OF_LIBFDT	1 - -#define OF_STDOUT_PATH		"/soc10x/serial@80004600" - -/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ -#include <config_cmd_default.h> - -/* - * Miscellaneous configurable options - */ -#define CONFIG_SYS_LONGHELP				/* undef to save memory		*/ -#define CONFIG_SYS_CBSIZE		256		/* Console I/O Buffer Size	*/ - -#define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) -#define CONFIG_SYS_MAXARGS		16		/* Max number of command args	*/ -#define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE	/* Boot Argument Buffer Size	*/ -#define CONFIG_SYS_LOAD_ADDR		0x00800000	/* Default load address: 8 MB	*/ - -#define CONFIG_BOOTCOMMAND	"run bootcmd1" -#define CONFIG_BOOTARGS		"root=/dev/sda1 console=ttyS1,57600 netconsole=@192.168.1.7/eth0,@192.168.1.1/00:50:BF:A4:59:71 rtc-rs5c372.probe=0,0x32 debug" -#define CONFIG_NFSBOOTCOMMAND	"bootp;run nfsargs;bootm" - -#define CONFIG_SYS_CONSOLE_IS_IN_ENV - -#if defined(CONFIG_HLAN) || defined(CONFIG_LAN) -#define UBFILE			"share/u-boot/u-boot-hd.flash.bin" -#elif defined(CONFIG_HGLAN) -#define UBFILE			"share/u-boot/u-boot-hg.flash.bin" -#elif defined(CONFIG_HTGL) -#define UBFILE			"share/u-boot/u-boot-ht.flash.bin" -#else -#error No LinkStation model defined -#endif - -#define CONFIG_EXTRA_ENV_SETTINGS						\ -	"autoload=no\0"								\ -	"stdin=nc\0"								\ -	"stdout=nc\0"								\ -	"stderr=nc\0"								\ -	"ipaddr="__stringify(CONFIG_IPADDR_LS)"\0"			\ -	"netmask=255.255.255.0\0"						\ -	"serverip="__stringify(CONFIG_SERVERIP_LS)"\0"			\ -	"ncip="__stringify(CONFIG_NCIP_LS)"\0"				\ -	"netretry=no\0"								\ -	"nc=setenv stdin nc;setenv stdout nc;setenv stderr nc\0"		\ -	"ser=setenv stdin serial;setenv stdout serial;setenv stderr serial\0"	\ -	"ldaddr=800000\0"							\ -	"hdpart=0:1\0"								\ -	"hdfile=boot/uImage\0"							\ -	"hdload=echo Loading ${hdpart}:${hdfile};ext2load ide ${hdpart} ${ldaddr} ${hdfile};ext2load ide ${hdpart} 7f0000 boot/kuroboxHG.dtb\0"	\ -	"boothd=setenv bootargs " CONFIG_BOOTARGS ";bootm ${ldaddr} - 7f0000\0"	\ -	"hdboot=run hdload;run boothd\0"					\ -	"flboot=setenv bootargs root=/dev/hda1;bootm ffc00000\0"		\ -	"emboot=setenv bootargs root=/dev/ram0;bootm ffc00000\0"		\ -	"nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} "	\ -	"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off\0"	\ -	"bootretry=30\0"							\ -	"bootcmd1=run hdboot;run flboot\0"					\ -	"bootcmd2=run flboot\0"							\ -	"bootcmd3=run emboot\0"							\ -	"writeng=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4e474e47 1;cp.b 800000 fff70000 4\0" \ -	"writeok=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4f4b4f4b 1;cp.b 800000 fff70000 4\0" \ -	"ubpart=0:3\0"								\ -	"ubfile="UBFILE"\0"							\ -	"ubload=echo Loading ${ubpart}:${ubfile};ext2load ide ${ubpart} ${ldaddr} ${ubfile}\0" \ -	"ubsaddr=fff00000\0"							\ -	"ubeaddr=fff2ffff\0"							\ -	"ubflash=protect off ${ubsaddr} ${ubeaddr};era ${ubsaddr} ${ubeaddr};cp.b ${ldaddr} ${ubsaddr} ${filesize};cmp.b ${ldaddr} ${ubsaddr} ${filesize}\0" \ -	"upgrade=run ubload ubflash\0" - -/*----------------------------------------------------------------------- - * PCI stuff - */ -#define CONFIG_PCI -#define CONFIG_PCI_INDIRECT_BRIDGE -/* Verified: CONFIG_PCI_PNP doesn't work */ -#undef CONFIG_PCI_PNP -#define CONFIG_PCI_SCAN_SHOW - -#ifndef CONFIG_PCI_PNP -/* Keep the following defines in sync with the BAT mappings */ - -#define PCI_ETH_IOADDR      0xbfff00 -#define PCI_ETH_MEMADDR     0xbffffc00 -#define PCI_IDE_IOADDR      0xbffed0 -#define PCI_IDE_MEMADDR     0xbffffb00 -#define PCI_USB0_IOADDR     0 -#define PCI_USB0_MEMADDR    0xbfffe000 -#define PCI_USB1_IOADDR     0 -#define PCI_USB1_MEMADDR    0xbfffd000 -#define PCI_USB2_IOADDR     0 -#define PCI_USB2_MEMADDR    0xbfffcf00 - -#endif - -/*----------------------------------------------------------------------- - * Ethernet stuff - */ - -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) -#define CONFIG_TULIP -#define CONFIG_TULIP_USE_IO -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_RTL8169 -#endif - -#define CONFIG_NET_RETRY_COUNT		5 - -#define CONFIG_NETCONSOLE - -/*----------------------------------------------------------------------- - * Start addresses for the final memory configuration - * (Set up by the startup code) - * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 - */ -#define CONFIG_SYS_SDRAM_BASE		0x00000000 - -#define CONFIG_SYS_FLASH_BASE		0xFFC00000 -#define CONFIG_SYS_FLASH_SIZE		0x00400000 -#define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_TEXT_BASE - -#define CONFIG_SYS_RESET_ADDRESS	0xFFF00100 -#define CONFIG_SYS_EUMB_ADDR		0x80000000 -#define CONFIG_SYS_PCI_MEM_ADDR	0xB0000000 -#define CONFIG_SYS_MISC_REGION_ADDR	0xFE000000 - -#define CONFIG_SYS_MONITOR_LEN		0x00040000	/* 256 kB			*/ -#define CONFIG_SYS_MALLOC_LEN		(512 << 10)	/* Reserve some kB for malloc()	*/ - -#define CONFIG_SYS_MEMTEST_START	0x00100000	/* memtest works on		*/ -#define CONFIG_SYS_MEMTEST_END		0x00800000	/* 1M ... 8M in DRAM		*/ - -/* Maximum amount of RAM */ -#if defined(CONFIG_HLAN) || defined(CONFIG_LAN) -#define CONFIG_SYS_MAX_RAM_SIZE	0x04000000	/* 64MB of SDRAM  */ -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_SYS_MAX_RAM_SIZE	0x08000000	/* 128MB of SDRAM */ -#else -#error Unknown LinkStation type -#endif - -/*----------------------------------------------------------------------- - * Change CONFIG_SYS_TEXT_BASE in bord/linkstation/config.mk to get a RAM build - * - * RAM based builds are for testing purposes. A Linux module, uloader.o, - * exists to load U-Boot and pass control to it - * - * Always do "make clean" after changing the build type - */ -#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE -#define CONFIG_SYS_RAMBOOT -#endif - -/*----------------------------------------------------------------------- - * Definitions for initial stack pointer and data area - */ -#if 1 /* RAM is available when the first C function is called */ -#define CONFIG_SYS_INIT_RAM_ADDR	(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MAX_RAM_SIZE - 0x1000) -#else -#define CONFIG_SYS_INIT_RAM_ADDR	0x40000000 -#endif -#define CONFIG_SYS_INIT_RAM_SIZE	0x1000 -#define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) - -/*---------------------------------------------------------------------- - * Serial configuration - */ -#define CONFIG_CONS_INDEX	1 -#define CONFIG_BAUDRATE		57600 - -#define CONFIG_SYS_NS16550 -#define CONFIG_SYS_NS16550_SERIAL - -#define CONFIG_SYS_NS16550_REG_SIZE	1 - -#define CONFIG_SYS_NS16550_CLK		get_bus_freq(0) - -#define CONFIG_SYS_NS16550_COM1	(CONFIG_SYS_EUMB_ADDR + 0x4600)	/* Console port	*/ -#define CONFIG_SYS_NS16550_COM2	(CONFIG_SYS_EUMB_ADDR + 0x4500)	/* AVR port	*/ - -/* - * Low Level Configuration Settings - * (address mappings, register initial values, etc.) - * You should know what you are doing if you make changes here. - * For the detail description refer to the MPC8245 user's manual. - * - * Unless indicated otherwise, the values are - * taken from the orignal Linkstation boot code - * - * Most of the low level configuration setttings are normally used - * in arch/powerpc/cpu/mpc824x/cpu_init.c which is NOT used by this implementation. - * Low level initialisation is done in board/linkstation/early_init.S - * The values below are included for reference purpose only - */ - -/* FIXME: 32.768 MHz is the crystal frequency but */ -/* the real frequency is lower by about 0.75%     */ -#define CONFIG_SYS_CLK_FREQ	32768000 - -/* Bit-field values for MCCR1.  */ -#define CONFIG_SYS_ROMNAL      0 -#define CONFIG_SYS_ROMFAL      11 - -#define CONFIG_SYS_BANK0_ROW	2       /* Only bank 0 used: 13 x n x 4 */ -#define CONFIG_SYS_BANK1_ROW	0 -#define CONFIG_SYS_BANK2_ROW	0 -#define CONFIG_SYS_BANK3_ROW	0 -#define CONFIG_SYS_BANK4_ROW	0 -#define CONFIG_SYS_BANK5_ROW	0 -#define CONFIG_SYS_BANK6_ROW	0 -#define CONFIG_SYS_BANK7_ROW	0 - -/* Bit-field values for MCCR2.  */ -#define CONFIG_SYS_TSWAIT      0 -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) -#define CONFIG_SYS_REFINT      0x15e0 -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_SYS_REFINT      0x1580 -#endif - -/* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4. */ -#define CONFIG_SYS_BSTOPRE	0x91c - -/* Bit-field values for MCCR3.  */ -#define CONFIG_SYS_REFREC      7 - -/* Bit-field values for MCCR4.  */ -#define CONFIG_SYS_PRETOACT		2 -#define CONFIG_SYS_ACTTOPRE		2	/* Original value was 2	*/ -#define CONFIG_SYS_ACTORW		2 -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) -#define CONFIG_SYS_SDMODE_CAS_LAT	2	/* For 100MHz bus	*/ -/*#define CONFIG_SYS_SDMODE_BURSTLEN	3*/ -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_SYS_SDMODE_CAS_LAT	3	/* For 133MHz bus	*/ -/*#define CONFIG_SYS_SDMODE_BURSTLEN	2*/ -#endif -#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1 -#define CONFIG_SYS_EXTROM		1	/* Original setting but there is no EXTROM */ -#define CONFIG_SYS_REGDIMM		0 -#define CONFIG_SYS_DBUS_SIZE2		1 -#define CONFIG_SYS_SDMODE_WRAP		0 - -#define CONFIG_SYS_PGMAX		0x32	/* All boards use this setting. Original 0x92 */ -#define CONFIG_SYS_SDRAM_DSCD		0x30 - -/* Memory bank settings. - * Only bits 20-29 are actually used from these vales to set the - * start/end addresses. The upper two bits will always be 0, and the lower - * 20 bits will be 0x00000 for a start address, or 0xfffff for an end - * address. Refer to the MPC8240 book. - */ - -#define CONFIG_SYS_BANK0_START	    0x00000000 -#define CONFIG_SYS_BANK0_END	    (CONFIG_SYS_MAX_RAM_SIZE - 1) -#define CONFIG_SYS_BANK0_ENABLE    1 -#define CONFIG_SYS_BANK1_START     0x3ff00000 -#define CONFIG_SYS_BANK1_END       0x3fffffff -#define CONFIG_SYS_BANK1_ENABLE    0 -#define CONFIG_SYS_BANK2_START     0x3ff00000 -#define CONFIG_SYS_BANK2_END       0x3fffffff -#define CONFIG_SYS_BANK2_ENABLE    0 -#define CONFIG_SYS_BANK3_START     0x3ff00000 -#define CONFIG_SYS_BANK3_END       0x3fffffff -#define CONFIG_SYS_BANK3_ENABLE    0 -#define CONFIG_SYS_BANK4_START     0x3ff00000 -#define CONFIG_SYS_BANK4_END       0x3fffffff -#define CONFIG_SYS_BANK4_ENABLE    0 -#define CONFIG_SYS_BANK5_START     0x3ff00000 -#define CONFIG_SYS_BANK5_END       0x3fffffff -#define CONFIG_SYS_BANK5_ENABLE    0 -#define CONFIG_SYS_BANK6_START     0x3ff00000 -#define CONFIG_SYS_BANK6_END       0x3fffffff -#define CONFIG_SYS_BANK6_ENABLE    0 -#define CONFIG_SYS_BANK7_START     0x3ff00000 -#define CONFIG_SYS_BANK7_END       0x3fffffff -#define CONFIG_SYS_BANK7_ENABLE    0 - -#define CONFIG_SYS_ODCR	    0x15 - -/*---------------------------------------------------------------------- - * Initial BAT mappings - */ - -/* NOTES: - * 1) GUARDED and WRITETHROUGH not allowed in IBATS - * 2) CACHEINHIBIT and WRITETHROUGH not allowed together in same BAT - */ - -/* SDRAM */ -#define CONFIG_SYS_IBAT0L	(CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) -#define CONFIG_SYS_IBAT0U	(CONFIG_SYS_SDRAM_BASE | BATU_BL_128M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT0L	CONFIG_SYS_IBAT0L -#define CONFIG_SYS_DBAT0U	CONFIG_SYS_IBAT0U - -/* EUMB: 1MB of address space */ -#define CONFIG_SYS_IBAT1L	(CONFIG_SYS_EUMB_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT) -#define CONFIG_SYS_IBAT1U	(CONFIG_SYS_EUMB_ADDR | BATU_BL_1M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT1L	(CONFIG_SYS_IBAT1L | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_DBAT1U	CONFIG_SYS_IBAT1U - -/* PCI Mem: 256MB of address space */ -#define CONFIG_SYS_IBAT2L	(CONFIG_SYS_PCI_MEM_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT) -#define CONFIG_SYS_IBAT2U	(CONFIG_SYS_PCI_MEM_ADDR | BATU_BL_256M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT2L	(CONFIG_SYS_IBAT2L | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_DBAT2U	CONFIG_SYS_IBAT2U - -/* PCI and local ROM/Flash: last 32MB of address space */ -#define CONFIG_SYS_IBAT3L	(CONFIG_SYS_MISC_REGION_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT) -#define CONFIG_SYS_IBAT3U	(CONFIG_SYS_MISC_REGION_ADDR | BATU_BL_32M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT3L	(CONFIG_SYS_IBAT3L | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_DBAT3U	CONFIG_SYS_IBAT3U - -/* - * For booting Linux, the board info and command line data - * have to be in the first 8 MB of memory, since this is - * the maximum mapped by the Linux kernel during initialization. - * - * FIXME: This doesn't appear to be true for the newer kernels - * which map more that 8 MB - */ -#define CONFIG_SYS_BOOTMAPSZ	(8 << 20)	/* Initial Memory map for Linux */ - -/*----------------------------------------------------------------------- - * FLASH organization - */ -#define CONFIG_SYS_FLASH_CFI			/* The flash is CFI compatible	*/ -#define CONFIG_FLASH_CFI_DRIVER		/* Use common CFI driver	*/ - -#undef  CONFIG_SYS_FLASH_PROTECTION -#define CONFIG_SYS_FLASH_BANKS_LIST	{ CONFIG_SYS_FLASH_BASE } -#define CONFIG_SYS_MAX_FLASH_BANKS	1	/* Max number of flash banks		*/ -#define CONFIG_SYS_MAX_FLASH_SECT	72	/* Max number of sectors per flash	*/ - -#define CONFIG_SYS_FLASH_ERASE_TOUT	12000 -#define CONFIG_SYS_FLASH_WRITE_TOUT	1000 - -#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1	/* use buffered writes (20x faster)	*/ - -#define CONFIG_SYS_FLASH_EMPTY_INFO		/* print 'E' for empty sector on flinfo */ -#define CONFIG_SYS_FLASH_QUIET_TEST	1	/* don't warn upon unknown flash	*/ - -#define CONFIG_ENV_IS_IN_FLASH -/* - * The original LinkStation flash organisation uses - * 448 kB (0xFFF00000 - 0xFFF6FFFF) for the boot loader - * We use the last sector of this area to store the environment - * which leaves max. 384 kB for the U-Boot itself - */ -#define CONFIG_ENV_ADDR		0xFFF60000 -#define CONFIG_ENV_SIZE		0x00010000 -#define CONFIG_ENV_SECT_SIZE	0x00010000 - -/*----------------------------------------------------------------------- - * Cache Configuration - */ -#define CONFIG_SYS_CACHELINE_SIZE	32 -#ifdef CONFIG_CMD_KGDB -#define CONFIG_SYS_CACHELINE_SHIFT	5	/* log base 2 of the above value	*/ -#endif - -/*----------------------------------------------------------------------- - * IDE/ATA definitions - */ -#undef  CONFIG_IDE_LED				/* No IDE LED			*/ -#define CONFIG_IDE_RESET			/* no reset for ide supported	*/ -#define CONFIG_IDE_PREINIT			/* check for units		*/ -#define CONFIG_LBA48				/* 48 bit LBA supported		*/ - -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) || defined(CONFIG_HGLAN) -#define CONFIG_SYS_IDE_MAXBUS		1		/* Scan only 1 IDE bus		*/ -#define CONFIG_SYS_IDE_MAXDEVICE	1		/* Only 1 drive per IDE bus	*/ -#elif defined(CONFIG_HGTL) -#define CONFIG_SYS_IDE_MAXBUS		2		/* Max. 2 IDE busses		*/ -#define CONFIG_SYS_IDE_MAXDEVICE	2		/* max. 2 drives per IDE bus	*/ -#else -#error Config IDE: Unknown LinkStation type -#endif - -#define CONFIG_SYS_ATA_BASE_ADDR	0 - -#define CONFIG_SYS_ATA_DATA_OFFSET	0		/* Offset for data I/O		*/ -#define CONFIG_SYS_ATA_REG_OFFSET	0		/* Offset for normal registers	*/ -#define CONFIG_SYS_ATA_ALT_OFFSET	0		/* Offset for alternate registers */ - -/*----------------------------------------------------------------------- - * Partitions and file system - */ -#define CONFIG_DOS_PARTITION - -#endif	/* __CONFIG_H */ diff --git a/include/configs/lp8x4x.h b/include/configs/lp8x4x.h index 8e58fea3b..a26937265 100644 --- a/include/configs/lp8x4x.h +++ b/include/configs/lp8x4x.h @@ -93,7 +93,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/lubbock.h b/include/configs/lubbock.h index b87df5479..4ffe165de 100644 --- a/include/configs/lubbock.h +++ b/include/configs/lubbock.h @@ -86,7 +86,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h index c348329cb..e9c8d8fd5 100644 --- a/include/configs/lwmon5.h +++ b/include/configs/lwmon5.h @@ -660,7 +660,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	    /* which serial port to use */  #endif  /* diff --git a/include/configs/mecp5123.h b/include/configs/mecp5123.h index 6501ea40e..d415ecdb5 100644 --- a/include/configs/mecp5123.h +++ b/include/configs/mecp5123.h @@ -364,7 +364,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/mpc5121ads.h b/include/configs/mpc5121ads.h index 4a8adf6f3..38337b456 100644 --- a/include/configs/mpc5121ads.h +++ b/include/configs/mpc5121ads.h @@ -520,7 +520,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/mpq101.h b/include/configs/mpq101.h index ec09e15db..4cac8ee46 100644 --- a/include/configs/mpq101.h +++ b/include/configs/mpq101.h @@ -345,7 +345,6 @@  #ifdef CONFIG_CMD_KGDB  # define CONFIG_KGDB_BAUDRATE  230400 /* speed to run kgdb serial port */ -# define CONFIG_KGDB_SER_INDEX 2      /* which serial port to use */  #endif  /* diff --git a/include/configs/mpr2.h b/include/configs/mpr2.h index fcf237edb..8ae497c6d 100644 --- a/include/configs/mpr2.h +++ b/include/configs/mpr2.h @@ -24,8 +24,6 @@  #define CONFIG_VERSION_VARIABLE  /* CPU and platform */ -#define CONFIG_SH		1 -#define CONFIG_SH3		1  #define CONFIG_CPU_SH7720	1  #define CONFIG_MPR2		1 diff --git a/include/configs/ms7720se.h b/include/configs/ms7720se.h index ec8523eb9..585d68f20 100644 --- a/include/configs/ms7720se.h +++ b/include/configs/ms7720se.h @@ -9,8 +9,6 @@  #ifndef __MS7720SE_H  #define __MS7720SE_H -#define CONFIG_SH		1 -#define CONFIG_SH3		1  #define CONFIG_CPU_SH7720	1  #define CONFIG_MS7720SE		1 diff --git a/include/configs/ms7722se.h b/include/configs/ms7722se.h index 54fb7c3e8..1c8ada6c0 100644 --- a/include/configs/ms7722se.h +++ b/include/configs/ms7722se.h @@ -9,8 +9,6 @@  #ifndef __MS7722SE_H  #define __MS7722SE_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7722	1  #define CONFIG_MS7722SE		1 diff --git a/include/configs/ms7750se.h b/include/configs/ms7750se.h index eea3bd1f2..4cf8efeca 100644 --- a/include/configs/ms7750se.h +++ b/include/configs/ms7750se.h @@ -9,8 +9,6 @@  #ifndef __MS7750SE_H  #define __MS7750SE_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7750	1  /* #define CONFIG_CPU_SH7751	1 */  /* #define CONFIG_CPU_TYPE_R	1 */ diff --git a/include/configs/mx1ads.h b/include/configs/mx1ads.h index c15d54631..12667c57c 100644 --- a/include/configs/mx1ads.h +++ b/include/configs/mx1ads.h @@ -86,8 +86,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200		/* speed to run kgdb serial port */ -						/* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX	1		/* which serial port to use */  #endif  /* diff --git a/include/configs/omap5912osk.h b/include/configs/omap5912osk.h index c48790d2a..376dfdb14 100644 --- a/include/configs/omap5912osk.h +++ b/include/configs/omap5912osk.h @@ -94,7 +94,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	1	/* which serial port to use */  #endif  /* diff --git a/include/configs/omap5_uevm.h b/include/configs/omap5_uevm.h index 2f128b8a6..76c5106b4 100644 --- a/include/configs/omap5_uevm.h +++ b/include/configs/omap5_uevm.h @@ -36,6 +36,7 @@  #define CONFIG_EFI_PARTITION  #define CONFIG_PARTITION_UUIDS  #define CONFIG_CMD_PART +#define CONFIG_HSMMC2_8BIT  /* Required support for the TCA642X GPIO we have on the uEVM */  #define CONFIG_TCA642X diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h index 57ed01995..c6df11b8f 100644 --- a/include/configs/p1_p2_rdb_pc.h +++ b/include/configs/p1_p2_rdb_pc.h @@ -928,7 +928,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/p3p440.h b/include/configs/p3p440.h index 3fde7ca3a..1fdd602f5 100644 --- a/include/configs/p3p440.h +++ b/include/configs/p3p440.h @@ -303,6 +303,5 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #endif	/* __CONFIG_H */ diff --git a/include/configs/palmld.h b/include/configs/palmld.h index a5b6e3aa9..2a9fd22dd 100644 --- a/include/configs/palmld.h +++ b/include/configs/palmld.h @@ -93,7 +93,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/palmtc.h b/include/configs/palmtc.h index 7303e1c31..de254076f 100644 --- a/include/configs/palmtc.h +++ b/include/configs/palmtc.h @@ -95,7 +95,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/palmtreo680.h b/include/configs/palmtreo680.h index adf85190d..36626639d 100644 --- a/include/configs/palmtreo680.h +++ b/include/configs/palmtreo680.h @@ -94,7 +94,6 @@   */  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE            230400  /* kgdb serial port speed */ -#define CONFIG_KGDB_SER_INDEX           2       /* which serial port to use */  #endif  /* diff --git a/include/configs/pcs440ep.h b/include/configs/pcs440ep.h index 400cb3e82..5a5fe7ff0 100644 --- a/include/configs/pcs440ep.h +++ b/include/configs/pcs440ep.h @@ -427,7 +427,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /*----------------------------------------------------------------------- diff --git a/include/configs/pdm360ng.h b/include/configs/pdm360ng.h index 266d107e4..2a54e5cea 100644 --- a/include/configs/pdm360ng.h +++ b/include/configs/pdm360ng.h @@ -441,7 +441,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* POST support */ diff --git a/include/configs/pxa-common.h b/include/configs/pxa-common.h index 5856ee180..f0ecc3458 100644 --- a/include/configs/pxa-common.h +++ b/include/configs/pxa-common.h @@ -16,7 +16,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400 -#define	CONFIG_KGDB_SER_INDEX		2  #endif  /* diff --git a/include/configs/pxa255_idp.h b/include/configs/pxa255_idp.h index 84ad006ac..af7c076df 100644 --- a/include/configs/pxa255_idp.h +++ b/include/configs/pxa255_idp.h @@ -199,7 +199,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/quad100hd.h b/include/configs/quad100hd.h index 7b04e0c3e..20d6178dc 100644 --- a/include/configs/quad100hd.h +++ b/include/configs/quad100hd.h @@ -265,7 +265,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* ENVIRONMENT VARS */ diff --git a/include/configs/r0p7734.h b/include/configs/r0p7734.h index dd26a71bc..53128ecc1 100644 --- a/include/configs/r0p7734.h +++ b/include/configs/r0p7734.h @@ -10,9 +10,6 @@  #define __R0P7734_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7734	1  #define CONFIG_R0P7734		1  #define CONFIG_400MHZ_MODE	1 diff --git a/include/configs/r2dplus.h b/include/configs/r2dplus.h index ddcc97587..24d0c34db 100644 --- a/include/configs/r2dplus.h +++ b/include/configs/r2dplus.h @@ -3,8 +3,6 @@  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7751	1  #define CONFIG_CPU_SH_TYPE_R	1  #define CONFIG_R2DPLUS		1 diff --git a/include/configs/r7780mp.h b/include/configs/r7780mp.h index f5e4daab8..8156724f7 100644 --- a/include/configs/r7780mp.h +++ b/include/configs/r7780mp.h @@ -11,8 +11,6 @@  #define __R7780RP_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7780	1  #define CONFIG_R7780MP		1  #define CONFIG_SYS_R7780MP_OLD_FLASH	1 diff --git a/include/configs/rsdproto.h b/include/configs/rsdproto.h index f144f8432..92318c339 100644 --- a/include/configs/rsdproto.h +++ b/include/configs/rsdproto.h @@ -121,7 +121,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/rsk7203.h b/include/configs/rsk7203.h index acee4e898..543632458 100644 --- a/include/configs/rsk7203.h +++ b/include/configs/rsk7203.h @@ -11,8 +11,6 @@  #define __RSK7203_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH2		1  #define CONFIG_SH2A		1  #define CONFIG_CPU_SH7203	1  #define CONFIG_RSK7203	1 @@ -87,7 +85,7 @@  #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CMT_CLK_DIVIDER	32	/* 8 (default), 32, 128 or 512 */ -#define CONFIG_SYS_HZ			(CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER) +#define CONFIG_SH_CMT_CLK_FREQ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)  /* Network interface */  #define CONFIG_SMC911X diff --git a/include/configs/rsk7264.h b/include/configs/rsk7264.h index a5dbb64f4..4aaa3ef74 100644 --- a/include/configs/rsk7264.h +++ b/include/configs/rsk7264.h @@ -12,8 +12,6 @@  #define __RSK7264_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH2		1  #define CONFIG_SH2A		1  #define CONFIG_CPU_SH7264	1  #define CONFIG_RSK7264		1 @@ -67,7 +65,7 @@  #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CMT_CLK_DIVIDER		32	/* 8 (default), 32, 128 or 512 */ -#define CONFIG_SYS_HZ		(CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER) +#define CONFIG_SH_CMT_CLK_FREQ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)  /* Network interface */  #define CONFIG_SMC911X diff --git a/include/configs/rsk7269.h b/include/configs/rsk7269.h index 9f54160af..11fc231fa 100644 --- a/include/configs/rsk7269.h +++ b/include/configs/rsk7269.h @@ -11,8 +11,6 @@  #define __RSK7269_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH2		1  #define CONFIG_SH2A		1  #define CONFIG_CPU_SH7269	1  #define CONFIG_RSK7269		1 @@ -66,7 +64,7 @@  #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CMT_CLK_DIVIDER		32	/* 8 (default), 32, 128 or 512 */ -#define CONFIG_SYS_HZ		(CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER) +#define CONFIG_SH_CMT_CLK_FREQ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)  /* Network interface */  #define CONFIG_SMC911X diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 7e78a231d..a6d55822b 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -39,6 +39,9 @@  #define CONFIG_CMD_FAT  #define CONFIG_CMD_EXT4  #define CONFIG_CMD_EXT4_WRITE +#define CONFIG_CMD_PART +#define CONFIG_DOS_PARTITION +#define CONFIG_HOST_MAX_DEVICES 4  #define CONFIG_SYS_VSNPRINTF @@ -126,4 +129,6 @@  #define CONFIG_LZO  #define CONFIG_LZMA +#define CONFIG_TPM_TIS_SANDBOX +  #endif diff --git a/include/configs/sbc8349.h b/include/configs/sbc8349.h index a258fe83d..b7f83e010 100644 --- a/include/configs/sbc8349.h +++ b/include/configs/sbc8349.h @@ -643,7 +643,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/sbc8548.h b/include/configs/sbc8548.h index bdb8eb529..4912d69dc 100644 --- a/include/configs/sbc8548.h +++ b/include/configs/sbc8548.h @@ -575,7 +575,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/sbc8641d.h b/include/configs/sbc8641d.h index dba948a5c..78f8219c5 100644 --- a/include/configs/sbc8641d.h +++ b/include/configs/sbc8641d.h @@ -523,7 +523,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/sh7752evb.h b/include/configs/sh7752evb.h index ebdc5c8b0..f06abbca0 100644 --- a/include/configs/sh7752evb.h +++ b/include/configs/sh7752evb.h @@ -10,8 +10,6 @@  #define __SH7752EVB_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_SH_32BIT		1  #define CONFIG_CPU_SH7752	1  #define CONFIG_SH7752EVB	1 diff --git a/include/configs/sh7753evb.h b/include/configs/sh7753evb.h new file mode 100644 index 000000000..e400db08a --- /dev/null +++ b/include/configs/sh7753evb.h @@ -0,0 +1,135 @@ +/* + * Configuation settings for the sh7753evb board + * + * Copyright (C) 2012 Renesas Solutions Corp. + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __SH7753EVB_H +#define __SH7753EVB_H + +#undef DEBUG +#define CONFIG_SH_32BIT		1 +#define CONFIG_CPU_SH7753	1 +#define CONFIG_SH7753EVB	1 + +#define CONFIG_SYS_TEXT_BASE	0x5ff80000 +#define CONFIG_SYS_LDSCRIPT	"board/renesas/sh7753evb/u-boot.lds" + +#define CONFIG_CMD_MEMORY +#define CONFIG_CMD_NET +#define CONFIG_CMD_MII +#define CONFIG_CMD_PING +#define CONFIG_CMD_NFS +#define CONFIG_CMD_DFL +#define CONFIG_CMD_SDRAM +#define CONFIG_CMD_SF +#define CONFIG_CMD_RUN +#define CONFIG_CMD_SAVEENV +#define CONFIG_CMD_MD5SUM +#define CONFIG_MD5 +#define CONFIG_CMD_LOADS +#define CONFIG_CMD_MMC +#define CONFIG_CMD_EXT2 +#define CONFIG_DOS_PARTITION +#define CONFIG_MAC_PARTITION + +#define CONFIG_BAUDRATE		115200 +#define CONFIG_BOOTDELAY	3 +#define CONFIG_BOOTARGS		"console=ttySC2,115200 root=/dev/nfs ip=dhcp" + +#define CONFIG_VERSION_VARIABLE +#undef	CONFIG_SHOW_BOOT_PROGRESS +#define CONFIG_CMDLINE_EDITING +#define CONFIG_AUTO_COMPLETE + +/* MEMORY */ +#define SH7753EVB_SDRAM_BASE		(0x40000000) +#define SH7753EVB_SDRAM_SIZE		(512 * 1024 * 1024) + +#define CONFIG_SYS_LONGHELP +#define CONFIG_SYS_CBSIZE		256 +#define CONFIG_SYS_PBSIZE		256 +#define CONFIG_SYS_MAXARGS		16 +#define CONFIG_SYS_BARGSIZE		512 +#define CONFIG_SYS_BAUDRATE_TABLE	{ 115200 } + +/* SCIF */ +#define CONFIG_SCIF_CONSOLE	1 +#define CONFIG_CONS_SCIF2	1 +#undef	CONFIG_SYS_CONSOLE_INFO_QUIET +#undef	CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE +#undef	CONFIG_SYS_CONSOLE_ENV_OVERWRITE + +#define CONFIG_SYS_MEMTEST_START	(SH7753EVB_SDRAM_BASE) +#define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + \ +					 480 * 1024 * 1024) +#undef	CONFIG_SYS_ALT_MEMTEST +#undef	CONFIG_SYS_MEMTEST_SCRATCH +#undef	CONFIG_SYS_LOADS_BAUD_CHANGE + +#define CONFIG_SYS_SDRAM_BASE		(SH7753EVB_SDRAM_BASE) +#define CONFIG_SYS_SDRAM_SIZE		(SH7753EVB_SDRAM_SIZE) +#define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + \ +					 128 * 1024 * 1024) + +#define CONFIG_SYS_MONITOR_BASE		0x00000000 +#define CONFIG_SYS_MONITOR_LEN		(512 * 1024) +#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024) +#define CONFIG_SYS_BOOTMAPSZ		(8 * 1024 * 1024) + +/* FLASH */ +#define CONFIG_SYS_NO_FLASH + +/* Ether */ +#define CONFIG_SH_ETHER			1 +#define CONFIG_SH_ETHER_USE_PORT	0 +#define CONFIG_SH_ETHER_PHY_ADDR	18 +#define CONFIG_SH_ETHER_CACHE_WRITEBACK	1 +#define CONFIG_SH_ETHER_USE_GETHER	1 +#define CONFIG_PHYLIB +#define CONFIG_BITBANGMII +#define CONFIG_BITBANGMII_MULTI +#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RGMII +#define CONFIG_PHY_VITESSE + +#define SH7753EVB_ETHERNET_MAC_BASE_SPI	0x00090000 +#define SH7753EVB_SPI_SECTOR_SIZE	(64 * 1024) +#define SH7753EVB_ETHERNET_MAC_BASE	SH7753EVB_ETHERNET_MAC_BASE_SPI +#define SH7753EVB_ETHERNET_MAC_SIZE	17 +#define SH7753EVB_ETHERNET_NUM_CH	2 +#define CONFIG_BOARD_LATE_INIT + +/* SPI */ +#define CONFIG_SH_SPI			1 +#define CONFIG_SH_SPI_BASE		0xfe002000 +#define CONFIG_SPI_FLASH +#define CONFIG_SPI_FLASH_STMICRO	1 +#define CONFIG_SPI_FLASH_MACRONIX	1 + +/* MMCIF */ +#define CONFIG_MMC			1 +#define CONFIG_GENERIC_MMC		1 +#define CONFIG_SH_MMCIF			1 +#define CONFIG_SH_MMCIF_ADDR		0xffcb0000 +#define CONFIG_SH_MMCIF_CLK		48000000 + +/* ENV setting */ +#define CONFIG_ENV_IS_EMBEDDED +#define CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_SECT_SIZE	(64 * 1024) +#define CONFIG_ENV_ADDR		(0x00080000) +#define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR) +#define CONFIG_ENV_OVERWRITE	1 +#define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE) +#define CONFIG_ENV_SIZE_REDUND	(CONFIG_ENV_SECT_SIZE) +#define CONFIG_EXTRA_ENV_SETTINGS				\ +		"netboot=bootp; bootm\0" + +/* Board Clock */ +#define CONFIG_SYS_CLK_FREQ	48000000 +#define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ +#define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ +#define CONFIG_SYS_TMU_CLK_DIV	4 +#endif	/* __SH7753EVB_H */ diff --git a/include/configs/sh7757lcr.h b/include/configs/sh7757lcr.h index ce1add268..08bff1da3 100644 --- a/include/configs/sh7757lcr.h +++ b/include/configs/sh7757lcr.h @@ -10,8 +10,6 @@  #define __SH7757LCR_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_SH_32BIT		1  #define CONFIG_CPU_SH7757	1  #define CONFIG_SH7757LCR	1 diff --git a/include/configs/sh7763rdp.h b/include/configs/sh7763rdp.h index a13778830..2438318fc 100644 --- a/include/configs/sh7763rdp.h +++ b/include/configs/sh7763rdp.h @@ -10,8 +10,6 @@  #ifndef __SH7763RDP_H  #define __SH7763RDP_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7763	1  #define CONFIG_SH7763RDP	1  #define __LITTLE_ENDIAN		1 diff --git a/include/configs/sh7785lcr.h b/include/configs/sh7785lcr.h index 4acbcab1b..2723eaf2d 100644 --- a/include/configs/sh7785lcr.h +++ b/include/configs/sh7785lcr.h @@ -10,8 +10,6 @@  #define __SH7785LCR_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7785	1  #define CONFIG_SH7785LCR	1 diff --git a/include/configs/shmin.h b/include/configs/shmin.h index 5c990fc96..f8155efbc 100644 --- a/include/configs/shmin.h +++ b/include/configs/shmin.h @@ -9,8 +9,6 @@  #ifndef __SHMIN_H  #define __SHMIN_H -#define CONFIG_SH		1 -#define CONFIG_SH3		1  #define CONFIG_CPU_SH7706	1  /* T-SH7706LAN */  #define CONFIG_SHMIN		1 diff --git a/include/configs/smdk2410.h b/include/configs/smdk2410.h index a87444e0b..d4ae19f96 100644 --- a/include/configs/smdk2410.h +++ b/include/configs/smdk2410.h @@ -101,8 +101,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200	/* speed to run kgdb serial port */ -/* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/socrates.h b/include/configs/socrates.h index 0e6b86412..fd590e4e1 100644 --- a/include/configs/socrates.h +++ b/include/configs/socrates.h @@ -363,7 +363,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port*/ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use	*/  #endif diff --git a/include/configs/stxgp3.h b/include/configs/stxgp3.h index ee1f1f3ed..2a9c9a349 100644 --- a/include/configs/stxgp3.h +++ b/include/configs/stxgp3.h @@ -341,7 +341,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /*Note: change below for your network setting!!! */ diff --git a/include/configs/stxssa.h b/include/configs/stxssa.h index 63dd76704..d0cb68a0e 100644 --- a/include/configs/stxssa.h +++ b/include/configs/stxssa.h @@ -376,7 +376,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /*Note: change below for your network setting!!! */ diff --git a/include/configs/t4qds.h b/include/configs/t4qds.h index d9b0ed07d..54a5e3e26 100644 --- a/include/configs/t4qds.h +++ b/include/configs/t4qds.h @@ -303,7 +303,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/tcm-bf537.h b/include/configs/tcm-bf537.h index 627836a7e..58bcdc8f4 100644 --- a/include/configs/tcm-bf537.h +++ b/include/configs/tcm-bf537.h @@ -55,7 +55,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL	(B1WAT_7 | B1RAT_11 | B1HT_2 | B1ST_3 | B0WAT_7 | B0RAT_11 | B0HT_2 | B0ST_3)  #define CONFIG_EBIU_AMBCTL1_VAL	(B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_7 | B2RAT_11 | B2HT_2 | B2ST_3) -#define CONFIG_SYS_MONITOR_LEN	(512 * 1024) +#define CONFIG_SYS_MONITOR_LEN	(768 * 1024)  #define CONFIG_SYS_MALLOC_LEN	(128 * 1024) @@ -144,6 +144,7 @@  #define FLASHBOOT_ENV_SETTINGS \  	"flashboot=flread 20040000 1000000 300000;" \  	"bootm 0x1000000\0" +#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))  /* diff --git a/include/configs/trats.h b/include/configs/trats.h index 08771422e..6cd15c25b 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -99,6 +99,7 @@  #define CONFIG_THOR_FUNCTION  #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M +#define DFU_DEFAULT_POLL_TIMEOUT 300  #define CONFIG_DFU_FUNCTION  #define CONFIG_DFU_MMC diff --git a/include/configs/trizepsiv.h b/include/configs/trizepsiv.h index 061511777..b7804d287 100644 --- a/include/configs/trizepsiv.h +++ b/include/configs/trizepsiv.h @@ -125,7 +125,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/vme8349.h b/include/configs/vme8349.h index 734d13f00..7ecbafe2e 100644 --- a/include/configs/vme8349.h +++ b/include/configs/vme8349.h @@ -539,7 +539,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/vpac270.h b/include/configs/vpac270.h index c3ac612a8..71a89b6ed 100644 --- a/include/configs/vpac270.h +++ b/include/configs/vpac270.h @@ -124,7 +124,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/xaeniax.h b/include/configs/xaeniax.h index 431ed96e2..2999d1b0f 100644 --- a/include/configs/xaeniax.h +++ b/include/configs/xaeniax.h @@ -84,7 +84,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200			/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	1			/* which serial port to use */  #endif  /* diff --git a/include/configs/zeus.h b/include/configs/zeus.h index 9d58738ce..d8aeb3794 100644 --- a/include/configs/zeus.h +++ b/include/configs/zeus.h @@ -283,7 +283,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h index 904f3b0fb..e38fa89fd 100644 --- a/include/configs/zipitz2.h +++ b/include/configs/zipitz2.h @@ -117,7 +117,6 @@ unsigned char zipitz2_spi_read(void);   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400		/* speed to run kgdb serial port */ -#define	CONFIG_KGDB_SER_INDEX		2		/* which serial port to use */  #endif  /* diff --git a/include/dfu.h b/include/dfu.h index cc1404492..f973426aa 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -77,6 +77,9 @@ static inline unsigned int get_mmc_blk_size(int dev)  #ifndef CONFIG_SYS_DFU_MAX_FILE_SIZE  #define CONFIG_SYS_DFU_MAX_FILE_SIZE CONFIG_SYS_DFU_DATA_BUF_SIZE  #endif +#ifndef DFU_DEFAULT_POLL_TIMEOUT +#define DFU_DEFAULT_POLL_TIMEOUT 0 +#endif  struct dfu_entity {  	char			name[DFU_NAME_SIZE]; @@ -131,6 +134,7 @@ bool dfu_reset(void);  int dfu_init_env_entities(char *interface, int dev);  unsigned char *dfu_get_buf(void);  unsigned char *dfu_free_buf(void); +unsigned long dfu_get_buf_size(void);  int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num);  int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num); diff --git a/include/linux/crc8.h b/include/linux/crc8.h new file mode 100644 index 000000000..b5fd2ac9d --- /dev/null +++ b/include/linux/crc8.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2013 Google, Inc + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + + +#ifndef __linux_crc8_h +#define __linux_crc8_h + +/** + * crc8() - Calculate and return CRC-8 of the data + * + * This uses an x^8 + x^2 + x + 1 polynomial.  A table-based algorithm would + * be faster, but for only a few bytes it isn't worth the code size + * + * @vptr: Buffer to checksum + * @len: Length of buffer in bytes + * @return CRC8 checksum + */ +unsigned int crc8(const unsigned char *vptr, int len); + +#endif diff --git a/include/mmc.h b/include/mmc.h index cb558da63..e1060b9ff 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -262,6 +262,8 @@ struct mmc {  	uint card_caps;  	uint host_caps;  	uint ocr; +	uint dsr; +	uint dsr_imp;  	uint scr[2];  	uint csd[4];  	uint cid[4]; @@ -304,7 +306,7 @@ int board_mmc_getcd(struct mmc *mmc);  int mmc_switch_part(int dev_num, unsigned int part_num);  int mmc_getcd(struct mmc *mmc);  int mmc_getwp(struct mmc *mmc); -void spl_mmc_load(void) __noreturn; +int mmc_set_dsr(struct mmc *mmc, u16 val);  /* Function to change the size of boot partition and rpmb partitions */  int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize,  					unsigned long rpmbsize); diff --git a/include/os.h b/include/os.h index 950433daa..b65fba430 100644 --- a/include/os.h +++ b/include/os.h @@ -107,6 +107,35 @@ void os_tty_raw(int fd);  void *os_malloc(size_t length);  /** + * Free memory previous allocated with os_malloc()/os_realloc() + * + * This returns the memory to the OS. + * + * \param ptr		Pointer to memory block to free + */ +void *os_free(void *ptr); + +/** + * Reallocate previously-allocated memory to increase/decrease space + * + * This works in a similar way to the C library realloc() function. If + * length is 0, then ptr is freed. Otherwise the space used by ptr is + * expanded or reduced depending on whether length is larger or smaller + * than before. + * + * If ptr is NULL, then this is similar to calling os_malloc(). + * + * This function may need to move the memory block to make room for any + * extra space, in which case the new pointer is returned. + * + * \param ptr		Pointer to memory block to reallocate + * \param length	New length for memory block + * \return pointer to new memory block, or NULL on failure or if length + *	is 0. + */ +void *os_realloc(void *ptr, size_t length); + +/**   * Access to the usleep function of the os   *   * \param usec Time to sleep in micro seconds @@ -180,4 +209,40 @@ const char *os_dirent_get_typename(enum os_dirent_t type);   */  ssize_t os_get_filesize(const char *fname); +/** + * Write a character to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param ch	Character to write + */ +void os_putc(int ch); + +/** + * Write a string to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param str	String to write (note that \n is not appended) + */ +void os_puts(const char *str); + +/** + * Write the sandbox RAM buffer to a existing file + * + * @param fname		Filename to write memory to (simple binary format) + * @return 0 if OK, -ve on error + */ +int os_write_ram_buf(const char *fname); + +/** + * Read the sandbox RAM buffer from an existing file + * + * @param fname		Filename containing memory (simple binary format) + * @return 0 if OK, -ve on error + */ +int os_read_ram_buf(const char *fname); +  #endif diff --git a/include/part.h b/include/part.h index ce840bd84..4beb6db89 100644 --- a/include/part.h +++ b/include/part.h @@ -58,6 +58,8 @@ typedef struct block_dev_desc {  #define IF_TYPE_MMC		6  #define IF_TYPE_SD		7  #define IF_TYPE_SATA		8 +#define IF_TYPE_HOST		9 +#define IF_TYPE_MAX		10	/* Max number of IF_TYPE_* supported */  /* Part types */  #define PART_TYPE_UNKNOWN	0x00 @@ -102,6 +104,8 @@ block_dev_desc_t* usb_stor_get_dev(int dev);  block_dev_desc_t* mmc_get_dev(int dev);  block_dev_desc_t* systemace_get_dev(int dev);  block_dev_desc_t* mg_disk_get_dev(int dev); +block_dev_desc_t *host_get_dev(int dev); +int host_get_dev_err(int dev, block_dev_desc_t **blk_devp);  /* disk/part.c */  int get_partition_info (block_dev_desc_t * dev_desc, int part, disk_partition_t *info); @@ -123,6 +127,7 @@ static inline block_dev_desc_t* usb_stor_get_dev(int dev) { return NULL; }  static inline block_dev_desc_t* mmc_get_dev(int dev) { return NULL; }  static inline block_dev_desc_t* systemace_get_dev(int dev) { return NULL; }  static inline block_dev_desc_t* mg_disk_get_dev(int dev) { return NULL; } +static inline block_dev_desc_t *host_get_dev(int dev) { return NULL; }  static inline int get_partition_info (block_dev_desc_t * dev_desc, int part,  	disk_partition_t *info) { return -1; } diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h new file mode 100644 index 000000000..627787aa3 --- /dev/null +++ b/include/sandboxblockdev.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2013, Henrik Nordstrom <henrik@henriknordstrom.net> + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __SANDBOX_BLOCK_DEV__ +#define __SANDBOX_BLOCK_DEV__ + +struct host_block_dev { +	block_dev_desc_t blk_dev; +	char *filename; +	int fd; +}; + +int host_dev_bind(int dev, char *filename); + +#endif diff --git a/include/sh_tmu.h b/include/sh_tmu.h index f5b42faea..61afc7136 100644 --- a/include/sh_tmu.h +++ b/include/sh_tmu.h @@ -47,7 +47,7 @@ struct tmu_regs {  };  #endif /* CONFIG_SH3 */ -#if defined(CONFIG_SH4) || defined(CONFIG_SH4A) || defined(CONFIG_RMOBILE) +#if defined(CONFIG_SH4) || defined(CONFIG_RMOBILE)  struct tmu_regs {  	u32 reserved;  	u8  tstr; diff --git a/include/vxworks.h b/include/vxworks.h index c5d1577f9..122043c94 100644 --- a/include/vxworks.h +++ b/include/vxworks.h @@ -9,6 +9,9 @@  #define _VXWORKS_H_  int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); +void boot_prep_vxworks(bootm_headers_t *images); +void boot_jump_vxworks(bootm_headers_t *images); +void do_bootvx_fdt(bootm_headers_t *images);  /*   * Use bootaddr to find the location in memory that VxWorks |