diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-10-17 14:48:00 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-10-17 17:26:37 +0200 |
commit | 0ff9471607293c7c8809d88acc0d0248d0f19134 (patch) | |
tree | 04edc2f734d3dc1d9c3795612ec2025fb39c7521 /arch/arm/mach-s3c2410/include | |
parent | 74fca6a42863ffacaf7ba6f1936a9f228950f657 (diff) |
Add gta01 machine support.
Diffstat (limited to 'arch/arm/mach-s3c2410/include')
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/gta01.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/gta01.h b/arch/arm/mach-s3c2410/include/mach/gta01.h new file mode 100644 index 00000000000..673a1161105 --- /dev/null +++ b/arch/arm/mach-s3c2410/include/mach/gta01.h @@ -0,0 +1,67 @@ +#ifndef _GTA01_H +#define _GTA01_H + +#include <mach/regs-gpio.h> +#include <mach/irqs.h> + +/* Different hardware revisions, passed in ATAG_REVISION by u-boot */ +#define GTA01v3_SYSTEM_REV 0x00000130 +#define GTA01v4_SYSTEM_REV 0x00000140 +#define GTA01Bv2_SYSTEM_REV 0x00000220 +#define GTA01Bv3_SYSTEM_REV 0x00000230 +#define GTA01Bv4_SYSTEM_REV 0x00000240 + +/* !!!!!!!!!!! */ +#define S3C_SYSTEM_REV_ATAG GTA01Bv2_SYSTEM_REV + +/* Backlight */ + +/* Definitions common to all revisions */ +#define GTA01_GPIO_BACKLIGHT S3C2410_GPB(0) +#define GTA01_GPIO_GPS_PWRON S3C2410_GPB(1) +#define GTA01_GPIO_MODEM_RST S3C2410_GPB(6) +#define GTA01_GPIO_MODEM_ON S3C2410_GPB(7) +#define GTA01_GPIO_LCD_RESET S3C2410_GPC(6) +#define GTA01_GPIO_PMU_IRQ S3C2410_GPG(8) +#define GTA01_GPIO_JACK_INSERT S3C2410_GPF(4) +#define GTA01_GPIO_nSD_DETECT S3C2410_GPF(5) +#define GTA01_GPIO_AUX_KEY S3C2410_GPF(6) +#define GTA01_GPIO_HOLD_KEY S3C2410_GPF(7) + +#define GTA01_IRQ_MODEM IRQ_EINT1 +#define GTA01_IRQ_JACK_INSERT IRQ_EINT4 +#define GTA01_IRQ_nSD_DETECT IRQ_EINT5 +#define GTA01_IRQ_AUX_KEY IRQ_EINT6 + +/* GTA01v3 */ +#define GTA01v3_GPIO_nGSM_EN S3C2410_GPG(9) + +/* GTA01v4 */ +#define GTA01_GPIO_MODEM_DNLOAD S3C2410_GPG(0) + +/* GTA01Bv2 */ +#define GTA01Bv2_GPIO_nGSM_EN S3C2410_GPF(2) +#define GTA01Bv2_GPIO_VIBRATOR_ON S3C2410_GPB(10) +#define GTA01Bv2_IRQ_PCF50606 IRQ_EINT16 + +/* GTA01Bv3 */ +#define GTA01_GPIO_GPS_EN_3V3 S3C2410_GPG(9) + +#define GTA01_GPIO_SDMMC_ON S3C2410_GPB(2) +#define GTA01_GPIO_BT_EN S3C2410_GPB(5) +#define GTA01_GPIO_USB_PULLUP S3C2410_GPB(9) + +#define GTA01_GPIO_GPS_EN_2V8 S3C2410_GPG(9) +#define GTA01_GPIO_GPS_EN_3V S3C2410_GPG(10) +#define GTA01_GPIO_GPS_RESET S3C2410_GPC(0) + +/* GTA01Bv4 */ +#define GTA01Bv4_GPIO_nNAND_WP S3C2410_GPA(16) +#define GTA01Bv4_GPIO_VIBRATOR_ON S3C2410_GPB(3) +#define GTA01Bv4_GPIO_PMU_IRQ S3C2410_GPG(1) + +#define GTA01Bv4_IRQ_PCF50606 IRQ_EINT9 + +extern struct pcf50606 *gta01_pcf; + +#endif /* _GTA01_H */ |