X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/eb0da340cb92c24623b36d4dc48c2f3eca77765e..b5a33bb5d58805d5b1d84a4cf47feeca52984705:/target/linux/brcm47xx/patches-2.6.37/014-MIPS-BCM47xx-Setup-and-register-serial-early.patch diff --git a/target/linux/brcm47xx/patches-2.6.37/014-MIPS-BCM47xx-Setup-and-register-serial-early.patch b/target/linux/brcm47xx/patches-2.6.37/014-MIPS-BCM47xx-Setup-and-register-serial-early.patch index de1e8d12d..ee9ddfc4d 100644 --- a/target/linux/brcm47xx/patches-2.6.37/014-MIPS-BCM47xx-Setup-and-register-serial-early.patch +++ b/target/linux/brcm47xx/patches-2.6.37/014-MIPS-BCM47xx-Setup-and-register-serial-early.patch @@ -24,19 +24,15 @@ Signed-off-by: Hauke Mehrtens #include #include #include -@@ -168,7 +170,7 @@ static int bcm47xx_get_invariants(struct - - void __init plat_mem_setup(void) - { -- int err; -+ int i, err; - char buf[100]; - struct ssb_mipscore *mcore; - -@@ -191,6 +193,24 @@ void __init plat_mem_setup(void) - } - } +@@ -166,6 +168,31 @@ static int bcm47xx_get_invariants(struct + return 0; + } ++#ifdef CONFIG_SERIAL_8250 ++static void __init bcm47xx_early_serial_setup(struct ssb_mipscore *mcore) ++{ ++ int i; ++ + for (i = 0; i < mcore->nr_serial_ports; i++) { + struct ssb_serial_port *port = &(mcore->serial_ports[i]); + struct uart_port s; @@ -54,6 +50,19 @@ Signed-off-by: Hauke Mehrtens + early_serial_setup(&s); + } + printk(KERN_DEBUG "Serial init done.\n"); ++} ++#endif ++ + void __init plat_mem_setup(void) + { + int err; +@@ -191,6 +218,10 @@ void __init plat_mem_setup(void) + } + } + ++#ifdef CONFIG_SERIAL_8250 ++ bcm47xx_early_serial_setup(mcore); ++#endif + _machine_restart = bcm47xx_machine_restart; _machine_halt = bcm47xx_machine_halt;