Use ofw_gpiobus instead of plain gpiobus for CI20

Requesed by: mmel
This commit is contained in:
kan 2016-11-20 01:59:22 +00:00
parent 655307b888
commit 7efec23782

View File

@ -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
};