serial.c (f26e8817b235d8764363bffcc9cbfc61867371f2) | serial.c (866bfc75f40e4f8a00d268f73f3a02f572e6c082) |
---|---|
1/* 2 * Generic serial console support 3 * 4 * Author: Mark A. Greer <mgreer@mvista.com> 5 * 6 * Code in serial_edit_cmdline() copied from <file:arch/ppc/boot/simple/misc.c> 7 * and was written by Matt Porter <mporter@kernel.crashing.org>. 8 * --- 106 unchanged lines hidden (view full) --- 115 116 devp = serial_get_stdout_devp(); 117 if (devp == NULL) 118 goto err_out; 119 120 if (dt_is_compatible(devp, "ns16550") || 121 dt_is_compatible(devp, "pnpPNP,501")) 122 rc = ns16550_console_init(devp, &serial_cd); | 1/* 2 * Generic serial console support 3 * 4 * Author: Mark A. Greer <mgreer@mvista.com> 5 * 6 * Code in serial_edit_cmdline() copied from <file:arch/ppc/boot/simple/misc.c> 7 * and was written by Matt Porter <mporter@kernel.crashing.org>. 8 * --- 106 unchanged lines hidden (view full) --- 115 116 devp = serial_get_stdout_devp(); 117 if (devp == NULL) 118 goto err_out; 119 120 if (dt_is_compatible(devp, "ns16550") || 121 dt_is_compatible(devp, "pnpPNP,501")) 122 rc = ns16550_console_init(devp, &serial_cd); |
123#ifdef CONFIG_EMBEDDED6xx |
|
123 else if (dt_is_compatible(devp, "marvell,mv64360-mpsc")) 124 rc = mpsc_console_init(devp, &serial_cd); | 124 else if (dt_is_compatible(devp, "marvell,mv64360-mpsc")) 125 rc = mpsc_console_init(devp, &serial_cd); |
126#endif |
|
125 else if (dt_is_compatible(devp, "fsl,cpm1-scc-uart") || 126 dt_is_compatible(devp, "fsl,cpm1-smc-uart") || 127 dt_is_compatible(devp, "fsl,cpm2-scc-uart") || 128 dt_is_compatible(devp, "fsl,cpm2-smc-uart")) 129 rc = cpm_console_init(devp, &serial_cd); | 127 else if (dt_is_compatible(devp, "fsl,cpm1-scc-uart") || 128 dt_is_compatible(devp, "fsl,cpm1-smc-uart") || 129 dt_is_compatible(devp, "fsl,cpm2-scc-uart") || 130 dt_is_compatible(devp, "fsl,cpm2-smc-uart")) 131 rc = cpm_console_init(devp, &serial_cd); |
132#ifdef CONFIG_PPC_MPC52XX |
|
130 else if (dt_is_compatible(devp, "fsl,mpc5200-psc-uart")) 131 rc = mpc5200_psc_console_init(devp, &serial_cd); | 133 else if (dt_is_compatible(devp, "fsl,mpc5200-psc-uart")) 134 rc = mpc5200_psc_console_init(devp, &serial_cd); |
135#endif |
|
132 else if (dt_is_compatible(devp, "xlnx,opb-uartlite-1.00.b") || 133 dt_is_compatible(devp, "xlnx,xps-uartlite-1.00.a")) 134 rc = uartlite_console_init(devp, &serial_cd); 135 else if (dt_is_compatible(devp, "ibm,opal-console-raw")) 136 rc = opal_console_init(devp, &serial_cd); 137 138 /* Add other serial console driver calls here */ 139 --- 14 unchanged lines hidden --- | 136 else if (dt_is_compatible(devp, "xlnx,opb-uartlite-1.00.b") || 137 dt_is_compatible(devp, "xlnx,xps-uartlite-1.00.a")) 138 rc = uartlite_console_init(devp, &serial_cd); 139 else if (dt_is_compatible(devp, "ibm,opal-console-raw")) 140 rc = opal_console_init(devp, &serial_cd); 141 142 /* Add other serial console driver calls here */ 143 --- 14 unchanged lines hidden --- |