From fa3e9af514b366ee4172b8d38fe7d2008852f387 Mon Sep 17 00:00:00 2001 From: hebe Date: Fri, 14 Sep 2012 07:30:24 +0200 Subject: [PATCH] Adc, fix for mpc5668. --- arch/ppc/mpc55xx/drivers/Adc_560x.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.39.2