コード例 #1
0
ファイル: board.c プロジェクト: AshishNamdev/barebox
static int tx25_init_fb(void)
{
	tx25_fb_enable(0);

	mxc_iomux_v3_setup_multiple_pads(tx25_lcdc_gpios,
			ARRAY_SIZE(tx25_lcdc_gpios));

	imx25_add_fb(&tx25_fb_data);

	return 0;
}
コード例 #2
0
ファイル: board.c プロジェクト: vkleen/barebox-novena
static int tx25_init_fb(void)
{
    if (!IS_ENABLED(CONFIG_DRIVER_VIDEO_IMX))
        return 0;

    if (!of_machine_is_compatible("karo,imx25-tx25"))
        return 0;

    tx25_fb_enable(0);

    mxc_iomux_v3_setup_multiple_pads(tx25_lcdc_gpios,
                                     ARRAY_SIZE(tx25_lcdc_gpios));

    imx25_add_fb(&tx25_fb_data);

    return 0;
}