ar7: speed up irq handlers, fix asm/ar7/ar7.h
[openwrt.git] / target / linux / ar7-2.6 / files / arch / mips / ar7 / prom.c
index 4db4303..e613164 100644 (file)
@@ -47,7 +47,7 @@ struct psp_chip_map {
 /* I hate this. No. *I* *HATE* *THIS* */
 static __initdata struct psp_chip_map psp_chip_map[] = {
        {
 /* I hate this. No. *I* *HATE* *THIS* */
 static __initdata struct psp_chip_map psp_chip_map[] = {
        {
-               .chip = 0x5,
+               .chip = AR7_CHIP_7100,
                .names = {
                        "dummy", "cpufrequency", "memsize",
                        "flashsize", "modetty0", "modetty1", "prompt",
                .names = {
                        "dummy", "cpufrequency", "memsize",
                        "flashsize", "modetty0", "modetty1", "prompt",
@@ -65,7 +65,7 @@ static __initdata struct psp_chip_map psp_chip_map[] = {
                },
        },
        {
                },
        },
        {
-               .chip = 0x18,
+               .chip = AR7_CHIP_7200,
                .names = {
                        "dummy", "cpufrequency", "memsize",
                        "flashsize", "modetty0", "modetty1", "prompt",
                .names = {
                        "dummy", "cpufrequency", "memsize",
                        "flashsize", "modetty0", "modetty1", "prompt",
@@ -83,7 +83,7 @@ static __initdata struct psp_chip_map psp_chip_map[] = {
                },
        },
        {
                },
        },
        {
-               .chip = 0x2b,
+               .chip = AR7_CHIP_7300,
                .names = {
                        "dummy", "cpufrequency", "memsize",
                        "flashsize", "modetty0", "modetty1", "prompt",
                .names = {
                        "dummy", "cpufrequency", "memsize",
                        "flashsize", "modetty0", "modetty1", "prompt",
@@ -186,7 +186,7 @@ static int __init parse_psp_env(void *start)
        char *src, *dest, *name, *value;
        struct psp_env_var *vars = start;
 
        char *src, *dest, *name, *value;
        struct psp_env_var *vars = start;
 
-       chip = get_chip_id();
+       chip = ar7_chip_id();
        for (map = psp_chip_map; map->chip; map++)
                if (map->chip == chip)
                        break;
        for (map = psp_chip_map; map->chip; map++)
                if (map->chip == chip)
                        break;
@@ -258,7 +258,7 @@ char prom_getchar(void)
 
 int prom_putchar(char c)
 {
 
 int prom_putchar(char c)
 {
-       while ((serial_in(UART_LSR) & UART_LSR_THRE) == 0);
+       while ((serial_in(UART_LSR) & UART_LSR_TEMT) == 0);
        serial_out(UART_TX, c);
        return 1;
 }
        serial_out(UART_TX, c);
        return 1;
 }
This page took 0.020126 seconds and 4 git commands to generate.