|
40 | 40 | #define ACPI_RESTAG_IORESTRICTION "_IOR" |
41 | 41 | #define ACPI_RESTAG_LENGTH "_LEN" |
42 | 42 | #define ACPI_RESTAG_LINE "_LIN" |
| 43 | +#define ACPI_RESTAG_LOCALPORT "_PRT" |
43 | 44 | #define ACPI_RESTAG_MEMATTRIBUTES "_MTP" /* Memory(0), Reserved(1), ACPI(2), NVS(3) */ |
44 | 45 | #define ACPI_RESTAG_MEMTYPE "_MEM" /* non_cache(0), Cacheable(1) Cache+combine(2), Cache+prefetch(3) */ |
45 | 46 | #define ACPI_RESTAG_MAXADDR "_MAX" |
|
49 | 50 | #define ACPI_RESTAG_MODE "_MOD" |
50 | 51 | #define ACPI_RESTAG_PARITY "_PAR" |
51 | 52 | #define ACPI_RESTAG_PHASE "_PHA" |
| 53 | +#define ACPI_RESTAG_PHYTYPE "_PHY" |
52 | 54 | #define ACPI_RESTAG_PIN "_PIN" |
53 | 55 | #define ACPI_RESTAG_PINCONFIG "_PPI" |
54 | 56 | #define ACPI_RESTAG_PINCONFIG_TYPE "_TYP" |
@@ -316,12 +318,26 @@ struct aml_resource_gpio { |
316 | 318 | #define AML_RESOURCE_I2C_SERIALBUSTYPE 1 |
317 | 319 | #define AML_RESOURCE_SPI_SERIALBUSTYPE 2 |
318 | 320 | #define AML_RESOURCE_UART_SERIALBUSTYPE 3 |
319 | | -#define AML_RESOURCE_MAX_SERIALBUSTYPE 3 |
| 321 | +#define AML_RESOURCE_CSI2_SERIALBUSTYPE 4 |
| 322 | +#define AML_RESOURCE_MAX_SERIALBUSTYPE 4 |
320 | 323 | #define AML_RESOURCE_VENDOR_SERIALBUSTYPE 192 /* Vendor defined is 0xC0-0xFF (NOT SUPPORTED) */ |
321 | 324 |
|
322 | 325 | struct aml_resource_common_serialbus { |
323 | 326 | AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_SERIAL_COMMON}; |
324 | 327 |
|
| 328 | +struct aml_resource_csi2_serialbus { |
| 329 | + AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_SERIAL_COMMON |
| 330 | + /* |
| 331 | + * Optional fields follow immediately: |
| 332 | + * 1) Vendor Data bytes |
| 333 | + * 2) Resource Source String |
| 334 | + */ |
| 335 | +}; |
| 336 | + |
| 337 | +#define AML_RESOURCE_CSI2_REVISION 1 /* ACPI 6.4 */ |
| 338 | +#define AML_RESOURCE_CSI2_TYPE_REVISION 1 /* ACPI 6.4 */ |
| 339 | +#define AML_RESOURCE_CSI2_MIN_DATA_LEN 0 /* ACPI 6.4 */ |
| 340 | + |
325 | 341 | struct aml_resource_i2c_serialbus { |
326 | 342 | AML_RESOURCE_LARGE_HEADER_COMMON |
327 | 343 | AML_RESOURCE_SERIAL_COMMON u32 connection_speed; |
@@ -510,6 +526,7 @@ union aml_resource { |
510 | 526 | struct aml_resource_i2c_serialbus i2c_serial_bus; |
511 | 527 | struct aml_resource_spi_serialbus spi_serial_bus; |
512 | 528 | struct aml_resource_uart_serialbus uart_serial_bus; |
| 529 | + struct aml_resource_csi2_serialbus csi2_serial_bus; |
513 | 530 | struct aml_resource_common_serialbus common_serial_bus; |
514 | 531 | struct aml_resource_pin_function pin_function; |
515 | 532 | struct aml_resource_pin_config pin_config; |
|
0 commit comments