Use ofw_gpiobus instead of plain gpiobus for CI20
Requesed by: mmel
This commit is contained in:
parent
49a8bad7d6
commit
0f2bb99d43
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308872
@ -786,6 +786,13 @@ jz4780_gpio_intr(void *arg)
|
||||
return (FILTER_HANDLED);
|
||||
}
|
||||
|
||||
static phandle_t
|
||||
jz4780_gpio_bus_get_node(device_t bus, device_t dev)
|
||||
{
|
||||
|
||||
return (ofw_bus_get_node(bus));
|
||||
}
|
||||
|
||||
static device_method_t jz4780_gpio_methods[] = {
|
||||
/* Device interface */
|
||||
DEVMETHOD(device_probe, jz4780_gpio_probe),
|
||||
@ -815,6 +822,9 @@ static device_method_t jz4780_gpio_methods[] = {
|
||||
DEVMETHOD(pic_post_ithread, jz4780_gpio_pic_post_ithread),
|
||||
DEVMETHOD(pic_pre_ithread, jz4780_gpio_pic_pre_ithread),
|
||||
|
||||
/* ofw_bus interface */
|
||||
DEVMETHOD(ofw_bus_get_node, jz4780_gpio_bus_get_node),
|
||||
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user