MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / its_enable_rockchip

Function its_enable_rockchip

components/drivers/pic/pic-gicv3-its.c:1397–1415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395}
1396
1397static rt_err_t its_enable_rockchip(void *data)
1398{
1399 struct gicv3_its *its = data;
1400 struct gicv3 *gic = its->gic;
1401
1402 if (!rt_ofw_machine_is_compatible("rockchip,rk3566") &&
1403 !rt_ofw_machine_is_compatible("rockchip,rk3567") &&
1404 !rt_ofw_machine_is_compatible("rockchip,rk3568") &&
1405 !rt_ofw_machine_is_compatible("rockchip,rk3588") &&
1406 !rt_ofw_machine_is_compatible("rockchip,rk3588s"))
1407 {
1408 return -RT_EINVAL;
1409 }
1410
1411 its->flags |= ITS_FLAGS_FORCE_NON_SHAREABLE;
1412 gic->redist_flags |= RDIST_FLAGS_FORCE_NON_SHAREABLE;
1413
1414 return RT_EOK;
1415}
1416
1417static rt_err_t its_set_non_coherent(void *data)
1418{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected