Example #1
0
static int usb_a9260_console_init(void)
{
	struct device_d *dev;

	if (machine_is_usb_a9260()) {
		barebox_set_model("Calao USB-A9260");
		barebox_set_hostname("usb-a9260");
	} else if (machine_is_usb_a9g20()) {
		barebox_set_model("Calao USB-A9G20");
		barebox_set_hostname("usb-a9g20");
	} else {
		barebox_set_model("Calao USB-A9263");
		barebox_set_hostname("usb-a9263");
	}

	at91_register_uart(0, 0);

	if (IS_ENABLED(CONFIG_CALAO_DAB_MMX)) {
		at91_register_uart(2, 0);

		dev = at91_register_uart(4, 0);
		dev_set_param(dev, "active", "");
	}

	return 0;
}
Example #2
0
static int qil_a9260_main_clock(void)
{
	if (machine_is_qil_a9g20()) {
		barebox_set_model("Calao QIL-a9G20");
		barebox_set_hostname("qil-a9g20");
	} else {
		barebox_set_model("Calao QIL-A9260");
		barebox_set_hostname("qil-a9260");
	}

	at91_set_main_clock(12000000);
	return 0;
}
Example #3
0
static int at91sam9261ek_console_init(void)
{
    if (machine_is_at91sam9g10ek()) {
        barebox_set_model("Atmel at91sam9g10-ek");
        barebox_set_hostname("at91sam9g10-ek");
    } else {
        barebox_set_model("Atmel at91sam9261-ek");
        barebox_set_hostname("at91sam9261-ek");
    }

    at91_register_uart(0, 0);
    return 0;
}
Example #4
0
static int da923rc_console_init(void)
{
	if (binfo.bid == BOARD_TYPE_DA923)
		barebox_set_model("DA923RC");
	else if (binfo.bid == BOARD_TYPE_GBX460)
		barebox_set_model("GBX460");
	else
		barebox_set_model("unknown");

	serial_plat.clock = fsl_get_bus_freq(0);
	add_ns16550_device(1, CFG_CCSRBAR + 0x4600, 16,
			   IORESOURCE_MEM | IORESOURCE_MEM_8BIT,
			   &serial_plat);
	return 0;
}
Example #5
0
static int pm9g45_console_init(void)
{
	barebox_set_model("Ronetix PM9G45");
	barebox_set_hostname("pm9g45");

	at91_register_uart(0, 0);
	return 0;
}
Example #6
0
static int at91sam9263ek_console_init(void)
{
	barebox_set_model("Atmel at91sam9263-ek");
	barebox_set_hostname("at91sam9263-ek");

	at91_register_uart(0, 0);
	return 0;
}
Example #7
0
static int lubbock_coredevice_init(void)
{
	barebox_set_model("Lubbock PXA25x");
	barebox_set_hostname("lubbock");
	pxa2xx_mfp_config(ARRAY_AND_SIZE(lubbock_pin_config));
	smc_init();
	return 0;
}
Example #8
0
static int vpb_console_init(void)
{
	barebox_set_model("ARM Versatile/PB (ARM926EJ-S)");
	barebox_set_hostname("versatilepb");

	versatile_register_uart(0);
	return 0;
}
Example #9
0
static int a9m2440_console_init(void)
{
	barebox_set_model("Digi A9M2440");
	barebox_set_hostname("a9m2440");

	s3c24xx_add_uart1();
	return 0;
}
Example #10
0
static int mx27ads_console_init(void)
{
	barebox_set_model("Freescale i.MX27 ADS");
	barebox_set_hostname("mx27ads");

	imx27_add_uart0();
	return 0;
}
Example #11
0
static int dss11_console_init(void)
{
	barebox_set_model("Aizo dSS11");
	barebox_set_hostname("dss11");

	at91_register_uart(0, 0);
	return 0;
}
Example #12
0
static int eukrea_cpuimx35_console_init(void)
{
	barebox_set_model("Eukrea CPUIMX35");
	barebox_set_hostname("eukrea-cpuimx35");

	imx35_add_uart0();
	return 0;
}
Example #13
0
static int mem_init(void)
{
	barebox_set_model("Netgear wg102");
	barebox_set_hostname("wg102");

	mips_add_ram0(SZ_16M);
	return 0;
}
Example #14
0
/**
 * @brief Initialize the serial port to be used as console.
 *
 * @return result of device registration
 */
static int pcaal1_init_console(void)
{
    barebox_set_model("Phytec phyCARD-OMAP3");
    barebox_set_hostname("phycard-omap3");

    omap3_add_uart3();

    return 0;
}
Example #15
0
static int neso_console_init(void)
{
	barebox_set_model("Garz & Fricke NESO");
	barebox_set_hostname("neso");

	imx27_add_uart0();

	return 0;
}
Example #16
0
/**
 * @brief UART serial port initialization - remember to enable COM clocks in arch
 *
 * @return result of device registration
 */
