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
[] = {
57 .flags
= IORESOURCE_MEM
,
61 .flags
= IORESOURCE_IRQ
,
65 static struct platform_device lcdc0_device
= {
66 .name
= "sh_mobile_lcdc_fb",
67 .num_resources
= ARRAY_SIZE(lcdc0_resources
),
68 .resource
= lcdc0_resources
,
71 .platform_data
= &lcdc0_info
,
72 .coherent_dma_mask
= DMA_BIT_MASK(32),
76 static const struct board_staging_clk lcdc0_clocks
[] __initconst
= {
77 { "lcdc0", NULL
, "sh_mobile_lcdc_fb.0" },
80 static const struct board_staging_dev armadillo800eva_devices
[] __initconst
= {
82 .pdev
= &lcdc0_device
,
83 .clocks
= lcdc0_clocks
,
84 .nclocks
= ARRAY_SIZE(lcdc0_clocks
),
85 .domain
= "/system-controller@e6180000/pm-domains/c5/a4lc@1"
89 static void __init
armadillo800eva_init(void)
91 board_staging_gic_setup_xlate("arm,pl390", 32);
92 board_staging_register_devices(armadillo800eva_devices
,
93 ARRAY_SIZE(armadillo800eva_devices
));
96 board_staging("renesas,armadillo800eva", armadillo800eva_init
);