From: MyungJoo Ham Date: Mon, 22 Feb 2010 07:55:17 +0000 (+0900) Subject: s5pc110: support adc X-Git-Tag: JB15_20100222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e430fedf8dda5be7b780dae22889490ed45f7f5a;p=kernel%2Fu-boot.git s5pc110: support adc --- diff --git a/include/asm-arm/arch-s5pc1xx/adc.h b/include/asm-arm/arch-s5pc1xx/adc.h new file mode 100644 index 0000000..07fe859 --- /dev/null +++ b/include/asm-arm/arch-s5pc1xx/adc.h @@ -0,0 +1,41 @@ +/* + * (C) Copyright 2009 + * Samsung Electronics, + * MyungJoo Ham + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + */ + +#ifndef __ASM_ARM_ARCH_ADC_H_ +#define __ASM_ARM_ARCH_ADC_H_ + +#define S5PC110_ADC_BASE (0x0) +#ifndef __ASSEMBLY__ +struct s5pc110_adc { + unsigned int adccon; /* starts at 0xE1700000 */ + unsigned int adctsc; + unsigned int adcdly; + unsigned int adcdat0; + unsigned int adcdat1; /* 0xE1700010 */ + unsigned int adcupdn; + unsigned int adcclrint; + unsigned int adcmux; + unsigned int adcclrintpndnup; +}; +#endif + +#endif /* __ASM_ARM_ARCH_ADC_H_ */ diff --git a/include/asm-arm/arch-s5pc1xx/cpu.h b/include/asm-arm/arch-s5pc1xx/cpu.h index 8e716ec..57f1434 100644 --- a/include/asm-arm/arch-s5pc1xx/cpu.h +++ b/include/asm-arm/arch-s5pc1xx/cpu.h @@ -41,6 +41,7 @@ /* S5PC110 */ #define S5PC110_GPIO_BASE 0xE0200000 +#define S5PC110_ADC_BASE 0xE1700000 #define S5PC110_PWMTIMER_BASE 0xE2500000 #define S5PC110_WATCHDOG_BASE 0xE2700000 #define S5PC110_RTC_BASE 0xE2800000