mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 11:44:01 +08:00
76c05c8a0d
This adds devicetree binding support to the ARM pl061 driver removing the platform_data dependency. When DT binding is used, the gpio numbering is assigned dynamically. For now, interrupts are not supported with DT until irqdomains learn dynamic irq assignment. Rather than add another case of -1, updating the driver to use NO_IRQ. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 lines
378 B
C
17 lines
378 B
C
#include <linux/types.h>
|
|
|
|
/* platform data for the PL061 GPIO driver */
|
|
|
|
struct pl061_platform_data {
|
|
/* number of the first GPIO */
|
|
unsigned gpio_base;
|
|
|
|
/* number of the first IRQ.
|
|
* If the IRQ functionality in not desired this must be set to NO_IRQ.
|
|
*/
|
|
unsigned irq_base;
|
|
|
|
u8 directions; /* startup directions, 1: out, 0: in */
|
|
u8 values; /* startup values */
|
|
};
|