#include <linux/gpio_keys.h> #include <linux/input.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <plat/display-pipe.h> #include <plat/mipi_dsim.h> #include <plat/cpu.h> #include <mach/cpu.h> #include <mach/time.h> #include <mach/map.h> #include <mach/gpio.h> #include <mach/devices.h> static struct s5l_clcd_info clcd_info = { .reset_pin = S5L8930_GPIO(0x1404), .pull_pin = -1, .irq = IRQ_CLCD0, .dot_pitch = 326, .horizontal = { 133, 133, 135 }, .vertical = { 10, 10, 12 }, }; static struct fb_videomode video_mode = { .xres = 1024, .yres = 768, .pixclock = 68400000,
static struct resource s5l8930_spi0_resources[] = { [0] = { .start = PA_SPI0, .end = PA_SPI0 + SZ_SPI0 - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = IRQ_SPI0, .end = IRQ_SPI0, .flags = IORESOURCE_IRQ, }, }; static struct s5l_spi_info s5l8930_spi0_pdata = { .pin_cs = S5L8930_GPIO(0x505), .num_cs = 1, .bus_num = 0, }; static u64 spi_dmamask = DMA_BIT_MASK(32); struct platform_device s5l8930_spi0 = { .name = "s5l89xx-spi", .id = 0, .num_resources = ARRAY_SIZE(s5l8930_spi0_resources), .resource = s5l8930_spi0_resources, .dev = { .dma_mask = &spi_dmamask, .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &s5l8930_spi0_pdata,