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
d3d27ce52f
commit
156f684147
@ -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 New Issue
Block a user