]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/avr32/cpu/at32ap700x/sm.h
avr32: fixup definitions to ATMEL_BASE_xxx
[karo-tx-uboot.git] / arch / avr32 / cpu / at32ap700x / sm.h
index b6e4409b220ba60c725df3d2de0e288c65a3c5e9..9a3804efe4fa9dc7411bc288fe810757a9a74356 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__ */