|
@@ -11,6 +11,7 @@
|
|
#include <common.h>
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <dm.h>
|
|
#include <errno.h>
|
|
#include <errno.h>
|
|
|
|
+#include <ns16550.h>
|
|
#include <spl.h>
|
|
#include <spl.h>
|
|
#include <asm/arch/cpu.h>
|
|
#include <asm/arch/cpu.h>
|
|
#include <asm/arch/hardware.h>
|
|
#include <asm/arch/hardware.h>
|
|
@@ -60,6 +61,38 @@ U_BOOT_DEVICES(am33xx_gpios) = {
|
|
#endif
|
|
#endif
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+# ifndef CONFIG_OF_CONTROL
|
|
|
|
+/*
|
|
|
|
+ * TODO(sjg@chromium.org): When we can move SPL serial to DM, we can remove
|
|
|
|
+ * the CONFIGs. At the same time, we should move this to the board files.
|
|
|
|
+ */
|
|
|
|
+static const struct ns16550_platdata am33xx_serial[] = {
|
|
|
|
+ { CONFIG_SYS_NS16550_COM1, 2, CONFIG_SYS_NS16550_CLK },
|
|
|
|
+# ifdef CONFIG_SYS_NS16550_COM2
|
|
|
|
+ { CONFIG_SYS_NS16550_COM2, 2, CONFIG_SYS_NS16550_CLK },
|
|
|
|
+# ifdef CONFIG_SYS_NS16550_COM3
|
|
|
|
+ { CONFIG_SYS_NS16550_COM3, 2, CONFIG_SYS_NS16550_CLK },
|
|
|
|
+ { CONFIG_SYS_NS16550_COM4, 2, CONFIG_SYS_NS16550_CLK },
|
|
|
|
+ { CONFIG_SYS_NS16550_COM5, 2, CONFIG_SYS_NS16550_CLK },
|
|
|
|
+ { CONFIG_SYS_NS16550_COM6, 2, CONFIG_SYS_NS16550_CLK },
|
|
|
|
+# endif
|
|
|
|
+# endif
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+U_BOOT_DEVICES(am33xx_uarts) = {
|
|
|
|
+ { "serial_omap", &am33xx_serial[0] },
|
|
|
|
+# ifdef CONFIG_SYS_NS16550_COM2
|
|
|
|
+ { "serial_omap", &am33xx_serial[1] },
|
|
|
|
+# ifdef CONFIG_SYS_NS16550_COM3
|
|
|
|
+ { "serial_omap", &am33xx_serial[2] },
|
|
|
|
+ { "serial_omap", &am33xx_serial[3] },
|
|
|
|
+ { "serial_omap", &am33xx_serial[4] },
|
|
|
|
+ { "serial_omap", &am33xx_serial[5] },
|
|
|
|
+# endif
|
|
|
|
+# endif
|
|
|
|
+};
|
|
|
|
+# endif
|
|
|
|
+
|
|
#else
|
|
#else
|
|
|
|
|
|
static const struct gpio_bank gpio_bank_am33xx[] = {
|
|
static const struct gpio_bank gpio_bank_am33xx[] = {
|