@ -23,9 +23,9 @@
# ifndef _ASM_ARCH_HARDWARE_H
# define _ASM_ARCH_HARDWARE_H
# define XPSS _SYS_CTRL_BASEADDR 0xF8000000
# define XPSS _DEV_CFG_APB_BASEADDR 0xF8007000
# define XPSS _SCU_BASEADDR 0xF8F00000
# define ZYNQ _SYS_CTRL_BASEADDR 0xF8000000
# define ZYNQ _DEV_CFG_APB_BASEADDR 0xF8007000
# define ZYNQ _SCU_BASEADDR 0xF8F00000
/* Reflect slcr offsets */
struct slcr_regs {
@ -49,7 +49,7 @@ struct slcr_regs {
u32 ocm_cfg ; /* 0x910 */
} ;
# define slcr_base ((struct slcr_regs *) XPSS _SYS_CTRL_BASEADDR)
# define slcr_base ((struct slcr_regs *)ZYNQ _SYS_CTRL_BASEADDR)
struct devcfg_regs {
u32 ctrl ; /* 0x0 */
@ -72,7 +72,7 @@ struct devcfg_regs {
u32 read_count ; /* 0x8c */
} ;
# define devcfg_base ((struct devcfg_regs *) XPSS _DEV_CFG_APB_BASEADDR)
# define devcfg_base ((struct devcfg_regs *)ZYNQ _DEV_CFG_APB_BASEADDR)
struct scu_regs {
u32 reserved1 [ 16 ] ;
@ -80,6 +80,6 @@ struct scu_regs {
u32 filter_end ; /* 0x44 */
} ;
# define scu_base ((struct scu_regs *) XPSS _SCU_BASEADDR)
# define scu_base ((struct scu_regs *)ZYNQ _SCU_BASEADDR)
# endif /* _ASM_ARCH_HARDWARE_H */