2019-05-27 14:55:05 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2008-01-08 15:44:23 +08:00
|
|
|
/*
|
2008-08-05 23:14:15 +08:00
|
|
|
* arch/arm/mach-pxa/include/mach/pcm027.h
|
2008-01-08 15:44:23 +08:00
|
|
|
*
|
|
|
|
* (c) 2003 Phytec Messtechnik GmbH <armlinux@phytec.de>
|
|
|
|
* (c) 2007 Juergen Beisert <j.beisert@pengutronix.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Definitions of CPU card resources only
|
|
|
|
*/
|
|
|
|
|
2015-01-30 17:45:33 +08:00
|
|
|
#include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
|
2014-02-04 20:53:07 +08:00
|
|
|
|
2009-12-27 23:01:25 +08:00
|
|
|
/* phyCORE-PXA270 (PCM027) Interrupts */
|
|
|
|
#define PCM027_IRQ(x) (IRQ_BOARD_START + (x))
|
|
|
|
#define PCM027_BTDET_IRQ PCM027_IRQ(0)
|
|
|
|
#define PCM027_FF_RI_IRQ PCM027_IRQ(1)
|
|
|
|
#define PCM027_MMCDET_IRQ PCM027_IRQ(2)
|
|
|
|
#define PCM027_PM_5V_IRQ PCM027_IRQ(3)
|
|
|
|
|
2010-08-20 15:23:59 +08:00
|
|
|
#define PCM027_NR_IRQS (IRQ_BOARD_START + 32)
|
|
|
|
|
2008-01-08 15:44:23 +08:00
|
|
|
/* I2C RTC */
|
|
|
|
#define PCM027_RTC_IRQ_GPIO 0
|
2011-10-10 14:21:08 +08:00
|
|
|
#define PCM027_RTC_IRQ PXA_GPIO_TO_IRQ(PCM027_RTC_IRQ_GPIO)
|
2008-01-08 15:44:23 +08:00
|
|
|
#define PCM027_RTC_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
|
|
|
|
#define ADR_PCM027_RTC 0x51 /* I2C address */
|
|
|
|
|
|
|
|
/* I2C EEPROM */
|
|
|
|
#define ADR_PCM027_EEPROM 0x54 /* I2C address */
|
|
|
|
|
|
|
|
/* Ethernet chip (SMSC91C111) */
|
|
|
|
#define PCM027_ETH_IRQ_GPIO 52
|
2011-10-10 14:21:08 +08:00
|
|
|
#define PCM027_ETH_IRQ PXA_GPIO_TO_IRQ(PCM027_ETH_IRQ_GPIO)
|
2008-01-08 15:44:23 +08:00
|
|
|
#define PCM027_ETH_IRQ_EDGE IRQ_TYPE_EDGE_RISING
|
|
|
|
#define PCM027_ETH_PHYS PXA_CS5_PHYS
|
|
|
|
#define PCM027_ETH_SIZE (1*1024*1024)
|
|
|
|
|
|
|
|
/* CAN controller SJA1000 (unsupported yet) */
|
|
|
|
#define PCM027_CAN_IRQ_GPIO 114
|
2011-10-10 14:21:08 +08:00
|
|
|
#define PCM027_CAN_IRQ PXA_GPIO_TO_IRQ(PCM027_CAN_IRQ_GPIO)
|
2008-01-08 15:44:23 +08:00
|
|
|
#define PCM027_CAN_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
|
|
|
|
#define PCM027_CAN_PHYS 0x22000000
|
|
|
|
#define PCM027_CAN_SIZE 0x100
|
|
|
|
|
|
|
|
/* SPI GPIO expander (unsupported yet) */
|
|
|
|
#define PCM027_EGPIO_IRQ_GPIO 27
|
2011-10-10 14:21:08 +08:00
|
|
|
#define PCM027_EGPIO_IRQ PXA_GPIO_TO_IRQ(PCM027_EGPIO_IRQ_GPIO)
|
2008-01-08 15:44:23 +08:00
|
|
|
#define PCM027_EGPIO_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
|
|
|
|
#define PCM027_EGPIO_CS 24
|
|
|
|
/*
|
|
|
|
* TODO: Switch this pin from dedicated usage to GPIO if
|
|
|
|
* more than the MAX7301 device is connected to this SPI bus
|
|
|
|
*/
|
|
|
|
#define PCM027_EGPIO_CS_MODE GPIO24_SFRM_MD
|
|
|
|
|
|
|
|
/* Flash memory */
|
|
|
|
#define PCM027_FLASH_PHYS 0x00000000
|
|
|
|
#define PCM027_FLASH_SIZE 0x02000000
|
|
|
|
|
|
|
|
/* onboard LEDs connected to GPIO */
|
|
|
|
#define PCM027_LED_CPU 90
|
|
|
|
#define PCM027_LED_HEARD_BEAT 91
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This CPU module needs a baseboard to work. After basic initializing
|
|
|
|
* its own devices, it calls baseboard's init function.
|
|
|
|
* TODO: Add your own basebaord init function and call it from
|
|
|
|
* inside pcm027_init(). This example here is for the developmen board.
|
|
|
|
* Refer pcm990-baseboard.c
|
|
|
|
*/
|
|
|
|
extern void pcm990_baseboard_init(void);
|