static int sdp3430_console_init(void)
{
	barebox_set_model("Texas Instruments SDP343x");
	barebox_set_hostname("sdp343x");

	omap3_add_uart3();

	return 0;
}
Example #17
0
/**
 * @brief UART serial port initialization - remember to enable COM clocks in
 * arch
 *
 * @return result of device registration
 */
static int beagle_console_init(void)
{
	barebox_set_model("Texas Instruments beagle");
	barebox_set_hostname("beagle");

	omap3_add_uart3();

	return 0;
}
Example #18
0
static int pcm049_console_init(void)
{
	barebox_set_model("Phytec phyCORE-OMAP4460");
	barebox_set_hostname("phycore-omap4460");

	omap44xx_add_uart3();

	return 0;
}
Example #19
0
static int sama5d3_xplained_console_init(void)
{
	barebox_set_model("Atmel sama5d3_xplained");
	barebox_set_hostname("sama5d3_xplained");

	at91_register_uart(0, 0);

	return 0;
}
Example #20
0
static int clps711x_console_init(void)
{
	barebox_set_model("Cirrus Logic CLEP7212");
	barebox_set_hostname("clep7212");

	clps711x_add_uart(0);

	return 0;
}
Example #21
0
static int tny_a9260_console_init(void)
{
	if (machine_is_tny_a9g20()) {
		barebox_set_model("Calao TNY-A9G20");
		barebox_set_hostname("tny-a9g20");
	} else if (machine_is_tny_a9263()) {
		barebox_set_model("Calao TNY-A9263");
		barebox_set_hostname("tny-a9263");
	} else {
		barebox_set_model("Calao TNY-A9260");
		barebox_set_hostname("tny-a9260");
	}

	at91_register_uart(0, 0);
	if (IS_ENABLED(CONFIG_CALAO_MOB_TNY_MD2))
		at91_register_uart(2, ATMEL_UART_CTS | ATMEL_UART_RTS);
	return 0;
}
Example #22
0
static int imx23_olinuxino_console_init(void)
{
	barebox_set_model("Olimex.ltd imx233-olinuxino");
	barebox_set_hostname("imx233-olinuxino");

	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, 8192,
			   IORESOURCE_MEM, NULL);

	return 0;
}
Example #23
0
static int p1010rdb_console_init(void)
{
	barebox_set_model("Freescale P1010RDB");
	barebox_set_hostname("p1010rdb");

	serial_plat.clock = fsl_get_bus_freq(0);
	add_ns16550_device(1, CFG_IMMR + 0x4500, 16,
			   IORESOURCE_MEM | IORESOURCE_MEM_8BIT, &serial_plat);
	return 0;
}
Example #24
0
static int socfpga_devices_init(void)
{
	barebox_set_model("SoCFPGA");
	socfpga_timer_init();
	socfpga_uart_init();

	barebox_main = socfpga_xload;

	return 0;
}
Example #25
0
static int mx23_evk_console_init(void)
{
	barebox_set_model("Freescale i.MX23 EVK");
	barebox_set_hostname("mx23evk");

	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, 8192,
			   IORESOURCE_MEM, NULL);
	
	return 0;
}
Example #26
0
static int tx28kit_console_init(void)
{
	barebox_set_model("Ka-Ro TX28");
	barebox_set_hostname("tx28");

	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, 0x2000,
			   IORESOURCE_MEM, NULL);

	return 0;
}
Example #27
0
static int pc_console_init(void)
{
	barebox_set_model("X86 generic barebox");
	barebox_set_hostname("x86");

	/* Register the serial port */
	add_ns16550_device(DEVICE_ID_DYNAMIC, 0x3f8, 8, 0, &serial_plat);

	return 0;
}
Example #28
0
static int cfa10036_console_init(void)
{
	barebox_set_model("crystalfontz-cfa10036");
	barebox_set_hostname("cfa10036");

	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, SZ_8K,
			   IORESOURCE_MEM, NULL);

	return 0;
}
Example #29
0
static int imx31_console_init(void)
{
	imx_iomux_setup_multiple_pins(pcm037_iomux, ARRAY_SIZE(pcm037_iomux));

	barebox_set_model("Phytec phyCORE-i.MX31");
	barebox_set_hostname("phycore-imx31");

	imx31_add_uart0();
	return 0;
}
Example #30
0
static int tx25_console_init(void)
{
	mxc_iomux_v3_setup_multiple_pads(tx25_pads, ARRAY_SIZE(tx25_pads));

	barebox_set_model("Ka-Ro TX25");
	barebox_set_hostname("tx25");

	imx25_add_uart0();
	return 0;
}