[U-Boot] [PATCH v4 09/12] SPEAr : Support added for SPEAr300 board
Tom
Tom.Rix at windriver.com
Wed Jan 13 14:31:44 CET 2010
SPEAr300 SoC support contains basic spear300 support along with the
usage of following drivers
- serial driver(UART)
- i2c driver
- smi driver
- nand driver(FSMC)
- usbd driver
Signed-off-by: Vipin <vipin.kumar at st.com>
---
MAKEALL | 1 +
Makefile | 1 +
board/spear/spear300/Makefile | 51 ++++++++++++++++++++++++++++++++++
board/spear/spear300/config.mk | 39 ++++++++++++++++++++++++++
board/spear/spear300/spear300.c | 57 +++++++++++++++++++++++++++++++++++++++
include/configs/spear.h | 25 +++++++++++++++--
6 files changed, 171 insertions(+), 3 deletions(-)
create mode 100755 board/spear/spear300/Makefile
create mode 100755 board/spear/spear300/config.mk
create mode 100755 board/spear/spear300/spear300.c
<snip>
diff --git a/include/configs/spear.h b/include/configs/spear.h
index a625c31..15a8241 100755
--- a/include/configs/spear.h
+++ b/include/configs/spear.h
@@ -28,7 +28,12 @@
* High Level Configuration Options
* (easy to change)
*/
+#if defined(CONFIG_MK_spear600)
#define CONFIG_SPEAR600 1
+#elif defined(CONFIG_MK_spear300)
+#define CONFIG_SPEAR3XX 1
+#define CONFIG_SPEAR300 1
+#endif
There should be a config file per board.
The common parts can be kept in a separate file
So the should be 'spear300.h' etc.
Tom
More information about the U-Boot
mailing list