~ubuntu-branches/ubuntu/trusty/linux-armadaxp/trusty

« back to all changes in this revision

Viewing changes to arch/arm/mach-sa1100/include/mach/simpad.h

  • Committer: Package Import Robot
  • Author(s): Michael Casadevall, Bryan Wu, Dann Frazier, Michael Casadeall
  • Date: 2012-03-10 15:00:54 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120310150054-flugb39zon8vvgwe
Tags: 3.2.0-1600.1
[ Bryan Wu ]
* UBUNTU: import debian/debian.env and debian.armadaxp

[ Dann Frazier ]
* ARM: Armada XP: remove trailing '/' in dirnames in mvRules.mk

[ Michael Casadeall ]
* tools: add some tools for Marvell Armada XP processor
* kernel: timer tick hacking from Marvell
* kernel: Sheeva Errata: add delay on Sheeva when powering down
* net: add Marvell NFP netfilter
* net: socket and skb modifications made by Marvell
* miscdevice: add minor IDs for some Marvell Armada drivers
* fs: introduce memory pool for splice()
* video: EDID detection updates from Marvell Armada XP patchset
* video: backlight: add Marvell Dove LCD backlight driver
* video: display: add THS8200 display driver
* video: framebuffer: add Marvell Dove and Armada XP processor onchip LCD controller driver
* usbtest: add Interrupt transfer testing by Marvell Armada XP code
* usb: ehci: add support for Marvell EHCI controler
* tty/serial: 8250: add support for Marvell Armada XP processor and DeviceTree work
* rtc: add support for Marvell Armada XP onchip RTC controller
* net: pppoe: add Marvell ethernet NFP hook in PPPoE networking driver
* mtd: nand: add support for Marvell Armada XP Nand Flash Controller
* mtd: maps: add Marvell Armada XP specific map driver
* mmc: add support for Marvell Armada XP MMC/SD host controller
* i2c: add support for Marvell Armada XP onchip i2c bus controller
* hwmon: add Kconfig option for Armada XP onchip thermal sensor driver
* dmaengine: add Net DMA support for splice and update Marvell XOR DMA engine driver
* ata: add support for Marvell Armada XP SATA controller and update some quirks
* ARM: add Marvell Armada XP machine to mach-types
* ARM: oprofile: add support for Marvell PJ4B core
* ARM: mm: more ARMv6 switches for Marvell Armada XP
* ARM: remove static declaration to allow compilation
* ARM: alignment access fault trick
* ARM: mm: skip some fault fixing when run on NONE SMP ARMv6 mode during early abort event
* ARM: mm: add Marvell Sheeva CPU Architecture for PJ4B
* ARM: introduce optimized copy operation for Marvell Armada XP
* ARM: SAUCE: hardware breakpoint trick for Marvell Armada XP
* ARM: big endian and little endian tricks for Marvell Armada XP
* ARM: SAUCE: Add Marvell Armada XP build rules to arch/arm/kernel/Makefile
* ARM: vfp: add special handling for Marvell Armada XP
* ARM: add support for Marvell U-Boot
* ARM: add mv_controller_num for ARM PCI drivers
* ARM: add support for local PMUs, general SMP tweaks and cache flushing
* ARM: add Marvell device identifies in glue-proc.h
* ARM: add IPC driver support for Marvell platforms
* ARM: add DMA mapping for Marvell platforms
* ARM: add Sheeva errata and PJ4B code for booting
* ARM: update Kconfig and Makefile to include Marvell Armada XP platforms
* ARM: Armada XP: import LSP from Marvell for Armada XP 3.2 kernel enablement

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#define GPIO_SMART_CARD         GPIO_GPIO10
49
49
#define IRQ_GPIO_SMARD_CARD     IRQ_GPIO10
50
50
 
51
 
// CS3 Latch is write only, a shadow is necessary
52
 
 
53
 
#define CS3BUSTYPE unsigned volatile long
 
51
/*--- ucb1x00 GPIO ---*/
 
52
#define SIMPAD_UCB1X00_GPIO_BASE        (GPIO_MAX + 1)
 
