Tristan Shieh | 0eb92df | 2018-06-08 18:21:45 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2018 MediaTek Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | #include <device/device.h> |
| 17 | #include <soc/mmu_operations.h> |
| 18 | |
| 19 | static void soc_init(struct device *dev) |
| 20 | { |
| 21 | mtk_mmu_disable_l2c_sram(); |
| 22 | } |
| 23 | |
| 24 | static struct device_operations soc_ops = { |
| 25 | .init = soc_init, |
| 26 | }; |
| 27 | |
| 28 | static void enable_soc_dev(struct device *dev) |
| 29 | { |
| 30 | dev->ops = &soc_ops; |
| 31 | } |
| 32 | |
| 33 | struct chip_operations soc_mediatek_mt8183_ops = { |
| 34 | CHIP_NAME("SOC Mediatek MT8183") |
| 35 | .enable_dev = enable_soc_dev, |
| 36 | }; |