Lines Matching refs:devp
87 void *devp; in serial_get_stdout_devp() local
91 devp = finddevice("/chosen"); in serial_get_stdout_devp()
92 if (devp == NULL) in serial_get_stdout_devp()
95 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0 || in serial_get_stdout_devp()
96 getprop(devp, "stdout-path", path, MAX_PATH_LEN) > 0) { in serial_get_stdout_devp()
97 devp = finddevice(path); in serial_get_stdout_devp()
98 if (devp == NULL) in serial_get_stdout_devp()
101 if ((getprop(devp, "device_type", devtype, sizeof(devtype)) > 0) in serial_get_stdout_devp()
103 return devp; in serial_get_stdout_devp()
114 void *devp; in serial_console_init() local
117 devp = serial_get_stdout_devp(); in serial_console_init()
118 if (devp == NULL) in serial_console_init()
121 if (dt_is_compatible(devp, "ns16550") || in serial_console_init()
122 dt_is_compatible(devp, "pnpPNP,501")) in serial_console_init()
123 rc = ns16550_console_init(devp, &serial_cd); in serial_console_init()
125 else if (dt_is_compatible(devp, "fsl,cpm1-scc-uart") || in serial_console_init()
126 dt_is_compatible(devp, "fsl,cpm1-smc-uart") || in serial_console_init()
127 dt_is_compatible(devp, "fsl,cpm2-scc-uart") || in serial_console_init()
128 dt_is_compatible(devp, "fsl,cpm2-smc-uart")) in serial_console_init()
129 rc = cpm_console_init(devp, &serial_cd); in serial_console_init()
132 else if (dt_is_compatible(devp, "fsl,mpc5200-psc-uart")) in serial_console_init()
133 rc = mpc5200_psc_console_init(devp, &serial_cd); in serial_console_init()
136 else if (dt_is_compatible(devp, "ibm,opal-console-raw")) in serial_console_init()
137 rc = opal_console_init(devp, &serial_cd); in serial_console_init()