Nikita Kiryanov | baaa7dd | 2015-02-03 13:32:20 +0200 | [diff] [blame] | 1 | /* |
| 2 | * atmel_lcd.h - Atmel LCD Controller structures |
| 3 | * |
| 4 | * (C) Copyright 2001 |
| 5 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0+ |
| 8 | */ |
| 9 | |
| 10 | #ifndef _ATMEL_LCD_H_ |
| 11 | #define _ATMEL_LCD_H_ |
| 12 | |
Simon Glass | 9dc89a0 | 2016-05-05 07:28:20 -0600 | [diff] [blame] | 13 | /** |
| 14 | * struct atmel_lcd_platdata - platform data for Atmel LCDs with driver model |
| 15 | * |
| 16 | * @timing_index: Index of LCD timing to use in device tree node |
| 17 | */ |
| 18 | struct atmel_lcd_platdata { |
| 19 | int timing_index; |
| 20 | }; |
| 21 | |
Nikita Kiryanov | baaa7dd | 2015-02-03 13:32:20 +0200 | [diff] [blame] | 22 | typedef struct vidinfo { |
| 23 | ushort vl_col; /* Number of columns (i.e. 640) */ |
| 24 | ushort vl_row; /* Number of rows (i.e. 480) */ |
Hannes Petermaier | 604c7d4 | 2015-03-27 08:01:38 +0100 | [diff] [blame] | 25 | ushort vl_rot; /* Rotation of Display (0, 1, 2, 3) */ |
| 26 | u_long vl_clk; /* pixel clock in ps */ |
Nikita Kiryanov | baaa7dd | 2015-02-03 13:32:20 +0200 | [diff] [blame] | 27 | |
| 28 | /* LCD configuration register */ |
| 29 | u_long vl_sync; /* Horizontal / vertical sync */ |
| 30 | u_long vl_bpix; /* Bits per pixel, 0 = 1, 1 = 2, 2 = 4, 3 = 8, 4 = 16 */ |
| 31 | u_long vl_tft; /* 0 = passive, 1 = TFT */ |
| 32 | u_long vl_cont_pol_low; /* contrast polarity is low */ |
| 33 | u_long vl_clk_pol; /* clock polarity */ |
| 34 | |
| 35 | /* Horizontal control register. */ |
| 36 | u_long vl_hsync_len; /* Length of horizontal sync */ |
| 37 | u_long vl_left_margin; /* Time from sync to picture */ |
| 38 | u_long vl_right_margin; /* Time from picture to sync */ |
| 39 | |
| 40 | /* Vertical control register. */ |
| 41 | u_long vl_vsync_len; /* Length of vertical sync */ |
| 42 | u_long vl_upper_margin; /* Time from sync to picture */ |
| 43 | u_long vl_lower_margin; /* Time from picture to sync */ |
| 44 | |
| 45 | u_long mmio; /* Memory mapped registers */ |
Wenyou Yang | d330e04 | 2017-09-13 14:58:46 +0800 | [diff] [blame] | 46 | |
| 47 | u_int logo_width; |
| 48 | u_int logo_height; |
| 49 | int logo_x_offset; |
| 50 | int logo_y_offset; |
| 51 | u_long logo_addr; |
Nikita Kiryanov | baaa7dd | 2015-02-03 13:32:20 +0200 | [diff] [blame] | 52 | } vidinfo_t; |
| 53 | |
Wenyou Yang | d330e04 | 2017-09-13 14:58:46 +0800 | [diff] [blame] | 54 | void atmel_logo_info(vidinfo_t *info); |
| 55 | void microchip_logo_info(vidinfo_t *info); |
| 56 | |
Nikita Kiryanov | baaa7dd | 2015-02-03 13:32:20 +0200 | [diff] [blame] | 57 | #endif |