| 1395 | } |
| 1396 | |
| 1397 | static 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 | |
| 1417 | static rt_err_t its_set_non_coherent(void *data) |
| 1418 | { |
nothing calls this directly
no test coverage detected