linux/arch/arm/mach-pxa/pcm027.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-or-later */
   2/*
   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>
   7 */
   8
   9/*
  10 * Definitions of CPU card resources only
  11 */
  12
  13#include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
  14
  15/* 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
  22#define PCM027_NR_IRQS          (IRQ_BOARD_START + 32)
  23
  24/* I2C RTC */
  25#define PCM027_RTC_IRQ_GPIO     0
  26#define PCM027_RTC_IRQ          PXA_GPIO_TO_IRQ(PCM027_RTC_IRQ_GPIO)
  27#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
  35#define PCM027_ETH_IRQ          PXA_GPIO_TO_IRQ(PCM027_ETH_IRQ_GPIO)
  36#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
  42#define PCM027_CAN_IRQ          PXA_GPIO_TO_IRQ(PCM027_CAN_IRQ_GPIO)
  43#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
  49#define PCM027_EGPIO_IRQ        PXA_GPIO_TO_IRQ(PCM027_EGPIO_IRQ_GPIO)
  50#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);
  74