53
#define SIMPAD_UCB1X00_GPIO_PROG1       (SIMPAD_UCB1X00_GPIO_BASE)
 
54
#define SIMPAD_UCB1X00_GPIO_PROG2       (SIMPAD_UCB1X00_GPIO_BASE + 1)
 
55
#define SIMPAD_UCB1X00_GPIO_UP          (SIMPAD_UCB1X00_GPIO_BASE + 2)
 
56
#define SIMPAD_UCB1X00_GPIO_DOWN        (SIMPAD_UCB1X00_GPIO_BASE + 3)
 
57
#define SIMPAD_UCB1X00_GPIO_LEFT        (SIMPAD_UCB1X00_GPIO_BASE + 4)
 
58
#define SIMPAD_UCB1X00_GPIO_RIGHT       (SIMPAD_UCB1X00_GPIO_BASE + 5)
 
59
#define SIMPAD_UCB1X00_GPIO_6           (SIMPAD_UCB1X00_GPIO_BASE + 6)
 
60
#define SIMPAD_UCB1X00_GPIO_7           (SIMPAD_UCB1X00_GPIO_BASE + 7)
 
61
#define SIMPAD_UCB1X00_GPIO_HEADSET     (SIMPAD_UCB1X00_GPIO_BASE + 8)
 
62
#define SIMPAD_UCB1X00_GPIO_SPEAKER     (SIMPAD_UCB1X00_GPIO_BASE + 9)
 
63
 
 
64
/*--- CS3 Latch ---*/
 
65
#define SIMPAD_CS3_GPIO_BASE            (GPIO_MAX + 11)
 
66
#define SIMPAD_CS3_VCC_5V_EN            (SIMPAD_CS3_GPIO_BASE)
 
67
#define SIMPAD_CS3_VCC_3V_EN            (SIMPAD_CS3_GPIO_BASE + 1)
 
68
#define SIMPAD_CS3_EN1                  (SIMPAD_CS3_GPIO_BASE + 2)
 
69
#define SIMPAD_CS3_EN0                  (SIMPAD_CS3_GPIO_BASE + 3)
 
70
#define SIMPAD_CS3_DISPLAY_ON           (SIMPAD_CS3_GPIO_BASE + 4)
 
71
#define SIMPAD_CS3_PCMCIA_BUFF_DIS      (SIMPAD_CS3_GPIO_BASE + 5)
 
72
#define SIMPAD_CS3_MQ_RESET             (SIMPAD_CS3_GPIO_BASE + 6)
 
73
#define SIMPAD_CS3_PCMCIA_RESET         (SIMPAD_CS3_GPIO_BASE + 7)
 
74
#define SIMPAD_CS3_DECT_POWER_ON        (SIMPAD_CS3_GPIO_BASE + 8)
 
75
#define SIMPAD_CS3_IRDA_SD              (SIMPAD_CS3_GPIO_BASE + 9)
 
76
#define SIMPAD_CS3_RS232_ON             (SIMPAD_CS3_GPIO_BASE + 10)
 
77
#define SIMPAD_CS3_SD_MEDIAQ            (SIMPAD_CS3_GPIO_BASE + 11)
 
78
#define SIMPAD_CS3_LED2_ON              (SIMPAD_CS3_GPIO_BASE + 12)
 
79
#define SIMPAD_CS3_IRDA_MODE            (SIMPAD_CS3_GPIO_BASE + 13)
 
80
#define SIMPAD_CS3_ENABLE_5V            (SIMPAD_CS3_GPIO_BASE + 14)
 
81
#define SIMPAD_CS3_RESET_SIMCARD        (SIMPAD_CS3_GPIO_BASE + 15)
 
82
 
 
83
#define SIMPAD_CS3_PCMCIA_BVD1          (SIMPAD_CS3_GPIO_BASE + 16)
 
84
#define SIMPAD_CS3_PCMCIA_BVD2          (SIMPAD_CS3_GPIO_BASE + 17)
 
