From: hebe Date: Fri, 14 Sep 2012 05:30:24 +0000 (+0200) Subject: Adc, fix for mpc5668. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/arc.git/commitdiff_plain/fa3e9af514b366ee4172b8d38fe7d2008852f387 Adc, fix for mpc5668. --- diff --git a/arch/ppc/mpc55xx/drivers/Adc_560x.c b/arch/ppc/mpc55xx/drivers/Adc_560x.c index 782d5c94..bb8633eb 100644 --- a/arch/ppc/mpc55xx/drivers/Adc_560x.c +++ b/arch/ppc/mpc55xx/drivers/Adc_560x.c @@ -59,8 +59,14 @@ #define ADC1_WD_INT ADC_B_WD #endif +#if defined(CFG_MPC5668) +#define ADC_BASE_ADDRESS 0xFFF80000 +#else +#define ADC_BASE_ADDRESS 0xFFE00000 +#endif + #define GET_HW_CONTROLLER(_controller) \ - ((struct ADC_tag *)(0xFFE00000 + 0x4000*(_controller))) + ((struct ADC_tag *)(ADC_BASE_ADDRESS + 0x4000*(_controller))) #define GET_HWUNITID_FROM_GROUP(_group) (_group / ADC_NOF_GROUP_PER_CONTROLLER)