X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-omap%2Funcompress.h;h=3e640aba8c20f576410fb22b1ca72a365df431a6;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=7da2d6e4cf5f4514c65064440cb082f2c1d24592;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/include/asm-arm/arch-omap/uncompress.h b/include/asm-arm/arch-omap/uncompress.h index 7da2d6e4c..3e640aba8 100644 --- a/include/asm-arm/arch-omap/uncompress.h +++ b/include/asm-arm/arch-omap/uncompress.h @@ -20,10 +20,13 @@ #include #include #include -#include -#include +#include + +unsigned int system_rev; #define UART_OMAP_MDR1 0x08 /* mode definition register */ +#define OMAP_ID_730 0x355F +#define ID_MASK 0x7fff #define check_port(base, shift) ((base[UART_OMAP_MDR1 << shift] & 7) == 0) #define omap_get_id() ((*(volatile unsigned int *)(0xfffed404)) >> 12) & ID_MASK @@ -31,7 +34,7 @@ static void putstr(const char *s) { volatile u8 * uart = 0; - int shift = 0; + int shift; #ifdef CONFIG_OMAP_LL_DEBUG_UART3 uart = (volatile u8 *)(OMAP_UART3_BASE); @@ -46,21 +49,11 @@ putstr(const char *s) /* MMU is not on, so cpu_is_omapXXXX() won't work here */ unsigned int omap_id = omap_get_id(); - if (omap_id == OMAP_ID_1510 || omap_id == OMAP_ID_1610 || - omap_id == OMAP_ID_1710 || omap_id == OMAP_ID_5912) { - shift = 2; - } else if (omap_id == OMAP_ID_730) { + if (omap_id == OMAP_ID_730) shift = 0; - } else { - /* Assume nothing for unknown OMAP processors. - * Add an entry for your OMAP type to select - * the default serial console here. If the - * serial port is enabled, we'll use it to - * display status messages. Else we'll be - * quiet. - */ - return; - } + else + shift = 2; + if (check_port(uart, shift)) break; /* Silent boot if no serial ports are enabled. */