]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/serial.h
omap24xx_i2c: Add AM33XX support
[karo-tx-uboot.git] / include / serial.h
index fbc10365f1ac9071f3565e29b16b59c02144f78a..5173499124091870efaca83feb615d377054ed34 100644 (file)
@@ -3,10 +3,9 @@
 
 #include <post.h>
 
-#define NAMESIZE 16
-
 struct serial_device {
-       char name[NAMESIZE];
+       /* enough bytes to match alignment of following func pointer */
+       char name[16];
 
        int  (*init) (void);
        int  (*uninit) (void);
@@ -32,7 +31,7 @@ extern struct serial_device *default_serial_console(void);
        defined(CONFIG_MB86R0x) || defined(CONFIG_MPC5xxx) || \
        defined(CONFIG_MPC83xx) || defined(CONFIG_MPC85xx) || \
        defined(CONFIG_MPC86xx) || defined(CONFIG_SYS_SC520) || \
-       defined(CONFIG_TEGRA2)
+       defined(CONFIG_TEGRA2) || defined(CONFIG_SYS_COREBOOT)
 extern struct serial_device serial0_device;
 extern struct serial_device serial1_device;
 #if defined(CONFIG_SYS_NS16550_SERIAL)