diff options
author | Chenhui Zhao <chenhui.zhao@freescale.com> | 2014-10-21 06:22:26 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:38:49 (GMT) |
commit | 4162609d6d678f70b1d9fc94485999e0005a179f (patch) | |
tree | 98c6fe101a7a75e0e039b7f2cea5dacefc93fbda /arch/powerpc/include | |
parent | db4f06cb334bbd91a9ba26f79137292b3597aec8 (diff) | |
download | linux-fsl-qoriq-4162609d6d678f70b1d9fc94485999e0005a179f.tar.xz |
fsl: fsm: use same interface to support T104x and LS1021A
T104x is based on PowerPC platform, LS1021A is based on ARM platform.
Make T104x and LS1021A use same interface to set/clear EPU registers.
Signed-off-by: Chenhui Zhao <chenhui.zhao@freescale.com>
---
Patch Sent Upstream
url: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/296410.html
Change-Id: I00fdfc0b15e0f7cdc9ebc9970798d6669d7c22aa
Reviewed-on: http://git.am.freescale.net:8181/21919
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Yang Li <LeoLi@freescale.com>
Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/fsl_pm.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/fsl_pm.h b/arch/powerpc/include/asm/fsl_pm.h index 8e6a656..9811cb2 100644 --- a/arch/powerpc/include/asm/fsl_pm.h +++ b/arch/powerpc/include/asm/fsl_pm.h @@ -37,10 +37,16 @@ struct fsl_pm_ops { extern const struct fsl_pm_ops *qoriq_pm_ops; -struct fsm_reg_vals; +struct fsm_reg_vals { + u32 offset; + u32 value; +}; -extern void fsl_dp_fsm_setup(void __iomem *dcsr_base, struct fsm_reg_vals *val); -extern void fsl_dp_fsm_clean(void __iomem *dcsr_base, struct fsm_reg_vals *val); +void fsl_fsm_setup(void __iomem *base, struct fsm_reg_vals *val); +void fsl_epu_setup_default(void __iomem *epu_base); +void fsl_npc_setup_default(void __iomem *npc_base); +void fsl_fsm_clean(void __iomem *base, struct fsm_reg_vals *val); +void fsl_epu_clean_default(void __iomem *epu_base); extern int fsl_dp_iomap(void); extern void fsl_dp_iounmap(void); |