[PATCH v5 4/6] driver: soc: exynos-pmu: Add a new structure to allow u32 conf data
Amit Daniel Kachhap
amit.daniel at samsung.com
Sat Nov 29 06:15:06 PST 2014
Commit b04fa9f "ARM: EXYNOS: use u8 for val[] in struct exynos_pmu_conf"
modifies the structure to allow only u8 type configuration data. To
support SoC's which need u32 type data a new structure is added.
Signed-off-by: Amit Daniel Kachhap <amit.daniel at samsung.com>
---
drivers/soc/samsung/exynos-pmu.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c
index c3307eb..e1a4884 100644
--- a/drivers/soc/samsung/exynos-pmu.c
+++ b/drivers/soc/samsung/exynos-pmu.c
@@ -26,9 +26,14 @@ struct exynos_pmu_conf {
u8 val[NUM_SYS_POWERDOWN];
};
+struct exynos_pmu_conf_extra {
+ u32 offset;
+ u32 val[NUM_SYS_POWERDOWN];
+};
+
struct exynos_pmu_data {
const struct exynos_pmu_conf *pmu_config;
- const struct exynos_pmu_conf *pmu_config_extra;
+ const struct exynos_pmu_conf_extra *pmu_config_extra;
void (*pmu_init)(void);
void (*powerdown_conf)(enum sys_powerdown);
@@ -324,7 +329,7 @@ static const struct exynos_pmu_conf exynos4x12_pmu_config[] = {
{ PMU_TABLE_END,},
};
-static const struct exynos_pmu_conf exynos4412_pmu_config[] = {
+static const struct exynos_pmu_conf_extra exynos4412_pmu_config[] = {
{ S5P_ARM_CORE2_LOWPWR, { 0x0, 0x0, 0x2 } },
{ S5P_DIS_IRQ_CORE2, { 0x0, 0x0, 0x0 } },
{ S5P_DIS_IRQ_CENTRAL2, { 0x0, 0x0, 0x0 } },
--
1.7.9.5
More information about the linux-arm-kernel
mailing list