diff options
author | Donghwa Lee <dh09.lee@samsung.com> | 2012-04-26 18:52:26 (GMT) |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-05-25 07:15:09 (GMT) |
commit | 3d02408665b1622ef50518637e36ac4c53750c08 (patch) | |
tree | 8b105ebda61e46ea81795e7bf7e0c73f3d48c448 /board/samsung/trats/trats.c | |
parent | 8ecb4c6473e5f88ae343c621c3b5bac513f5a797 (diff) | |
download | u-boot-fsl-qoriq-3d02408665b1622ef50518637e36ac4c53750c08.tar.xz |
LCD: support another s6e8ax0 panel type
s6e8ax0 panel has many panel of types. This patch support another panel
on TIZEN lunchbox board(HWREVISION 2). This panel has reversed panel
display type. So, I had added necessary command.
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'board/samsung/trats/trats.c')
-rw-r--r-- | board/samsung/trats/trats.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c index 3085de1..25f5caf 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -53,6 +53,11 @@ u32 get_board_rev(void) static void check_hw_revision(void); +static int hwrevision(int rev) +{ + return (board_rev & 0xf) == rev; +} + int board_init(void) { gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; @@ -492,6 +497,9 @@ void init_panel_info(vidinfo_t *vid) vid->interface_mode = FIMD_RGB_INTERFACE; vid->mipi_enabled = 1; + if (hwrevision(2)) + mipi_lcd_device.reverse_panel = 1; + strcpy(s6e8ax0_platform_data.lcd_panel_name, mipi_lcd_device.name); s6e8ax0_platform_data.lcd_power = lcd_power; s6e8ax0_platform_data.mipi_power = mipi_power; |