blob: 0c4ab636ce4e04365ae1d5ea120b22e7686cbd1c [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Russell Kinga09e64f2008-08-05 16:14:15 +01002/*
3 * arch/arm/mach-pxa/include/mach/pcm027.h
4 *
5 * (c) 2003 Phytec Messtechnik GmbH <armlinux@phytec.de>
6 * (c) 2007 Juergen Beisert <j.beisert@pengutronix.de>
Russell Kinga09e64f2008-08-05 16:14:15 +01007 */
8
9/*
10 * Definitions of CPU card resources only
11 */
12
Arnd Bergmann4c25c5d2015-01-30 10:45:33 +010013#include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
Linus Walleij9705e742014-02-04 13:53:07 +010014
Eric Miao0dc726b2009-12-27 23:01:25 +080015/* phyCORE-PXA270 (PCM027) Interrupts */
16#define PCM027_IRQ(x) (IRQ_BOARD_START + (x))
17#define PCM027_BTDET_IRQ PCM027_IRQ(0)
18#define PCM027_FF_RI_IRQ PCM027_IRQ(1)
19#define PCM027_MMCDET_IRQ PCM027_IRQ(2)
20#define PCM027_PM_5V_IRQ PCM027_IRQ(3)
21
Haojian Zhuang6ac6b812010-08-20 15:23:59 +080022#define PCM027_NR_IRQS (IRQ_BOARD_START + 32)
23
Russell Kinga09e64f2008-08-05 16:14:15 +010024/* I2C RTC */
25#define PCM027_RTC_IRQ_GPIO 0
Haojian Zhuang6384fda2011-10-10 14:21:08 +080026#define PCM027_RTC_IRQ PXA_GPIO_TO_IRQ(PCM027_RTC_IRQ_GPIO)
Russell Kinga09e64f2008-08-05 16:14:15 +010027#define PCM027_RTC_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
28#define ADR_PCM027_RTC 0x51 /* I2C address */
29
30/* I2C EEPROM */
31#define ADR_PCM027_EEPROM 0x54 /* I2C address */
32
33/* Ethernet chip (SMSC91C111) */
34#define PCM027_ETH_IRQ_GPIO 52
Haojian Zhuang6384fda2011-10-10 14:21:08 +080035#define PCM027_ETH_IRQ PXA_GPIO_TO_IRQ(PCM027_ETH_IRQ_GPIO)
Russell Kinga09e64f2008-08-05 16:14:15 +010036#define PCM027_ETH_IRQ_EDGE IRQ_TYPE_EDGE_RISING
37#define PCM027_ETH_PHYS PXA_CS5_PHYS
38#define PCM027_ETH_SIZE (1*1024*1024)
39
40/* CAN controller SJA1000 (unsupported yet) */
41#define PCM027_CAN_IRQ_GPIO 114
Haojian Zhuang6384fda2011-10-10 14:21:08 +080042#define PCM027_CAN_IRQ PXA_GPIO_TO_IRQ(PCM027_CAN_IRQ_GPIO)
Russell Kinga09e64f2008-08-05 16:14:15 +010043#define PCM027_CAN_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
44#define PCM027_CAN_PHYS 0x22000000
45#define PCM027_CAN_SIZE 0x100
46
47/* SPI GPIO expander (unsupported yet) */
48#define PCM027_EGPIO_IRQ_GPIO 27
Haojian Zhuang6384fda2011-10-10 14:21:08 +080049#define PCM027_EGPIO_IRQ PXA_GPIO_TO_IRQ(PCM027_EGPIO_IRQ_GPIO)
Russell Kinga09e64f2008-08-05 16:14:15 +010050#define PCM027_EGPIO_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
51#define PCM027_EGPIO_CS 24
52/*
53 * TODO: Switch this pin from dedicated usage to GPIO if
54 * more than the MAX7301 device is connected to this SPI bus
55 */
56#define PCM027_EGPIO_CS_MODE GPIO24_SFRM_MD
57
58/* Flash memory */
59#define PCM027_FLASH_PHYS 0x00000000
60#define PCM027_FLASH_SIZE 0x02000000
61
62/* onboard LEDs connected to GPIO */
63#define PCM027_LED_CPU 90
64#define PCM027_LED_HEARD_BEAT 91
65
66/*
67 * This CPU module needs a baseboard to work. After basic initializing
68 * its own devices, it calls baseboard's init function.
69 * TODO: Add your own basebaord init function and call it from
70 * inside pcm027_init(). This example here is for the developmen board.
71 * Refer pcm990-baseboard.c
72 */
73extern void pcm990_baseboard_init(void);