1 // SPDX-License-Identifier: GPL-2.0
3 * Staging board support for Armadillo 800 eva.
4 * Enable not-yet-DT-capable devices here.
6 * Based on board-armadillo800eva.c
8 * Copyright (C) 2012 Renesas Solutions Corp.
9 * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
12 #include <linux/dma-mapping.h>
14 #include <linux/kernel.h>
15 #include <linux/platform_device.h>
16 #include <linux/videodev2.h>
18 #include <video/sh_mobile_lcdc.h>
22 static struct fb_videomode lcdc0_mode
= {
23 .name
= "AMPIER/AM-800480",
35 static struct sh_mobile_lcdc_info lcdc0_info
= {
36 .clock_source
= LCDC_CLK_BUS
,
38 .chan
= LCDC_CHAN_MAINLCD
,
39 .fourcc
= V4L2_PIX_FMT_RGB565
,
40 .interface_type
= RGB24
,
43 .lcd_modes
= &lcdc0_mode
,
52 static struct resource lcdc0_resources
[] = {
53 DEFINE_RES_MEM_NAMED(0xfe940000, 0x4000, "LCD0"),
54 DEFINE_RES_IRQ(177 + 32),
57 static struct platform_device lcdc0_device
= {
58 .name
= "sh_mobile_lcdc_fb",
59 .num_resources
= ARRAY_SIZE(lcdc0_resources
),
60 .resource
= lcdc0_resources
,
63 .platform_data
= &lcdc0_info
,
64 .coherent_dma_mask
= DMA_BIT_MASK(32),
68 static const struct board_staging_clk lcdc0_clocks
[] __initconst
= {
69 { "lcdc0", NULL
, "sh_mobile_lcdc_fb.0" },
72 static const struct board_staging_dev armadillo800eva_devices
[] __initconst
= {
74 .pdev
= &lcdc0_device
,
75 .clocks
= lcdc0_clocks
,
76 .nclocks
= ARRAY_SIZE(lcdc0_clocks
),
77 .domain
= "/system-controller@e6180000/pm-domains/c5/a4lc@1"
81 static void __init
armadillo800eva_init(void)
83 board_staging_gic_setup_xlate("arm,pl390", 32);
84 board_staging_register_devices(armadillo800eva_devices
,
85 ARRAY_SIZE(armadillo800eva_devices
));
88 board_staging("renesas,armadillo800eva", armadillo800eva_init
);