Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/rockchip/rk_i2c.c
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | struct rk_i2c_softc { | ||||
| device_t iicbus; | device_t iicbus; | ||||
| }; | }; | ||||
| static struct ofw_compat_data compat_data[] = { | static struct ofw_compat_data compat_data[] = { | ||||
| #ifdef SOC_ROCKCHIP_RK3328 | #ifdef SOC_ROCKCHIP_RK3328 | ||||
| {"rockchip,rk3328-i2c", 1}, | {"rockchip,rk3328-i2c", 1}, | ||||
| #endif | #endif | ||||
| #ifdef SOC_ROCKCHIP_RK3399 | |||||
| {"rockchip,rk3399-i2c", 1}, | |||||
| #endif | |||||
| {NULL, 0} | {NULL, 0} | ||||
| }; | }; | ||||
| static struct resource_spec rk_i2c_spec[] = { | static struct resource_spec rk_i2c_spec[] = { | ||||
| { SYS_RES_MEMORY, 0, RF_ACTIVE }, | { SYS_RES_MEMORY, 0, RF_ACTIVE }, | ||||
| { SYS_RES_IRQ, 0, RF_ACTIVE | RF_SHAREABLE }, | { SYS_RES_IRQ, 0, RF_ACTIVE | RF_SHAREABLE }, | ||||
| { -1, 0 } | { -1, 0 } | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 451 Lines • Show Last 20 Lines | |||||