mirror of
https://github.com/opnsense/src.git
synced 2026-03-26 20:53:08 -04:00
arm64: rockchip: Fix map_gpio
The map_gpio function wasn't correct, the first element is the pin and not the phandle.
This commit is contained in:
parent
78a2a6b613
commit
2a5509bf25
1 changed files with 3 additions and 3 deletions
|
|
@ -390,9 +390,9 @@ rk_gpio_map_gpios(device_t bus, phandle_t dev, phandle_t gparent, int gcells,
|
|||
pcell_t *gpios, uint32_t *pin, uint32_t *flags)
|
||||
{
|
||||
|
||||
/* The gpios are mapped as <gpio-phandle pin flags> */
|
||||
*pin = gpios[1];
|
||||
*flags = gpios[2];
|
||||
/* The gpios are mapped as <pin flags> */
|
||||
*pin = gpios[0];
|
||||
*flags = gpios[1];
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue