/** * early_console_setup - setup debugging console * * Consoles started here require little enough setup that we can start using * them very early in the boot process, either right after the machine * vector initialization, or even before if the drivers can detect their hw. * * Returns non-zero if a console couldn't be setup. * This function is developed based on * early_console_setup function as defined in arch/ia64/kernel/setup.c */ int __init early_console_setup(char *cmdline) { int earlycons = 0; #ifdef CONFIG_SERIAL_MXC_CONSOLE if (!mxc_early_serial_console_init(cmdline)) earlycons++; #endif return (earlycons) ? 0 : -1; }
/** * early_console_setup - setup debugging console * * Consoles started here require little enough setup that we can start using * them very early in the boot process, either right after the machine * vector initialization, or even before if the drivers can detect their hw. * * Returns non-zero if a console couldn't be setup. * This function is developed based on * early_console_setup function as defined in arch/ia64/kernel/setup.c */ void __init early_console_setup(unsigned long base, struct clk *clk) { #ifdef CONFIG_SERIAL_MXC_CONSOLE mxc_early_serial_console_init(base, clk); #endif }