Changeset 3368


Ignore:
Timestamp:
Oct 13, 2012, 3:41:13 AM (3 years ago)
Author:
wmb
Message:

OLPC XO-4 - additional info in device tree for the interrupt controller node on MMP3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/mmp2/irq.fth

    r3356 r3368  
    66" interrupt-controller" device-name
    77\ my-address my-space h# 400 reg
     8[ifdef] mmp3
     9  h# d4282000 encode-int  h# 1000 encode-int encode+
     10  h# d4284000 encode-int encode+  h# 100 encode-int encode+  " reg" property
     11[else]
    812my-address my-space h# 1000 reg
     13[then]
    914
    10150 value base-adr
     
    4752
    4853" mrvl,mmp2-intc" " compatible" string-property
     54[ifdef] mmp3  " mrvl,mmp3-intc" +compatible   [then]
     55
    49561 " #address-cells" integer-property
    50571 " #size-cells" integer-property
     
    98105   h# 128 h# 11c d# 48 d# 24 make-mux-node \ DMA mux - 16 PDMA, 4 ADMA, 2 VDMA channels
    99106
    100 0 [if]
    101 new-device
    102   " interrupt-controller" name
    103   " mrvl,mmp2-mux-intc" +compatible
    104 
    105   0 0
    106   h# 150 encode-int encode+  4 encode-int encode+ 
    107   h# 168 encode-int encode+  4 encode-int encode+  " reg" property
    108   \  h# 150 " mrvl,intc-status" integer-property
    109   \  h# 168 " mrvl,intc-mask" integer-property
    110 
    111   4 " interrupts" integer-property
    112   d# 2 " mrvl,intc-nr-irqs" integer-property
    113   \ 0: USB_CHARGER 1: PMIC
    114 finish-device
    115  
    116 new-device
    117   " interrupt-controller" name
    118   " mrvl,mmp2-mux-intc" +compatible
    119 
    120   0 0
    121   h# 154 encode-int encode+  4 encode-int encode+ 
    122   h# 16c encode-int encode+  4 encode-int encode+  " reg" property
    123 
    124   5 " interrupts" integer-property
    125   d# 2 " mrvl,intc-numbers" integer-property
    126   d# 1 " mrvl,clr-mfp-irq" integer-property
    127   \ 0: RTC_ALARM 1: RTC
    128 finish-device
    129 
    130 new-device
    131   " interrupt-controller" name
    132 
    133   " mrvl,mmp2-mux-intc" +compatible
    134 
    135   0 0
    136   h# 180 encode-int encode+  4 encode-int encode+ 
    137   h# 17c encode-int encode+  4 encode-int encode+  " reg" property
    138 
    139   d# 9 " interrupts" integer-property
    140   d# 3 " mrvl,intc-numbers" integer-property
    141   \ 0:KPC (keypad) 1:ROT (rotary) 2: TBALL (trackball)
    142   \  h# 15c " mrvl,intc-status" integer-property
    143   \  h# 174 " mrvl,intc-mask" integer-property
    144 finish-device
    145 
    146 new-device
    147   " interrupt-controller" name
    148   " mrvl,mmp2-mux-intc" +compatible
    149 
    150   0 0
    151   h# 158 encode-int encode+  4 encode-int encode+ 
    152   h# 170 encode-int encode+  4 encode-int encode+  " reg" property
    153 
    154   d# 17 " interrupts" integer-property
    155   d# 5 " mrvl,intc-numbers" integer-property
    156   \ 0: TWSI2 1: TWSI3 2: TWSI4 3: TWSI5 4: TWSI6
    157 finish-device
    158 
    159 new-device
    160   " interrupt-controller" name
    161 
    162   " mrvl,mmp2-mux-intc" +compatible
    163 
    164   0 0
    165   h# 15c encode-int encode+  4 encode-int encode+ 
    166   h# 174 encode-int encode+  4 encode-int encode+  " reg" property
    167   \  h# 15c " mrvl,intc-status" integer-property
    168   \  h# 174 " mrvl,intc-mask" integer-property
    169 
    170   d# 35 " interrupts" integer-property
    171   d# 15 " mrvl,intc-numbers" integer-property
    172   \ 0: PERF 1: L2_PA_ECC 2: L2_ECC 3: L2_UECC 4: DDR
    173   \ 5: FABRIC0_TO 6: FABRIC1_TO 7: FABRIC2_TO  8: resv 9: THERMAL
    174   \ 10: MAIN_PMU 11: WDT2 12: CORESIGHT 13: COMMTX 14: COMMRX
    175 finish-device
    176 
    177 new-device
    178   " interrupt-controller" name
    179   0 0 " interrupt-controller" property
    180   " mrvl,mmp2-mux-intc" +compatible
    181 
    182   0 0
    183   h# 160 encode-int encode+  4 encode-int encode+ 
    184   h# 178 encode-int encode+  4 encode-int encode+  " reg" property
    185 
    186   d# 51 " interrupts" integer-property
    187   d# 2 " mrvl,intc-numbers" integer-property
    188   \ 0:HSI_CAWAKE 1:MIPI_HSI_INT1
    189   \  h# 15c " mrvl,intc-status" integer-property
    190   \  h# 174 " mrvl,intc-mask" integer-property
    191 finish-device
    192 [then]
    193 
    194107end-package
    195108
Note: See TracChangeset for help on using the changeset viewer.