diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-29 13:09:01 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-21 08:10:03 +0100 |
commit | 1a1927f3a3c6cf0a0bfb51c0d9b3139ed2cb7a31 (patch) | |
tree | 9829ac6bd151fbafbcadbb799e339c25c34331b4 /include/configs | |
parent | 0f65f48b6480ea18497675b30e5463dfd0c60cbe (diff) | |
download | u-boot-imx-1a1927f3a3c6cf0a0bfb51c0d9b3139ed2cb7a31.zip u-boot-imx-1a1927f3a3c6cf0a0bfb51c0d9b3139ed2cb7a31.tar.gz u-boot-imx-1a1927f3a3c6cf0a0bfb51c0d9b3139ed2cb7a31.tar.bz2 |
dm: at91: Convert snapper9260 to use driver model
Convert this at91sam9260-based board to use driver model. This should serve
as an example for other similar boards. Serial and GPIO are supported so
far.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/snapper9260.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/configs/snapper9260.h b/include/configs/snapper9260.h index e2e623e..942af2e 100644 --- a/include/configs/snapper9260.h +++ b/include/configs/snapper9260.h @@ -21,6 +21,11 @@ #define CONFIG_SYS_AT91_MAIN_CLOCK 18432000 /* External Crystal, in Hz */ #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 #define CONFIG_SYS_GENERIC_BOARD +#define CONFIG_DM +#define CONFIG_CMD_DM +#define CONFIG_DM_GPIO +#define CONFIG_DM_SERIAL +#define CONFIG_SYS_MALLOC_F_LEN (1 << 10) /* CPU */ #define CONFIG_ARCH_CPU_INIT @@ -85,8 +90,10 @@ /* UARTs/Serial console */ #define CONFIG_ATMEL_USART +#ifndef CONFIG_DM_SERIAL #define CONFIG_USART_BASE ATMEL_BASE_DBGU #define CONFIG_USART_ID ATMEL_ID_SYS +#endif #define CONFIG_BAUDRATE 115200 #define CONFIG_SYS_PROMPT "Snapper> " @@ -160,7 +167,7 @@ #define CONFIG_CMD_DHCP #define CONFIG_CMD_FAT #define CONFIG_CMD_I2C -#undef CONFIG_CMD_GPIO +#define CONFIG_CMD_GPIO #define CONFIG_CMD_USB #define CONFIG_CMD_MII #define CONFIG_CMD_NAND |