avr32: fixup definitions to ATMEL_BASE_xxx
[platform/kernel/u-boot.git] / arch / avr32 / cpu / at32ap700x / sm.h
index b6e4409..9a3804e 100644 (file)
 
 /* Register access macros */
 #define sm_readl(reg)                                  \
-       readl((void *)SM_BASE + SM_##reg)
+       readl((void *)ATMEL_BASE_SM + SM_##reg)
 #define sm_writel(reg,value)                           \
-       writel((value), (void *)SM_BASE + SM_##reg)
+       writel((value), (void *)ATMEL_BASE_SM + SM_##reg)
 
 #endif /* __CPU_AT32AP_SM_H__ */