]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Adc, fix for mpc5668.
authorhebe <devnull@localhost>
Fri, 14 Sep 2012 05:30:24 +0000 (07:30 +0200)
committerhebe <devnull@localhost>
Fri, 14 Sep 2012 05:30:24 +0000 (07:30 +0200)
arch/ppc/mpc55xx/drivers/Adc_560x.c

index 782d5c94c6fb220f6e1d953b7b2e87c2e2076ee6..bb8633ebe880fba31015d4604f027c9dc478221e 100644 (file)
 #define        ADC1_WD_INT             ADC_B_WD\r
 #endif\r
 \r
+#if defined(CFG_MPC5668)\r
+#define ADC_BASE_ADDRESS 0xFFF80000\r
+#else\r
+#define ADC_BASE_ADDRESS 0xFFE00000\r
+#endif\r
+\r
 #define GET_HW_CONTROLLER(_controller)         \\r
-                                               ((struct ADC_tag *)(0xFFE00000 + 0x4000*(_controller)))\r
+                                               ((struct ADC_tag *)(ADC_BASE_ADDRESS + 0x4000*(_controller)))\r
 \r
 #define GET_HWUNITID_FROM_GROUP(_group) (_group / ADC_NOF_GROUP_PER_CONTROLLER)\r
 \r