85
#define SIMPAD_CS3_PCMCIA_VS1           (SIMPAD_CS3_GPIO_BASE + 18)
 
86
#define SIMPAD_CS3_PCMCIA_VS2           (SIMPAD_CS3_GPIO_BASE + 19)
 
87
#define SIMPAD_CS3_LOCK_IND             (SIMPAD_CS3_GPIO_BASE + 20)
 
88
#define SIMPAD_CS3_CHARGING_STATE       (SIMPAD_CS3_GPIO_BASE + 21)
 
89
#define SIMPAD_CS3_PCMCIA_SHORT         (SIMPAD_CS3_GPIO_BASE + 22)
 
90
#define SIMPAD_CS3_GPIO_23              (SIMPAD_CS3_GPIO_BASE + 23)
 
91
 
54
92
#define CS3_BASE        0xf1000000
55
93
 
56
 
#define VCC_5V_EN       0x0001 // For 5V PCMCIA
57
 
#define VCC_3V_EN       0x0002 // FOR 3.3V PCMCIA
58
 
#define EN1             0x0004 // This is only for EPROM's
59
 
#define EN0             0x0008 // Both should be enable for 3.3V or 5V
60
 
#define DISPLAY_ON      0x0010
61
 
#define PCMCIA_BUFF_DIS 0x0020
62
 
#define MQ_RESET        0x0040
63
 
#define PCMCIA_RESET    0x0080
64
 
#define DECT_POWER_ON   0x0100
65
 
#define IRDA_SD         0x0200 // Shutdown for powersave
66
 
#define RS232_ON        0x0400
67
 
#define SD_MEDIAQ       0x0800 // Shutdown for powersave
68
 
#define LED2_ON         0x1000
69
 
#define IRDA_MODE       0x2000 // Fast/Slow IrDA mode
70
 
#define ENABLE_5V       0x4000 // Enable 5V circuit
71
 
#define RESET_SIMCARD   0x8000
72
 
 
73
 
#define RS232_ENABLE    0x0440
74
 
#define PCMCIAMASK      0x402f
75
 
 
76
 
 
 
94
long simpad_get_cs3_ro(void);
 
95
long simpad_get_cs3_shadow(void);
 
96
void simpad_set_cs3_bit(int value);
 
97
void simpad_clear_cs3_bit(int value);
 
98
 
 
99
#define VCC_5V_EN       0x0001 /* For 5V PCMCIA */
 
100
#define VCC_3V_EN       0x0002 /* FOR 3.3V PCMCIA */
 
101
#define EN1             0x0004 /* This is only for EPROM's */
 
102
#define EN0             0x0008 /* Both should be enable for 3.3V or 5V */
 
103
#define DISPLAY_ON      0x0010
 
104
#define PCMCIA_BUFF_DIS 0x0020
 
105
#define MQ_RESET        0x0040
 
106
#define PCMCIA_RESET    0x0080
 
107
#define DECT_POWER_ON   0x0100
 
108
#define IRDA_SD         0x0200 /* Shutdown for powersave */
 
109
#define RS232_ON        0x0400
 
110
#define SD_MEDIAQ       0x0800 /* Shutdown for powersave */
 
111
#define LED2_ON         0x1000
 
112
#define IRDA_MODE       0x2000 /* Fast/Slow IrDA mode */
 
113
#define ENABLE_5V       0x4000 /* Enable 5V circuit */
 
114
#define RESET_SIMCARD   0x8000
 
115
 
 
116
#define PCMCIA_BVD1     0x01
 
117
#define PCMCIA_BVD2     0x02
 
118
#define PCMCIA_VS1      0x04
 
119
#define PCMCIA_VS2      0x08
 
120
#define LOCK_IND        0x10
 
121
#define CHARGING_STATE  0x20
 
122
#define PCMCIA_SHORT    0x40
 
123
 
 
124
/*--- Battery ---*/
77
125
struct simpad_battery {
78
126
        unsigned char ac_status;        /* line connected yes/no */
79
127
        unsigned char status;           /* battery loading yes/no */