X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Fdevices.c;h=bd4dfa024a94460415f5948cc6947215367e54b3;hb=addb2e1650fdf872334478393f482dfdce965a61;hp=7b4a1cd81fea7b9f303e1436a670fcd8cd1f3dfc;hpb=5f535fe170e2cd90ee65922cbad1a5428d85a9e6;p=platform%2Fkernel%2Fu-boot.git diff --git a/common/devices.c b/common/devices.c index 7b4a1cd..bd4dfa0 100644 --- a/common/devices.c +++ b/common/devices.c @@ -26,6 +26,7 @@ #include #include #include +#include #ifdef CONFIG_LOGBUFFER #include #endif @@ -73,7 +74,7 @@ static void drv_system_init (void) strcpy (dev.name, "serial"); dev.flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_INPUT | DEV_FLAGS_SYSTEM; -#if CONFIG_SERIAL_SOFTWARE_FIFO +#ifdef CONFIG_SERIAL_SOFTWARE_FIFO dev.putc = serial_buffered_putc; dev.puts = serial_buffered_puts; dev.getc = serial_buffered_getc; @@ -159,6 +160,8 @@ int device_deregister(char *devname) int devices_init (void) { #ifndef CONFIG_ARM /* already relocated for current ARM implementation */ + DECLARE_GLOBAL_DATA_PTR; + ulong relocation_offset = gd->reloc_off; int i; @@ -192,6 +195,15 @@ int devices_init (void) drv_logbuff_init (); #endif drv_system_init (); +#ifdef CONFIG_SERIAL_MULTI + serial_devices_init (); +#endif +#ifdef CONFIG_USB_TTY + drv_usbtty_init (); +#endif +#ifdef CONFIG_NETCONSOLE + drv_nc_init (); +#endif return (0); }