Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * arch/arm/mach-pxa/include/mach/pcm027.h
0004  *
0005  * (c) 2003 Phytec Messtechnik GmbH <armlinux@phytec.de>
0006  * (c) 2007 Juergen Beisert <j.beisert@pengutronix.de>
0007  */
0008 
0009 /*
0010  * Definitions of CPU card resources only
0011  */
0012 
0013 #include "irqs.h" /* PXA_GPIO_TO_IRQ */
0014 
0015 /* phyCORE-PXA270 (PCM027) Interrupts */
0016 #define PCM027_IRQ(x)          (IRQ_BOARD_START + (x))
0017 #define PCM027_BTDET_IRQ       PCM027_IRQ(0)
0018 #define PCM027_FF_RI_IRQ       PCM027_IRQ(1)
0019 #define PCM027_MMCDET_IRQ      PCM027_IRQ(2)
0020 #define PCM027_PM_5V_IRQ       PCM027_IRQ(3)
0021 
0022 #define PCM027_NR_IRQS      (IRQ_BOARD_START + 32)
0023 
0024 /* I2C RTC */
0025 #define PCM027_RTC_IRQ_GPIO 0
0026 #define PCM027_RTC_IRQ      PXA_GPIO_TO_IRQ(PCM027_RTC_IRQ_GPIO)
0027 #define PCM027_RTC_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
0028 #define ADR_PCM027_RTC      0x51    /* I2C address */
0029 
0030 /* I2C EEPROM */
0031 #define ADR_PCM027_EEPROM   0x54    /* I2C address */
0032 
0033 /* Ethernet chip (SMSC91C111) */
0034 #define PCM027_ETH_IRQ_GPIO 52
0035 #define PCM027_ETH_IRQ      PXA_GPIO_TO_IRQ(PCM027_ETH_IRQ_GPIO)
0036 #define PCM027_ETH_IRQ_EDGE IRQ_TYPE_EDGE_RISING
0037 #define PCM027_ETH_PHYS     PXA_CS5_PHYS
0038 #define PCM027_ETH_SIZE     (1*1024*1024)
0039 
0040 /* CAN controller SJA1000 (unsupported yet) */
0041 #define PCM027_CAN_IRQ_GPIO 114
0042 #define PCM027_CAN_IRQ      PXA_GPIO_TO_IRQ(PCM027_CAN_IRQ_GPIO)
0043 #define PCM027_CAN_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
0044 #define PCM027_CAN_PHYS     0x22000000
0045 #define PCM027_CAN_SIZE     0x100
0046 
0047 /* SPI GPIO expander (unsupported yet) */
0048 #define PCM027_EGPIO_IRQ_GPIO   27
0049 #define PCM027_EGPIO_IRQ    PXA_GPIO_TO_IRQ(PCM027_EGPIO_IRQ_GPIO)
0050 #define PCM027_EGPIO_IRQ_EDGE   IRQ_TYPE_EDGE_FALLING
0051 #define PCM027_EGPIO_CS     24
0052 /*
0053  * TODO: Switch this pin from dedicated usage to GPIO if
0054  * more than the MAX7301 device is connected to this SPI bus
0055  */
0056 #define PCM027_EGPIO_CS_MODE    GPIO24_SFRM_MD
0057 
0058 /* Flash memory */
0059 #define PCM027_FLASH_PHYS   0x00000000
0060 #define PCM027_FLASH_SIZE   0x02000000
0061 
0062 /* onboard LEDs connected to GPIO */
0063 #define PCM027_LED_CPU      90
0064 #define PCM027_LED_HEARD_BEAT   91
0065 
0066 /*
0067  * This CPU module needs a baseboard to work. After basic initializing
0068  * its own devices, it calls baseboard's init function.
0069  * TODO: Add your own basebaord init function and call it from
0070  * inside pcm027_init(). This example here is for the developmen board.
0071  * Refer pcm990-baseboard.c
0072  */
0073 extern void pcm990_baseboard_init(void);