Angel Pons | e67ab18 | 2020-04-04 18:51:11 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Tristan Shieh | 0eb92df | 2018-06-08 18:21:45 +0800 | [diff] [blame] | 2 | |
Kyösti Mälkki | 13f6650 | 2019-03-03 08:01:05 +0200 | [diff] [blame] | 3 | #include <device/mmio.h> |
Tristan Shieh | 0eb92df | 2018-06-08 18:21:45 +0800 | [diff] [blame] | 4 | #include <soc/mcucfg.h> |
| 5 | #include <soc/mmu_operations.h> |
| 6 | |
| 7 | void mtk_soc_disable_l2c_sram(void) |
| 8 | { |
| 9 | /* Turn off L2C SRAM and return it to L2 cache. */ |
| 10 | write32(&mt8183_mcucfg->l2c_cfg_mp0, 7 << 8); |
| 11 | } |