]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/mach-pxa/pcm027.h
UBUNTU: Ubuntu-4.15.0-96.97
[mirror_ubuntu-bionic-kernel.git] / arch / arm / mach-pxa / pcm027.h
CommitLineData
34e31d87 1/*
a09e64fb 2 * arch/arm/mach-pxa/include/mach/pcm027.h
34e31d87
RS
3 *
4 * (c) 2003 Phytec Messtechnik GmbH <armlinux@phytec.de>
5 * (c) 2007 Juergen Beisert <j.beisert@pengutronix.de>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22/*
23 * Definitions of CPU card resources only
24 */
25
4c25c5d2 26#include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
9705e746 27
0dc726bb
EM
28/* phyCORE-PXA270 (PCM027) Interrupts */
29#define PCM027_IRQ(x) (IRQ_BOARD_START + (x))
30#define PCM027_BTDET_IRQ PCM027_IRQ(0)
31#define PCM027_FF_RI_IRQ PCM027_IRQ(1)
32#define PCM027_MMCDET_IRQ PCM027_IRQ(2)
33#define PCM027_PM_5V_IRQ PCM027_IRQ(3)
34
6ac6b817
HZ
35#define PCM027_NR_IRQS (IRQ_BOARD_START + 32)
36
34e31d87
RS
37/* I2C RTC */
38#define PCM027_RTC_IRQ_GPIO 0
6384fdad 39#define PCM027_RTC_IRQ PXA_GPIO_TO_IRQ(PCM027_RTC_IRQ_GPIO)
34e31d87
RS
40#define PCM027_RTC_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
41#define ADR_PCM027_RTC 0x51 /* I2C address */
42
43/* I2C EEPROM */
44#define ADR_PCM027_EEPROM 0x54 /* I2C address */
45
46/* Ethernet chip (SMSC91C111) */
47#define PCM027_ETH_IRQ_GPIO 52
6384fdad 48#define PCM027_ETH_IRQ PXA_GPIO_TO_IRQ(PCM027_ETH_IRQ_GPIO)
34e31d87
RS
49#define PCM027_ETH_IRQ_EDGE IRQ_TYPE_EDGE_RISING
50#define PCM027_ETH_PHYS PXA_CS5_PHYS
51#define PCM027_ETH_SIZE (1*1024*1024)
52
53/* CAN controller SJA1000 (unsupported yet) */
54#define PCM027_CAN_IRQ_GPIO 114
6384fdad 55#define PCM027_CAN_IRQ PXA_GPIO_TO_IRQ(PCM027_CAN_IRQ_GPIO)
34e31d87
RS
56#define PCM027_CAN_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
57#define PCM027_CAN_PHYS 0x22000000
58#define PCM027_CAN_SIZE 0x100
59
60/* SPI GPIO expander (unsupported yet) */
61#define PCM027_EGPIO_IRQ_GPIO 27
6384fdad 62#define PCM027_EGPIO_IRQ PXA_GPIO_TO_IRQ(PCM027_EGPIO_IRQ_GPIO)
34e31d87
RS
63#define PCM027_EGPIO_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
64#define PCM027_EGPIO_CS 24
65/*
66 * TODO: Switch this pin from dedicated usage to GPIO if
67 * more than the MAX7301 device is connected to this SPI bus
68 */
69#define PCM027_EGPIO_CS_MODE GPIO24_SFRM_MD
70
71/* Flash memory */
72#define PCM027_FLASH_PHYS 0x00000000
73#define PCM027_FLASH_SIZE 0x02000000
74
75/* onboard LEDs connected to GPIO */
76#define PCM027_LED_CPU 90
77#define PCM027_LED_HEARD_BEAT 91
78
79/*
80 * This CPU module needs a baseboard to work. After basic initializing
81 * its own devices, it calls baseboard's init function.
82 * TODO: Add your own basebaord init function and call it from
83 * inside pcm027_init(). This example here is for the developmen board.
84 * Refer pcm990-baseboard.c
85 */
86extern void pcm990_baseboard_init(void);