@@ -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 } },
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@samsung.com> --- drivers/soc/samsung/exynos-pmu.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)