Rev 6937 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6937 | Rev 7144 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | * Authors: |
23 | * Authors: |
24 | * Eric Anholt |
24 | * Eric Anholt |
25 | * |
25 | * |
26 | */ |
26 | */ |
Line 27... | Line 27... | ||
27 | 27 | ||
28 | #ifndef _I830_BIOS_H_ |
28 | #ifndef _INTEL_BIOS_H_ |
Line -... | Line 29... | ||
- | 29 | #define _INTEL_BIOS_H_ |
|
- | 30 | ||
- | 31 | /** |
|
- | 32 | * struct vbt_header - VBT Header structure |
|
- | 33 | * @signature: VBT signature, always starts with "$VBT" |
|
- | 34 | * @version: Version of this structure |
|
- | 35 | * @header_size: Size of this structure |
|
- | 36 | * @vbt_size: Size of VBT (VBT Header, BDB Header and data blocks) |
|
- | 37 | * @vbt_checksum: Checksum |
|
- | 38 | * @reserved0: Reserved |
|
- | 39 | * @bdb_offset: Offset of &struct bdb_header from beginning of VBT |
|
29 | #define _I830_BIOS_H_ |
40 | * @aim_offset: Offsets of add-in data blocks from beginning of VBT |
30 | 41 | */ |
|
31 | struct vbt_header { |
42 | struct vbt_header { |
32 | u8 signature[20]; /**< Always starts with 'VBT$' */ |
43 | u8 signature[20]; |
33 | u16 version; /**< decimal */ |
44 | u16 version; |
34 | u16 header_size; /**< in bytes */ |
45 | u16 header_size; |
35 | u16 vbt_size; /**< in bytes */ |
46 | u16 vbt_size; |
36 | u8 vbt_checksum; |
47 | u8 vbt_checksum; |
37 | u8 reserved0; |
48 | u8 reserved0; |
38 | u32 bdb_offset; /**< from beginning of VBT */ |
49 | u32 bdb_offset; |
Line -... | Line 50... | ||
- | 50 | u32 aim_offset[4]; |
|
- | 51 | } __packed; |
|
- | 52 | ||
- | 53 | /** |
|
- | 54 | * struct bdb_header - BDB Header structure |
|
- | 55 | * @signature: BDB signature "BIOS_DATA_BLOCK" |
|
- | 56 | * @version: Version of the data block definitions |
|
39 | u32 aim_offset[4]; /**< from beginning of VBT */ |
57 | * @header_size: Size of this structure |
40 | } __packed; |
58 | * @bdb_size: Size of BDB (BDB Header and data blocks) |
41 | 59 | */ |
|
42 | struct bdb_header { |
60 | struct bdb_header { |
43 | u8 signature[16]; /**< Always 'BIOS_DATA_BLOCK' */ |
61 | u8 signature[16]; |
44 | u16 version; /**< decimal */ |
62 | u16 version; |
Line 45... | Line 63... | ||
45 | u16 header_size; /**< in bytes */ |
63 | u16 header_size; |
46 | u16 bdb_size; /**< in bytes */ |
64 | u16 bdb_size; |
47 | } __packed; |
65 | } __packed; |
Line 934... | Line 952... | ||
934 | u8 data[0]; |
952 | u8 data[0]; |
935 | } __packed; |
953 | } __packed; |
Line 936... | Line 954... | ||
936 | 954 | ||
937 | /* MIPI Sequnece Block definitions */ |
955 | /* MIPI Sequnece Block definitions */ |
938 | enum mipi_seq { |
956 | enum mipi_seq { |
939 | MIPI_SEQ_UNDEFINED = 0, |
957 | MIPI_SEQ_END = 0, |
940 | MIPI_SEQ_ASSERT_RESET, |
958 | MIPI_SEQ_ASSERT_RESET, |
941 | MIPI_SEQ_INIT_OTP, |
959 | MIPI_SEQ_INIT_OTP, |
942 | MIPI_SEQ_DISPLAY_ON, |
960 | MIPI_SEQ_DISPLAY_ON, |
943 | MIPI_SEQ_DISPLAY_OFF, |
961 | MIPI_SEQ_DISPLAY_OFF, |
- | 962 | MIPI_SEQ_DEASSERT_RESET, |
|
- | 963 | MIPI_SEQ_BACKLIGHT_ON, /* sequence block v2+ */ |
|
- | 964 | MIPI_SEQ_BACKLIGHT_OFF, /* sequence block v2+ */ |
|
- | 965 | MIPI_SEQ_TEAR_ON, /* sequence block v2+ */ |
|
- | 966 | MIPI_SEQ_TEAR_OFF, /* sequence block v3+ */ |
|
- | 967 | MIPI_SEQ_POWER_ON, /* sequence block v3+ */ |
|
944 | MIPI_SEQ_DEASSERT_RESET, |
968 | MIPI_SEQ_POWER_OFF, /* sequence block v3+ */ |
945 | MIPI_SEQ_MAX |
969 | MIPI_SEQ_MAX |
Line 946... | Line 970... | ||
946 | }; |
970 | }; |
947 | 971 | ||
948 | enum mipi_seq_element { |
972 | enum mipi_seq_element { |
949 | MIPI_SEQ_ELEM_UNDEFINED = 0, |
973 | MIPI_SEQ_ELEM_END = 0, |
950 | MIPI_SEQ_ELEM_SEND_PKT, |
974 | MIPI_SEQ_ELEM_SEND_PKT, |
- | 975 | MIPI_SEQ_ELEM_DELAY, |
|
951 | MIPI_SEQ_ELEM_DELAY, |
976 | MIPI_SEQ_ELEM_GPIO, |
- | 977 | MIPI_SEQ_ELEM_I2C, /* sequence block v2+ */ |
|
952 | MIPI_SEQ_ELEM_GPIO, |
978 | MIPI_SEQ_ELEM_SPI, /* sequence block v3+ */ |
953 | MIPI_SEQ_ELEM_STATUS, |
979 | MIPI_SEQ_ELEM_PMIC, /* sequence block v3+ */ |
Line 954... | Line 980... | ||
954 | MIPI_SEQ_ELEM_MAX |
980 | MIPI_SEQ_ELEM_MAX |
955 | }; |
981 | }; |
Line 963... | Line 989... | ||
963 | MIPI_GPIO_PWR_DOWN_R, |
989 | MIPI_GPIO_PWR_DOWN_R, |
964 | MIPI_GPIO_STDBY_RST_N, |
990 | MIPI_GPIO_STDBY_RST_N, |
965 | MIPI_GPIO_MAX |
991 | MIPI_GPIO_MAX |
966 | }; |
992 | }; |
Line 967... | Line 993... | ||
967 | 993 |