/* * Copyright (c) 2015-2016 MediaTek Inc. * Author: Yong Wu * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef MTK_IOMMU_SMI_H #define MTK_IOMMU_SMI_H #include #include #ifdef CONFIG_MTK_SMI #define MTK_LARB_NR_MAX 8 #define MTK_SMI_MMU_EN(port) BIT(port) struct mtk_smi_larb_iommu { struct device *dev; unsigned int mmu; }; struct mtk_smi_iommu { unsigned int larb_nr; struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX]; }; /* * mtk_smi_larb_get: Enable the power domain and clocks for this local arbiter. * It also initialize some basic setting(like iommu). * mtk_smi_larb_put: Disable the power domain and clocks for this local arbiter. * Both should be called in non-atomic context. * * Returns 0 if successful, negative on failure. */ int mtk_smi_larb_get(struct device *larbdev); void mtk_smi_larb_put(struct device *larbdev); #else static inline int mtk_smi_larb_get(struct device *larbdev) { return 0; } static inline void mtk_smi_larb_put(struct device *larbdev) { } #endif #endif ight'>Tobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Liao <jamesjj.liao@mediatek.com>2016-04-12 16:34:30 +0800
committerMatthias Brugger <matthias.bgg@gmail.com>2016-04-13 11:55:08 +0200
commitd9c9f3b809d2bb0356f013e88d10730eafab5346 (patch)
treeea2340ebca3c084817b2d4248caca18f2e0d97e6 /Documentation/irqflags-tracing.txt
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
Revert "soc: mediatek: SCPSYS: Fix double enabling of regulators"
This reverts commit cc8ed76938b5cf6a54ab3d60edabaf808dc960d1 ("soc: mediatek: SCPSYS: Fix double enabling of regulators") [1]. This patch fixes mt8173-evb failing boot issue. With commit [1], genpd state will not sync to real power domain state. So some resources such as clocks and regulators may stay in a wrong state. There is no regulator double enabling issue on mainline kernel, so we can refert commit [1] safely. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'Documentation/irqflags-tracing.txt')