Lines Matching refs:reg
27 #define OMAP_SDRC_REGADDR(reg) (omap2_sdrc_base + (reg))
28 #define OMAP_SMS_REGADDR(reg) (omap2_sms_base + (reg))
32 static inline void sdrc_write_reg(u32 val, u16 reg)
34 __raw_writel(val, OMAP_SDRC_REGADDR(reg));
37 static inline u32 sdrc_read_reg(u16 reg)
39 return __raw_readl(OMAP_SDRC_REGADDR(reg));
44 static inline void sms_write_reg(u32 val, u16 reg)
46 __raw_writel(val, OMAP_SMS_REGADDR(reg));
49 static inline u32 sms_read_reg(u16 reg)
51 return __raw_readl(OMAP_SMS_REGADDR(reg));
54 #define OMAP242X_SDRC_REGADDR(reg) \
55 OMAP2_L3_IO_ADDRESS(OMAP2420_SDRC_BASE + (reg))
56 #define OMAP243X_SDRC_REGADDR(reg) \
57 OMAP2_L3_IO_ADDRESS(OMAP243X_SDRC_BASE + (reg))
58 #define OMAP34XX_SDRC_REGADDR(reg) \
59 OMAP2_L3_IO_ADDRESS(OMAP343X_SDRC_BASE + (reg))