aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sa1100/shannon.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-sa1100/shannon.c')
-rw-r--r--arch/arm/mach-sa1100/shannon.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/arch/arm/mach-sa1100/shannon.c b/arch/arm/mach-sa1100/shannon.c
index 3efb4ac6224..08bb1228961 100644
--- a/arch/arm/mach-sa1100/shannon.c
+++ b/arch/arm/mach-sa1100/shannon.c
@@ -9,6 +9,8 @@
9#include <linux/mtd/mtd.h> 9#include <linux/mtd/mtd.h>
10#include <linux/mtd/partitions.h> 10#include <linux/mtd/partitions.h>
11 11
12#include <video/sa1100fb.h>
13
12#include <mach/hardware.h> 14#include <mach/hardware.h>
13#include <asm/mach-types.h> 15#include <asm/mach-types.h>
14#include <asm/setup.h> 16#include <asm/setup.h>
@@ -46,20 +48,32 @@ static struct flash_platform_data shannon_flash_data = {
46 .nr_parts = ARRAY_SIZE(shannon_partitions), 48 .nr_parts = ARRAY_SIZE(shannon_partitions),
47}; 49};
48 50
49static struct resource shannon_flash_resource = { 51static struct resource shannon_flash_resource =
50 .start = SA1100_CS0_PHYS, 52 DEFINE_RES_MEM(SA1100_CS0_PHYS, SZ_4M);
51 .end = SA1100_CS0_PHYS + SZ_4M - 1,
52 .flags = IORESOURCE_MEM,
53};
54 53
55static struct mcp_plat_data shannon_mcp_data = { 54static struct mcp_plat_data shannon_mcp_data = {
56 .mccr0 = MCCR0_ADM, 55 .mccr0 = MCCR0_ADM,
57 .sclk_rate = 11981000, 56 .sclk_rate = 11981000,
58}; 57};
59 58
59static struct sa1100fb_mach_info shannon_lcd_info = {
60 .pixclock = 152500, .bpp = 8,
61 .xres = 640, .yres = 480,
62
63 .hsync_len = 4, .vsync_len = 3,
64 .left_margin = 2, .upper_margin = 0,
65 .right_margin = 1, .lower_margin = 0,
66
67 .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
68
69 .lccr0 = LCCR0_Color | LCCR0_Dual | LCCR0_Pas,
70 .lccr3 = LCCR3_ACBsDiv(512),
71};
72
60static void __init shannon_init(void) 73static void __init shannon_init(void)
61{ 74{
62 sa11x0_ppc_configure_mcp(); 75 sa11x0_ppc_configure_mcp();
76 sa11x0_register_lcd(&shannon_lcd_info);
63 sa11x0_register_mtd(&shannon_flash_data, &shannon_flash_resource, 1); 77 sa11x0_register_mtd(&shannon_flash_data, &shannon_flash_resource, 1);
64 sa11x0_register_mcp(&shannon_mcp_data); 78 sa11x0_register_mcp(&shannon_mcp_data);
65} 79}