diff options
author | Lauri Hintsala <lauri.hintsala@bluegiga.com> | 2012-07-10 03:08:08 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-07-11 00:17:10 -0400 |
commit | d8bb823d31a1405e42aa4a2162d3c00e657b6516 (patch) | |
tree | 6fd009d1bf5dd3ef554365c46728fdb3f6b6a54a /arch/arm/mach-mxs | |
parent | 3317d99e444988e71a32edbca092b1aed098c2f1 (diff) |
ARM: apx4devkit: add display support
Add HannStar display and device tree configuration.
Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/mach-mxs.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index bd8db7b21e68..648bdd05d38b 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c | |||
@@ -78,6 +78,25 @@ static struct fb_videomode m28evk_video_modes[] = { | |||
78 | }, | 78 | }, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static struct fb_videomode apx4devkit_video_modes[] = { | ||
82 | { | ||
83 | .name = "HannStar PJ70112A", | ||
84 | .refresh = 60, | ||
85 | .xres = 800, | ||
86 | .yres = 480, | ||
87 | .pixclock = 33333, /* picosecond (30.00 MHz) */ | ||
88 | .left_margin = 88, | ||
89 | .right_margin = 40, | ||
90 | .upper_margin = 32, | ||
91 | .lower_margin = 13, | ||
92 | .hsync_len = 48, | ||
93 | .vsync_len = 3, | ||
94 | .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT | | ||
95 | FB_SYNC_DATA_ENABLE_HIGH_ACT | | ||
96 | FB_SYNC_DOTCLK_FAILING_ACT, | ||
97 | }, | ||
98 | }; | ||
99 | |||
81 | static struct mxsfb_platform_data mxsfb_pdata __initdata; | 100 | static struct mxsfb_platform_data mxsfb_pdata __initdata; |
82 | 101 | ||
83 | static struct of_dev_auxdata mxs_auxdata_lookup[] __initdata = { | 102 | static struct of_dev_auxdata mxs_auxdata_lookup[] __initdata = { |
@@ -248,6 +267,11 @@ static void __init apx4devkit_init(void) | |||
248 | if (IS_BUILTIN(CONFIG_PHYLIB)) | 267 | if (IS_BUILTIN(CONFIG_PHYLIB)) |
249 | phy_register_fixup_for_uid(PHY_ID_KS8051, MICREL_PHY_ID_MASK, | 268 | phy_register_fixup_for_uid(PHY_ID_KS8051, MICREL_PHY_ID_MASK, |
250 | apx4devkit_phy_fixup); | 269 | apx4devkit_phy_fixup); |
270 | |||
271 | mxsfb_pdata.mode_list = apx4devkit_video_modes; | ||
272 | mxsfb_pdata.mode_count = ARRAY_SIZE(apx4devkit_video_modes); | ||
273 | mxsfb_pdata.default_bpp = 32; | ||
274 | mxsfb_pdata.ld_intf_width = STMLCDIF_24BIT; | ||
251 | } | 275 | } |
252 | 276 | ||
253 | static void __init mxs_machine_init(void) | 277 | static void __init mxs_machine_init(void) |