s5pc110: support adc JB15_20100222
authorMyungJoo Ham <MyungJoo.Ham@samsung.com>
Mon, 22 Feb 2010 07:55:17 +0000 (16:55 +0900)
committerMyungJoo Ham <MyungJoo.Ham@samsung.com>
Mon, 22 Feb 2010 07:55:17 +0000 (16:55 +0900)
include/asm-arm/arch-s5pc1xx/adc.h [new file with mode: 0644]
include/asm-arm/arch-s5pc1xx/cpu.h

diff --git a/include/asm-arm/arch-s5pc1xx/adc.h b/include/asm-arm/arch-s5pc1xx/adc.h
new file mode 100644 (file)
index 0000000..07fe859
--- /dev/null
@@ -0,0 +1,41 @@
+/*                                      
+ * (C) Copyright 2009                   
+ * Samsung Electronics, <www.samsung.com/sec>
+ * MyungJoo Ham <myungjoo.ham@samsung.com>
+ *              
+ * 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_ */
index 8e716ec..57f1434 100644 (file)
@@ -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