summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-10-12 11:54:13 -0400
committerTom Rini <trini@konsulko.com>2018-10-12 11:54:13 -0400
commite6cd05e5025bbab9723bbb09c506cbb5aa63bc53 (patch)
tree86b04c08de25b78711171da16ed7e4447588d1b6 /board
parent15f22ac2eea5ee9f17b14a143c94e7480bbafbff (diff)
parent5c391486b411025785e064f160d248bef31b3d28 (diff)
downloadu-boot-e6cd05e5025bbab9723bbb09c506cbb5aa63bc53.tar.gz
Merge branch 'master' of git://git.denx.de/u-boot-spi
Diffstat (limited to 'board')
-rw-r--r--board/davinci/da8xxevm/da850evm.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
index e8ec553f99..b0b29b3887 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -49,6 +49,33 @@ DECLARE_GLOBAL_DATA_PTR;
#define CFG_MAC_ADDR_OFFSET (flash->size - SZ_64K)
+#ifdef CONFIG_SPL_BUILD
+#include <ns16550.h>
+#include <dm/platform_data/spi_davinci.h>
+
+static const struct ns16550_platdata da850evm_serial = {
+ .base = DAVINCI_UART2_BASE,
+ .reg_shift = 2,
+ .clock = 150000000,
+ .fcr = UART_FCR_DEFVAL,
+};
+
+U_BOOT_DEVICE(da850evm_uart) = {
+ .name = "ns16550_serial",
+ .platdata = &da850evm_serial,
+};
+
+static const struct davinci_spi_platdata davinci_spi_data = {
+ .regs = (struct davinci_spi_regs *)0x01f0e000,
+ .num_cs = 4,
+};
+
+U_BOOT_DEVICE(davinci_spi) = {
+ .name = "davinci_spi",
+ .platdata = &davinci_spi_data,
+};
+#endif
+
#ifdef CONFIG_MAC_ADDR_IN_SPIFLASH
static int get_mac_addr(u8 *addr)
{