linux/drivers/pinctrl/sh-pfc/pfc-sh7269.c
<<
>>
Prefs
   1/*
   2 * SH7269 Pinmux
   3 *
   4 * Copyright (C) 2012  Renesas Electronics Europe Ltd
   5 * Copyright (C) 2012  Phil Edworthy
   6 *
   7 * This file is subject to the terms and conditions of the GNU General Public
   8 * License.  See the file "COPYING" in the main directory of this archive
   9 * for more details.
  10 */
  11
  12#include <linux/kernel.h>
  13#include <linux/gpio.h>
  14#include <cpu/sh7269.h>
  15
  16#include "sh_pfc.h"
  17
  18enum {
  19        PINMUX_RESERVED = 0,
  20
  21        PINMUX_DATA_BEGIN,
  22        /* Port A */
  23        PA1_DATA, PA0_DATA,
  24        /* Port B */
  25        PB22_DATA, PB21_DATA, PB20_DATA,
  26        PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA,
  27        PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA,
  28        PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA,
  29        PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA,
  30        PB3_DATA, PB2_DATA, PB1_DATA,
  31        /* Port C */
  32        PC8_DATA,
  33        PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA,
  34        PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA,
  35        /* Port D */
  36        PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA,
  37        PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA,
  38        PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA,
  39        PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA,
  40        /* Port E */
  41        PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA,
  42        PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA,
  43        /* Port F */
  44        PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA,
  45        PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA,
  46        PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA,
  47        PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA,
  48        PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA,
  49        PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA,
  50        /* Port G */
  51        PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA,
  52        PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA,
  53        PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA,
  54        PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA,
  55        PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA,
  56        PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA,
  57        PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA,
  58        /* Port H */
  59        /* NOTE - Port H does not have a Data Register, but PH Data is
  60           connected to PH Port Register */
  61        PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA,
  62        PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA,
  63        /* Port I - not on device */
  64        /* Port J */
  65        PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA,
  66        PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA,
  67        PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA,
  68        PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA,
  69        PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA,
  70        PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA,
  71        PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA,
  72        PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA,
  73        PINMUX_DATA_END,
  74
  75        PINMUX_INPUT_BEGIN,
  76        FORCE_IN,
  77        /* Port A */
  78        PA1_IN, PA0_IN,
  79        /* Port B */
  80        PB22_IN, PB21_IN, PB20_IN,
  81        PB19_IN, PB18_IN, PB17_IN, PB16_IN,
  82        PB15_IN, PB14_IN, PB13_IN, PB12_IN,
  83        PB11_IN, PB10_IN, PB9_IN, PB8_IN,
  84        PB7_IN, PB6_IN, PB5_IN, PB4_IN,
  85        PB3_IN, PB2_IN, PB1_IN,
  86        /* Port C */
  87        PC8_IN,
  88        PC7_IN, PC6_IN, PC5_IN, PC4_IN,
  89        PC3_IN, PC2_IN, PC1_IN, PC0_IN,
  90        /* Port D */
  91        PD15_IN, PD14_IN, PD13_IN, PD12_IN,
  92        PD11_IN, PD10_IN, PD9_IN, PD8_IN,
  93        PD7_IN, PD6_IN, PD5_IN, PD4_IN,
  94        PD3_IN, PD2_IN, PD1_IN, PD0_IN,
  95        /* Port E */
  96        PE7_IN, PE6_IN, PE5_IN, PE4_IN,
  97        PE3_IN, PE2_IN, PE1_IN, PE0_IN,
  98        /* Port F */
  99        PF23_IN, PF22_IN, PF21_IN, PF20_IN,
 100        PF19_IN, PF18_IN, PF17_IN, PF16_IN,
 101        PF15_IN, PF14_IN, PF13_IN, PF12_IN,
 102        PF11_IN, PF10_IN, PF9_IN, PF8_IN,
 103        PF7_IN, PF6_IN, PF5_IN, PF4_IN,
 104        PF3_IN, PF2_IN, PF1_IN, PF0_IN,
 105        /* Port G */
 106        PG27_IN, PG26_IN, PG25_IN, PG24_IN,
 107        PG23_IN, PG22_IN, PG21_IN, PG20_IN,
 108        PG19_IN, PG18_IN, PG17_IN, PG16_IN,
 109        PG15_IN, PG14_IN, PG13_IN, PG12_IN,
 110        PG11_IN, PG10_IN, PG9_IN, PG8_IN,
 111        PG7_IN, PG6_IN, PG5_IN, PG4_IN,
 112        PG3_IN, PG2_IN, PG1_IN, PG0_IN,
 113        /* Port H - Port H does not have a Data Register */
 114        /* Port I - not on device */
 115        /* Port J */
 116        PJ31_IN, PJ30_IN, PJ29_IN, PJ28_IN,
 117        PJ27_IN, PJ26_IN, PJ25_IN, PJ24_IN,
 118        PJ23_IN, PJ22_IN, PJ21_IN, PJ20_IN,
 119        PJ19_IN, PJ18_IN, PJ17_IN, PJ16_IN,
 120        PJ15_IN, PJ14_IN, PJ13_IN, PJ12_IN,
 121        PJ11_IN, PJ10_IN, PJ9_IN, PJ8_IN,
 122        PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN,
 123        PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN,
 124        PINMUX_INPUT_END,
 125
 126        PINMUX_OUTPUT_BEGIN,
 127        FORCE_OUT,
 128        /* Port A */
 129        PA1_OUT, PA0_OUT,
 130        /* Port B */
 131        PB22_OUT, PB21_OUT, PB20_OUT,
 132        PB19_OUT, PB18_OUT, PB17_OUT, PB16_OUT,
 133        PB15_OUT, PB14_OUT, PB13_OUT, PB12_OUT,
 134        PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT,
 135        PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT,
 136        PB3_OUT, PB2_OUT, PB1_OUT,
 137        /* Port C */
 138        PC8_OUT,
 139        PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT,
 140        PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT,
 141        /* Port D */
 142        PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT,
 143        PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT,
 144        PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT,
 145        PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT,
 146        /* Port E */
 147        PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT,
 148        PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT,
 149        /* Port F */
 150        PF23_OUT, PF22_OUT, PF21_OUT, PF20_OUT,
 151        PF19_OUT, PF18_OUT, PF17_OUT, PF16_OUT,
 152        PF15_OUT, PF14_OUT, PF13_OUT, PF12_OUT,
 153        PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT,
 154        PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT,
 155        PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT,
 156        /* Port G */
 157        PG27_OUT, PG26_OUT, PG25_OUT, PG24_OUT,
 158        PG23_OUT, PG22_OUT, PG21_OUT, PG20_OUT,
 159        PG19_OUT, PG18_OUT, PG17_OUT, PG16_OUT,
 160        PG15_OUT, PG14_OUT, PG13_OUT, PG12_OUT,
 161        PG11_OUT, PG10_OUT, PG9_OUT, PG8_OUT,
 162        PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT,
 163        PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT,
 164        /* Port H - Port H does not have a Data Register */
 165        /* Port I - not on device */
 166        /* Port J */
 167        PJ31_OUT, PJ30_OUT, PJ29_OUT, PJ28_OUT,
 168        PJ27_OUT, PJ26_OUT, PJ25_OUT, PJ24_OUT,
 169        PJ23_OUT, PJ22_OUT, PJ21_OUT, PJ20_OUT,
 170        PJ19_OUT, PJ18_OUT, PJ17_OUT, PJ16_OUT,
 171        PJ15_OUT, PJ14_OUT, PJ13_OUT, PJ12_OUT,
 172        PJ11_OUT, PJ10_OUT, PJ9_OUT, PJ8_OUT,
 173        PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT,
 174        PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT,
 175        PINMUX_OUTPUT_END,
 176
 177        PINMUX_FUNCTION_BEGIN,
 178        /* Port A */
 179        PA1_IOR_IN, PA1_IOR_OUT,
 180        PA0_IOR_IN, PA0_IOR_OUT,
 181
 182        /* Port B */
 183        PB22_IOR_IN, PB22_IOR_OUT,
 184        PB21_IOR_IN, PB21_IOR_OUT,
 185        PB20_IOR_IN, PB20_IOR_OUT,
 186        PB19_IOR_IN, PB19_IOR_OUT,
 187        PB18_IOR_IN, PB18_IOR_OUT,
 188        PB17_IOR_IN, PB17_IOR_OUT,
 189        PB16_IOR_IN, PB16_IOR_OUT,
 190
 191        PB15_IOR_IN, PB15_IOR_OUT,
 192        PB14_IOR_IN, PB14_IOR_OUT,
 193        PB13_IOR_IN, PB13_IOR_OUT,
 194        PB12_IOR_IN, PB12_IOR_OUT,
 195        PB11_IOR_IN, PB11_IOR_OUT,
 196        PB10_IOR_IN, PB10_IOR_OUT,
 197        PB9_IOR_IN, PB9_IOR_OUT,
 198        PB8_IOR_IN, PB8_IOR_OUT,
 199
 200        PB7_IOR_IN, PB7_IOR_OUT,
 201        PB6_IOR_IN, PB6_IOR_OUT,
 202        PB5_IOR_IN, PB5_IOR_OUT,
 203        PB4_IOR_IN, PB4_IOR_OUT,
 204        PB3_IOR_IN, PB3_IOR_OUT,
 205        PB2_IOR_IN, PB2_IOR_OUT,
 206        PB1_IOR_IN, PB1_IOR_OUT,
 207        PB0_IOR_IN, PB0_IOR_OUT,
 208
 209        PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011,
 210        PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111,
 211        PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11,
 212        PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011,
 213        PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111,
 214        PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011,
 215        PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111,
 216        PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011,
 217        PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111,
 218        PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011,
 219        PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111,
 220        PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011,
 221        PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111,
 222        PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011,
 223        PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111,
 224        PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011,
 225        PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111,
 226        PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011,
 227        PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111,
 228        PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11,
 229
 230        PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11,
 231        PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11,
 232        PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11,
 233        PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11,
 234
 235        PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11,
 236        PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11,
 237        PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11,
 238        PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11,
 239
 240        PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11,
 241        PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11,
 242        PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11,
 243
 244        /* Port C */
 245        PC8_IOR_IN, PC8_IOR_OUT,
 246        PC7_IOR_IN, PC7_IOR_OUT,
 247        PC6_IOR_IN, PC6_IOR_OUT,
 248        PC5_IOR_IN, PC5_IOR_OUT,
 249        PC4_IOR_IN, PC4_IOR_OUT,
 250        PC3_IOR_IN, PC3_IOR_OUT,
 251        PC2_IOR_IN, PC2_IOR_OUT,
 252        PC1_IOR_IN, PC1_IOR_OUT,
 253        PC0_IOR_IN, PC0_IOR_OUT,
 254
 255        PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011,
 256        PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111,
 257        PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011,
 258        PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111,
 259        PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011,
 260        PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111,
 261        PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011,
 262        PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111,
 263        PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11,
 264
 265        PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11,
 266        PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11,
 267        PC1MD_0, PC1MD_1,
 268        PC0MD_0, PC0MD_1,
 269
 270        /* Port D */
 271        PD15_IOR_IN, PD15_IOR_OUT,
 272        PD14_IOR_IN, PD14_IOR_OUT,
 273        PD13_IOR_IN, PD13_IOR_OUT,
 274        PD12_IOR_IN, PD12_IOR_OUT,
 275        PD11_IOR_IN, PD11_IOR_OUT,
 276        PD10_IOR_IN, PD10_IOR_OUT,
 277        PD9_IOR_IN, PD9_IOR_OUT,
 278        PD8_IOR_IN, PD8_IOR_OUT,
 279        PD7_IOR_IN, PD7_IOR_OUT,
 280        PD6_IOR_IN, PD6_IOR_OUT,
 281        PD5_IOR_IN, PD5_IOR_OUT,
 282        PD4_IOR_IN, PD4_IOR_OUT,
 283        PD3_IOR_IN, PD3_IOR_OUT,
 284        PD2_IOR_IN, PD2_IOR_OUT,
 285        PD1_IOR_IN, PD1_IOR_OUT,
 286        PD0_IOR_IN, PD0_IOR_OUT,
 287
 288        PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11,
 289        PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11,
 290        PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11,
 291        PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11,
 292
 293        PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11,
 294        PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11,
 295        PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11,
 296        PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11,
 297
 298        PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11,
 299        PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11,
 300        PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11,
 301        PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11,
 302
 303        PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11,
 304        PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11,
 305        PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11,
 306        PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11,
 307
 308        /* Port E */
 309        PE7_IOR_IN, PE7_IOR_OUT,
 310        PE6_IOR_IN, PE6_IOR_OUT,
 311        PE5_IOR_IN, PE5_IOR_OUT,
 312        PE4_IOR_IN, PE4_IOR_OUT,
 313        PE3_IOR_IN, PE3_IOR_OUT,
 314        PE2_IOR_IN, PE2_IOR_OUT,
 315        PE1_IOR_IN, PE1_IOR_OUT,
 316        PE0_IOR_IN, PE0_IOR_OUT,
 317
 318        PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11,
 319        PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11,
 320        PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11,
 321        PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11,
 322
 323        PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011,
 324        PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111,
 325        PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011,
 326        PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111,
 327        PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011,
 328        PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111,
 329        PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11,
 330
 331        /* Port F */
 332        PF23_IOR_IN, PF23_IOR_OUT,
 333        PF22_IOR_IN, PF22_IOR_OUT,
 334        PF21_IOR_IN, PF21_IOR_OUT,
 335        PF20_IOR_IN, PF20_IOR_OUT,
 336        PF19_IOR_IN, PF19_IOR_OUT,
 337        PF18_IOR_IN, PF18_IOR_OUT,
 338        PF17_IOR_IN, PF17_IOR_OUT,
 339        PF16_IOR_IN, PF16_IOR_OUT,
 340        PF15_IOR_IN, PF15_IOR_OUT,
 341        PF14_IOR_IN, PF14_IOR_OUT,
 342        PF13_IOR_IN, PF13_IOR_OUT,
 343        PF12_IOR_IN, PF12_IOR_OUT,
 344        PF11_IOR_IN, PF11_IOR_OUT,
 345        PF10_IOR_IN, PF10_IOR_OUT,
 346        PF9_IOR_IN, PF9_IOR_OUT,
 347        PF8_IOR_IN, PF8_IOR_OUT,
 348        PF7_IOR_IN, PF7_IOR_OUT,
 349        PF6_IOR_IN, PF6_IOR_OUT,
 350        PF5_IOR_IN, PF5_IOR_OUT,
 351        PF4_IOR_IN, PF4_IOR_OUT,
 352        PF3_IOR_IN, PF3_IOR_OUT,
 353        PF2_IOR_IN, PF2_IOR_OUT,
 354        PF1_IOR_IN, PF1_IOR_OUT,
 355        PF0_IOR_IN, PF0_IOR_OUT,
 356
 357        PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011,
 358        PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111,
 359        PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011,
 360        PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111,
 361        PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011,
 362        PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111,
 363        PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011,
 364        PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111,
 365
 366        PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011,
 367        PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111,
 368        PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011,
 369        PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111,
 370        PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011,
 371        PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111,
 372        PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011,
 373        PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111,
 374
 375        PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011,
 376        PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111,
 377        PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011,
 378        PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111,
 379        PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011,
 380        PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111,
 381        PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011,
 382        PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111,
 383
 384        PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011,
 385        PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111,
 386        PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011,
 387        PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111,
 388        PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011,
 389        PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111,
 390        PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011,
 391        PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111,
 392
 393        PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011,
 394        PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111,
 395        PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011,
 396        PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111,
 397        PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011,
 398        PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111,
 399        PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011,
 400        PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111,
 401
 402        PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011,
 403        PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111,
 404        PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011,
 405        PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111,
 406        PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011,
 407        PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111,
 408        PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011,
 409        PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111,
 410
 411        /* Port G */
 412        PG27_IOR_IN, PG27_IOR_OUT,
 413        PG26_IOR_IN, PG26_IOR_OUT,
 414        PG25_IOR_IN, PG25_IOR_OUT,
 415        PG24_IOR_IN, PG24_IOR_OUT,
 416        PG23_IOR_IN, PG23_IOR_OUT,
 417        PG22_IOR_IN, PG22_IOR_OUT,
 418        PG21_IOR_IN, PG21_IOR_OUT,
 419        PG20_IOR_IN, PG20_IOR_OUT,
 420        PG19_IOR_IN, PG19_IOR_OUT,
 421        PG18_IOR_IN, PG18_IOR_OUT,
 422        PG17_IOR_IN, PG17_IOR_OUT,
 423        PG16_IOR_IN, PG16_IOR_OUT,
 424        PG15_IOR_IN, PG15_IOR_OUT,
 425        PG14_IOR_IN, PG14_IOR_OUT,
 426        PG13_IOR_IN, PG13_IOR_OUT,
 427        PG12_IOR_IN, PG12_IOR_OUT,
 428        PG11_IOR_IN, PG11_IOR_OUT,
 429        PG10_IOR_IN, PG10_IOR_OUT,
 430        PG9_IOR_IN, PG9_IOR_OUT,
 431        PG8_IOR_IN, PG8_IOR_OUT,
 432        PG7_IOR_IN, PG7_IOR_OUT,
 433        PG6_IOR_IN, PG6_IOR_OUT,
 434        PG5_IOR_IN, PG5_IOR_OUT,
 435        PG4_IOR_IN, PG4_IOR_OUT,
 436        PG3_IOR_IN, PG3_IOR_OUT,
 437        PG2_IOR_IN, PG2_IOR_OUT,
 438        PG1_IOR_IN, PG1_IOR_OUT,
 439        PG0_IOR_IN, PG0_IOR_OUT,
 440
 441        PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11,
 442        PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11,
 443        PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11,
 444        PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11,
 445
 446        PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011,
 447        PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111,
 448        PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011,
 449        PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111,
 450        PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011,
 451        PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111,
 452        PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011,
 453        PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111,
 454
 455        PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011,
 456        PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111,
 457        PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011,
 458        PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111,
 459        PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11,
 460        PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11,
 461
 462        PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11,
 463        PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11,
 464        PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11,
 465        PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11,
 466
 467        PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011,
 468        PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111,
 469        PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011,
 470        PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111,
 471        PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011,
 472        PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111,
 473        PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011,
 474        PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111,
 475
 476        PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011,
 477        PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111,
 478        PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011,
 479        PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111,
 480        PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011,
 481        PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111,
 482        PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011,
 483        PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111,
 484
 485        PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011,
 486        PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111,
 487        PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011,
 488        PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111,
 489        PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011,
 490        PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111,
 491        PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011,
 492        PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111,
 493
 494        /* Port H */
 495        PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11,
 496        PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11,
 497        PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11,
 498        PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11,
 499
 500        PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11,
 501        PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11,
 502        PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11,
 503        PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11,
 504
 505        /* Port I - not on device */
 506
 507        /* Port J */
 508        PJ31_IOR_IN, PJ31_IOR_OUT,
 509        PJ30_IOR_IN, PJ30_IOR_OUT,
 510        PJ29_IOR_IN, PJ29_IOR_OUT,
 511        PJ28_IOR_IN, PJ28_IOR_OUT,
 512        PJ27_IOR_IN, PJ27_IOR_OUT,
 513        PJ26_IOR_IN, PJ26_IOR_OUT,
 514        PJ25_IOR_IN, PJ25_IOR_OUT,
 515        PJ24_IOR_IN, PJ24_IOR_OUT,
 516        PJ23_IOR_IN, PJ23_IOR_OUT,
 517        PJ22_IOR_IN, PJ22_IOR_OUT,
 518        PJ21_IOR_IN, PJ21_IOR_OUT,
 519        PJ20_IOR_IN, PJ20_IOR_OUT,
 520        PJ19_IOR_IN, PJ19_IOR_OUT,
 521        PJ18_IOR_IN, PJ18_IOR_OUT,
 522        PJ17_IOR_IN, PJ17_IOR_OUT,
 523        PJ16_IOR_IN, PJ16_IOR_OUT,
 524        PJ15_IOR_IN, PJ15_IOR_OUT,
 525        PJ14_IOR_IN, PJ14_IOR_OUT,
 526        PJ13_IOR_IN, PJ13_IOR_OUT,
 527        PJ12_IOR_IN, PJ12_IOR_OUT,
 528        PJ11_IOR_IN, PJ11_IOR_OUT,
 529        PJ10_IOR_IN, PJ10_IOR_OUT,
 530        PJ9_IOR_IN, PJ9_IOR_OUT,
 531        PJ8_IOR_IN, PJ8_IOR_OUT,
 532        PJ7_IOR_IN, PJ7_IOR_OUT,
 533        PJ6_IOR_IN, PJ6_IOR_OUT,
 534        PJ5_IOR_IN, PJ5_IOR_OUT,
 535        PJ4_IOR_IN, PJ4_IOR_OUT,
 536        PJ3_IOR_IN, PJ3_IOR_OUT,
 537        PJ2_IOR_IN, PJ2_IOR_OUT,
 538        PJ1_IOR_IN, PJ1_IOR_OUT,
 539        PJ0_IOR_IN, PJ0_IOR_OUT,
 540
 541        PJ31MD_0, PJ31MD_1,
 542        PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011,
 543        PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111,
 544        PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011,
 545        PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111,
 546        PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011,
 547        PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111,
 548
 549        PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011,
 550        PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111,
 551        PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011,
 552        PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111,
 553        PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011,
 554        PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111,
 555        PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011,
 556        PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111,
 557
 558        PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011,
 559        PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111,
 560        PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011,
 561        PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111,
 562        PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011,
 563        PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111,
 564        PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011,
 565        PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111,
 566
 567        PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011,
 568        PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111,
 569        PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011,
 570        PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111,
 571        PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011,
 572        PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111,
 573        PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011,
 574        PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111,
 575
 576        PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011,
 577        PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111,
 578        PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011,
 579        PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111,
 580        PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011,
 581        PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111,
 582        PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011,
 583        PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111,
 584
 585        PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011,
 586        PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111,
 587        PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011,
 588        PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111,
 589        PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011,
 590        PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111,
 591        PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011,
 592        PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111,
 593
 594        PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011,
 595        PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111,
 596        PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011,
 597        PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111,
 598        PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011,
 599        PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111,
 600        PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011,
 601        PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111,
 602
 603        PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011,
 604        PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111,
 605        PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011,
 606        PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111,
 607        PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011,
 608        PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111,
 609        PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011,
 610        PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111,
 611
 612        PINMUX_FUNCTION_END,
 613
 614        PINMUX_MARK_BEGIN,
 615        /* Port H */
 616        PHAN7_MARK, PHAN6_MARK, PHAN5_MARK, PHAN4_MARK,
 617        PHAN3_MARK, PHAN2_MARK, PHAN1_MARK, PHAN0_MARK,
 618
 619        /* IRQs */
 620        IRQ7_PG_MARK, IRQ6_PG_MARK, IRQ5_PG_MARK, IRQ4_PG_MARK,
 621        IRQ3_PG_MARK, IRQ2_PG_MARK, IRQ1_PG_MARK, IRQ0_PG_MARK,
 622        IRQ7_PF_MARK, IRQ6_PF_MARK, IRQ5_PF_MARK, IRQ4_PF_MARK,
 623        IRQ3_PJ_MARK, IRQ2_PJ_MARK, IRQ1_PJ_MARK, IRQ0_PJ_MARK,
 624        IRQ1_PC_MARK, IRQ0_PC_MARK,
 625
 626        PINT7_PG_MARK, PINT6_PG_MARK, PINT5_PG_MARK, PINT4_PG_MARK,
 627        PINT3_PG_MARK, PINT2_PG_MARK, PINT1_PG_MARK, PINT0_PG_MARK,
 628        PINT7_PH_MARK, PINT6_PH_MARK, PINT5_PH_MARK, PINT4_PH_MARK,
 629        PINT3_PH_MARK, PINT2_PH_MARK, PINT1_PH_MARK, PINT0_PH_MARK,
 630        PINT7_PJ_MARK, PINT6_PJ_MARK, PINT5_PJ_MARK, PINT4_PJ_MARK,
 631        PINT3_PJ_MARK, PINT2_PJ_MARK, PINT1_PJ_MARK, PINT0_PJ_MARK,
 632
 633        /* SD */
 634        SD_D0_MARK, SD_D1_MARK, SD_D2_MARK, SD_D3_MARK,
 635        SD_WP_MARK, SD_CLK_MARK, SD_CMD_MARK, SD_CD_MARK,
 636
 637        /* MMC */
 638        MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK,
 639        MMC_D4_MARK, MMC_D5_MARK, MMC_D6_MARK, MMC_D7_MARK,
 640        MMC_CLK_MARK, MMC_CMD_MARK, MMC_CD_MARK,
 641
 642        /* PWM */
 643        PWM1A_MARK, PWM1B_MARK, PWM1C_MARK, PWM1D_MARK,
 644        PWM1E_MARK, PWM1F_MARK, PWM1G_MARK, PWM1H_MARK,
 645        PWM2A_MARK, PWM2B_MARK, PWM2C_MARK, PWM2D_MARK,
 646        PWM2E_MARK, PWM2F_MARK, PWM2G_MARK, PWM2H_MARK,
 647
 648        /* IEBus */
 649        IERXD_MARK, IETXD_MARK,
 650
 651        /* WDT */
 652        WDTOVF_MARK,
 653
 654        /* DMAC */
 655        TEND0_MARK, DACK0_MARK, DREQ0_MARK,
 656        TEND1_MARK, DACK1_MARK, DREQ1_MARK,
 657
 658        /* ADC */
 659        ADTRG_MARK,
 660
 661        /* BSC */
 662        A25_MARK, A24_MARK,
 663        A23_MARK, A22_MARK, A21_MARK, A20_MARK,
 664        A19_MARK, A18_MARK, A17_MARK, A16_MARK,
 665        A15_MARK, A14_MARK, A13_MARK, A12_MARK,
 666        A11_MARK, A10_MARK, A9_MARK, A8_MARK,
 667        A7_MARK, A6_MARK, A5_MARK, A4_MARK,
 668        A3_MARK, A2_MARK, A1_MARK, A0_MARK,
 669        D31_MARK, D30_MARK, D29_MARK, D28_MARK,
 670        D27_MARK, D26_MARK, D25_MARK, D24_MARK,
 671        D23_MARK, D22_MARK, D21_MARK, D20_MARK,
 672        D19_MARK, D18_MARK, D17_MARK, D16_MARK,
 673        D15_MARK, D14_MARK, D13_MARK, D12_MARK,
 674        D11_MARK, D10_MARK, D9_MARK, D8_MARK,
 675        D7_MARK, D6_MARK, D5_MARK, D4_MARK,
 676        D3_MARK, D2_MARK, D1_MARK, D0_MARK,
 677        BS_MARK,
 678        CS4_MARK, CS3_MARK, CS2_MARK, CS1_MARK, CS0_MARK,
 679        CS5CE1A_MARK,
 680        CE2A_MARK, CE2B_MARK,
 681        RD_MARK, RDWR_MARK,
 682        WE3ICIOWRAHDQMUU_MARK,
 683        WE2ICIORDDQMUL_MARK,
 684        WE1DQMUWE_MARK,
 685        WE0DQML_MARK,
 686        RAS_MARK, CAS_MARK, CKE_MARK,
 687        WAIT_MARK, BREQ_MARK, BACK_MARK, IOIS16_MARK,
 688
 689        /* TMU */
 690        TIOC0A_MARK, TIOC0B_MARK, TIOC0C_MARK, TIOC0D_MARK,
 691        TIOC1A_MARK, TIOC1B_MARK,
 692        TIOC2A_MARK, TIOC2B_MARK,
 693        TIOC3A_MARK, TIOC3B_MARK, TIOC3C_MARK, TIOC3D_MARK,
 694        TIOC4A_MARK, TIOC4B_MARK, TIOC4C_MARK, TIOC4D_MARK,
 695        TCLKA_MARK, TCLKB_MARK, TCLKC_MARK, TCLKD_MARK,
 696
 697        /* SCIF */
 698        SCK0_MARK, RXD0_MARK, TXD0_MARK,
 699        SCK1_MARK, RXD1_MARK, TXD1_MARK, RTS1_MARK, CTS1_MARK,
 700        SCK2_MARK, RXD2_MARK, TXD2_MARK,
 701        SCK3_MARK, RXD3_MARK, TXD3_MARK,
 702        SCK4_MARK, RXD4_MARK, TXD4_MARK,
 703        SCK5_MARK, RXD5_MARK, TXD5_MARK, RTS5_MARK, CTS5_MARK,
 704        SCK6_MARK, RXD6_MARK, TXD6_MARK,
 705        SCK7_MARK, RXD7_MARK, TXD7_MARK, RTS7_MARK, CTS7_MARK,
 706
 707        /* RSPI */
 708        MISO0_PB20_MARK, MOSI0_PB19_MARK, SSL00_PB18_MARK, RSPCK0_PB17_MARK,
 709        MISO0_PJ19_MARK, MOSI0_PJ18_MARK, SSL00_PJ17_MARK, RSPCK0_PJ16_MARK,
 710        MISO1_MARK, MOSI1_MARK, SSL10_MARK, RSPCK1_MARK,
 711
 712        /* IIC3 */
 713        SCL0_MARK, SDA0_MARK,
 714        SCL1_MARK, SDA1_MARK,
 715        SCL2_MARK, SDA2_MARK,
 716        SCL3_MARK, SDA3_MARK,
 717
 718        /* SSI */
 719        SSISCK0_MARK, SSIWS0_MARK, SSITXD0_MARK, SSIRXD0_MARK,
 720        SSISCK1_MARK, SSIWS1_MARK, SSIDATA1_MARK,
 721        SSISCK2_MARK, SSIWS2_MARK, SSIDATA2_MARK,
 722        SSISCK3_MARK, SSIWS3_MARK, SSIDATA3_MARK,
 723        SSISCK4_MARK, SSIWS4_MARK, SSIDATA4_MARK,
 724        SSISCK5_MARK, SSIWS5_MARK, SSIDATA5_MARK,
 725        AUDIO_CLK_MARK,
 726        AUDIO_XOUT_MARK,
 727
 728        /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */
 729        SIOFTXD_MARK, SIOFRXD_MARK, SIOFSYNC_MARK, SIOFSCK_MARK,
 730
 731        /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */
 732        SPDIF_IN_MARK, SPDIF_OUT_MARK,
 733        SPDIF_IN_PJ24_MARK, SPDIF_OUT_PJ25_MARK,
 734
 735        /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */
 736        FCE_MARK,
 737        FRB_MARK,
 738
 739        /* CAN */
 740        CRX0_MARK, CTX0_MARK,
 741        CRX1_MARK, CTX1_MARK,
 742        CRX2_MARK, CTX2_MARK,
 743        CRX0_CRX1_MARK,
 744        CRX0_CRX1_CRX2_MARK,
 745        CTX0CTX1CTX2_MARK,
 746        CRX1_PJ22_MARK, CTX1_PJ23_MARK,
 747        CRX2_PJ20_MARK, CTX2_PJ21_MARK,
 748        CRX0CRX1_PJ22_MARK,
 749        CRX0CRX1CRX2_PJ20_MARK,
 750
 751        /* VDC */
 752        DV_CLK_MARK,
 753        DV_VSYNC_MARK, DV_HSYNC_MARK,
 754        DV_DATA23_MARK, DV_DATA22_MARK, DV_DATA21_MARK, DV_DATA20_MARK,
 755        DV_DATA19_MARK, DV_DATA18_MARK, DV_DATA17_MARK, DV_DATA16_MARK,
 756        DV_DATA15_MARK, DV_DATA14_MARK, DV_DATA13_MARK, DV_DATA12_MARK,
 757        DV_DATA11_MARK, DV_DATA10_MARK, DV_DATA9_MARK, DV_DATA8_MARK,
 758        DV_DATA7_MARK, DV_DATA6_MARK, DV_DATA5_MARK, DV_DATA4_MARK,
 759        DV_DATA3_MARK, DV_DATA2_MARK, DV_DATA1_MARK, DV_DATA0_MARK,
 760        LCD_CLK_MARK, LCD_EXTCLK_MARK,
 761        LCD_VSYNC_MARK, LCD_HSYNC_MARK, LCD_DE_MARK,
 762        LCD_DATA23_PG23_MARK, LCD_DATA22_PG22_MARK, LCD_DATA21_PG21_MARK,
 763        LCD_DATA20_PG20_MARK, LCD_DATA19_PG19_MARK, LCD_DATA18_PG18_MARK,
 764        LCD_DATA17_PG17_MARK, LCD_DATA16_PG16_MARK, LCD_DATA15_PG15_MARK,
 765        LCD_DATA14_PG14_MARK, LCD_DATA13_PG13_MARK, LCD_DATA12_PG12_MARK,
 766        LCD_DATA11_PG11_MARK, LCD_DATA10_PG10_MARK, LCD_DATA9_PG9_MARK,
 767        LCD_DATA8_PG8_MARK, LCD_DATA7_PG7_MARK, LCD_DATA6_PG6_MARK,
 768        LCD_DATA5_PG5_MARK, LCD_DATA4_PG4_MARK, LCD_DATA3_PG3_MARK,
 769        LCD_DATA2_PG2_MARK, LCD_DATA1_PG1_MARK, LCD_DATA0_PG0_MARK,
 770        LCD_DATA23_PJ23_MARK, LCD_DATA22_PJ22_MARK, LCD_DATA21_PJ21_MARK,
 771        LCD_DATA20_PJ20_MARK, LCD_DATA19_PJ19_MARK, LCD_DATA18_PJ18_MARK,
 772        LCD_DATA17_PJ17_MARK, LCD_DATA16_PJ16_MARK, LCD_DATA15_PJ15_MARK,
 773        LCD_DATA14_PJ14_MARK, LCD_DATA13_PJ13_MARK, LCD_DATA12_PJ12_MARK,
 774        LCD_DATA11_PJ11_MARK, LCD_DATA10_PJ10_MARK, LCD_DATA9_PJ9_MARK,
 775        LCD_DATA8_PJ8_MARK, LCD_DATA7_PJ7_MARK, LCD_DATA6_PJ6_MARK,
 776        LCD_DATA5_PJ5_MARK, LCD_DATA4_PJ4_MARK, LCD_DATA3_PJ3_MARK,
 777        LCD_DATA2_PJ2_MARK, LCD_DATA1_PJ1_MARK, LCD_DATA0_PJ0_MARK,
 778        LCD_TCON6_MARK, LCD_TCON5_MARK, LCD_TCON4_MARK,
 779        LCD_TCON3_MARK, LCD_TCON2_MARK, LCD_TCON1_MARK, LCD_TCON0_MARK,
 780        LCD_M_DISP_MARK,
 781        PINMUX_MARK_END,
 782};
 783
 784static const pinmux_enum_t pinmux_data[] = {
 785
 786        /* Port A */
 787        PINMUX_DATA(PA1_DATA, PA1_IN),
 788        PINMUX_DATA(PA0_DATA, PA0_IN),
 789
 790        /* Port B */
 791        PINMUX_DATA(PB22_DATA, PB22MD_000, PB22_IN, PB22_OUT),
 792        PINMUX_DATA(A22_MARK, PB22MD_001),
 793        PINMUX_DATA(CTX2_MARK, PB22MD_010),
 794        PINMUX_DATA(IETXD_MARK, PB22MD_011),
 795        PINMUX_DATA(CS4_MARK, PB22MD_100),
 796
 797        PINMUX_DATA(PB21_DATA, PB21MD_00, PB21_IN, PB21_OUT),
 798        PINMUX_DATA(A21_MARK, PB21MD_01),
 799        PINMUX_DATA(CRX2_MARK, PB21MD_10),
 800        PINMUX_DATA(IERXD_MARK, PB21MD_11),
 801
 802        PINMUX_DATA(A20_MARK, PB20MD_001),
 803        PINMUX_DATA(A19_MARK, PB19MD_001),
 804        PINMUX_DATA(A18_MARK, PB18MD_001),
 805        PINMUX_DATA(A17_MARK, PB17MD_001),
 806        PINMUX_DATA(A16_MARK, PB16MD_001),
 807        PINMUX_DATA(A15_MARK, PB15MD_001),
 808        PINMUX_DATA(A14_MARK, PB14MD_001),
 809        PINMUX_DATA(A13_MARK, PB13MD_001),
 810        PINMUX_DATA(A12_MARK, PB12MD_01),
 811        PINMUX_DATA(A11_MARK, PB11MD_01),
 812        PINMUX_DATA(A10_MARK, PB10MD_01),
 813        PINMUX_DATA(A9_MARK, PB9MD_01),
 814        PINMUX_DATA(A8_MARK, PB8MD_01),
 815        PINMUX_DATA(A7_MARK, PB7MD_01),
 816        PINMUX_DATA(A6_MARK, PB6MD_01),
 817        PINMUX_DATA(A5_MARK, PB5MD_01),
 818        PINMUX_DATA(A4_MARK, PB4MD_01),
 819        PINMUX_DATA(A3_MARK, PB3MD_01),
 820        PINMUX_DATA(A2_MARK, PB2MD_01),
 821        PINMUX_DATA(A1_MARK, PB1MD_01),
 822
 823        /* Port C */
 824        PINMUX_DATA(PC8_DATA, PC8MD_000),
 825        PINMUX_DATA(CS3_MARK, PC8MD_001),
 826        PINMUX_DATA(TXD7_MARK, PC8MD_010),
 827        PINMUX_DATA(CTX1_MARK, PC8MD_011),
 828
 829        PINMUX_DATA(PC7_DATA, PC7MD_000),
 830        PINMUX_DATA(CKE_MARK, PC7MD_001),
 831        PINMUX_DATA(RXD7_MARK, PC7MD_010),
 832        PINMUX_DATA(CRX1_MARK, PC7MD_011),
 833        PINMUX_DATA(CRX0_CRX1_MARK, PC7MD_100),
 834        PINMUX_DATA(IRQ1_PC_MARK, PC7MD_101),
 835
 836        PINMUX_DATA(PC6_DATA, PC6MD_000),
 837        PINMUX_DATA(CAS_MARK, PC6MD_001),
 838        PINMUX_DATA(SCK7_MARK, PC6MD_010),
 839        PINMUX_DATA(CTX0_MARK, PC6MD_011),
 840
 841        PINMUX_DATA(PC5_DATA, PC5MD_000),
 842        PINMUX_DATA(RAS_MARK, PC5MD_001),
 843        PINMUX_DATA(CRX0_MARK, PC5MD_011),
 844        PINMUX_DATA(CTX0CTX1CTX2_MARK, PC5MD_100),
 845        PINMUX_DATA(IRQ0_PC_MARK, PC5MD_101),
 846
 847        PINMUX_DATA(PC4_DATA, PC4MD_00),
 848        PINMUX_DATA(WE1DQMUWE_MARK, PC4MD_01),
 849        PINMUX_DATA(TXD6_MARK, PC4MD_10),
 850
 851        PINMUX_DATA(PC3_DATA, PC3MD_00),
 852        PINMUX_DATA(WE0DQML_MARK, PC3MD_01),
 853        PINMUX_DATA(RXD6_MARK, PC3MD_10),
 854
 855        PINMUX_DATA(PC2_DATA, PC2MD_00),
 856        PINMUX_DATA(RDWR_MARK, PC2MD_01),
 857        PINMUX_DATA(SCK5_MARK, PC2MD_10),
 858
 859        PINMUX_DATA(PC1_DATA, PC1MD_0),
 860        PINMUX_DATA(RD_MARK, PC1MD_1),
 861
 862        PINMUX_DATA(PC0_DATA, PC0MD_0),
 863        PINMUX_DATA(CS0_MARK, PC0MD_1),
 864
 865        /* Port D */
 866        PINMUX_DATA(D15_MARK, PD15MD_01),
 867        PINMUX_DATA(D14_MARK, PD14MD_01),
 868
 869        PINMUX_DATA(PD13_DATA, PD13MD_00),
 870        PINMUX_DATA(D13_MARK, PD13MD_01),
 871        PINMUX_DATA(PWM2F_MARK, PD13MD_10),
 872
 873        PINMUX_DATA(PD12_DATA, PD12MD_00),
 874        PINMUX_DATA(D12_MARK, PD12MD_01),
 875        PINMUX_DATA(PWM2E_MARK, PD12MD_10),
 876
 877        PINMUX_DATA(D11_MARK, PD11MD_01),
 878        PINMUX_DATA(D10_MARK, PD10MD_01),
 879        PINMUX_DATA(D9_MARK, PD9MD_01),
 880        PINMUX_DATA(D8_MARK, PD8MD_01),
 881        PINMUX_DATA(D7_MARK, PD7MD_01),
 882        PINMUX_DATA(D6_MARK, PD6MD_01),
 883        PINMUX_DATA(D5_MARK, PD5MD_01),
 884        PINMUX_DATA(D4_MARK, PD4MD_01),
 885        PINMUX_DATA(D3_MARK, PD3MD_01),
 886        PINMUX_DATA(D2_MARK, PD2MD_01),
 887        PINMUX_DATA(D1_MARK, PD1MD_01),
 888        PINMUX_DATA(D0_MARK, PD0MD_01),
 889
 890        /* Port E */
 891        PINMUX_DATA(PE7_DATA, PE7MD_00),
 892        PINMUX_DATA(SDA3_MARK, PE7MD_01),
 893        PINMUX_DATA(RXD7_MARK, PE7MD_10),
 894
 895        PINMUX_DATA(PE6_DATA, PE6MD_00),
 896        PINMUX_DATA(SCL3_MARK, PE6MD_01),
 897        PINMUX_DATA(RXD6_MARK, PE6MD_10),
 898
 899        PINMUX_DATA(PE5_DATA, PE5MD_00),
 900        PINMUX_DATA(SDA2_MARK, PE5MD_01),
 901        PINMUX_DATA(RXD5_MARK, PE5MD_10),
 902        PINMUX_DATA(DV_HSYNC_MARK, PE5MD_11),
 903
 904        PINMUX_DATA(PE4_DATA, PE4MD_00),
 905        PINMUX_DATA(SCL2_MARK, PE4MD_01),
 906        PINMUX_DATA(DV_VSYNC_MARK, PE4MD_11),
 907
 908        PINMUX_DATA(PE3_DATA, PE3MD_000),
 909        PINMUX_DATA(SDA1_MARK, PE3MD_001),
 910        PINMUX_DATA(TCLKD_MARK, PE3MD_010),
 911        PINMUX_DATA(ADTRG_MARK, PE3MD_011),
 912        PINMUX_DATA(DV_HSYNC_MARK, PE3MD_100),
 913
 914        PINMUX_DATA(PE2_DATA, PE2MD_000),
 915        PINMUX_DATA(SCL1_MARK, PE2MD_001),
 916        PINMUX_DATA(TCLKD_MARK, PE2MD_010),
 917        PINMUX_DATA(IOIS16_MARK, PE2MD_011),
 918        PINMUX_DATA(DV_VSYNC_MARK, PE2MD_100),
 919
 920        PINMUX_DATA(PE1_DATA, PE1MD_000),
 921        PINMUX_DATA(SDA0_MARK, PE1MD_001),
 922        PINMUX_DATA(TCLKB_MARK, PE1MD_010),
 923        PINMUX_DATA(AUDIO_CLK_MARK, PE1MD_010),
 924        PINMUX_DATA(DV_CLK_MARK, PE1MD_100),
 925
 926        PINMUX_DATA(PE0_DATA, PE0MD_00),
 927        PINMUX_DATA(SCL0_MARK, PE0MD_01),
 928        PINMUX_DATA(TCLKA_MARK, PE0MD_10),
 929        PINMUX_DATA(LCD_EXTCLK_MARK, PE0MD_11),
 930
 931        /* Port F */
 932        PINMUX_DATA(PF23_DATA, PF23MD_000),
 933        PINMUX_DATA(SD_D2_MARK, PF23MD_001),
 934        PINMUX_DATA(TXD3_MARK, PF23MD_100),
 935        PINMUX_DATA(MMC_D2_MARK, PF23MD_101),
 936
 937        PINMUX_DATA(PF22_DATA, PF22MD_000),
 938        PINMUX_DATA(SD_D3_MARK, PF22MD_001),
 939        PINMUX_DATA(RXD3_MARK, PF22MD_100),
 940        PINMUX_DATA(MMC_D3_MARK, PF22MD_101),
 941
 942        PINMUX_DATA(PF21_DATA, PF21MD_000),
 943        PINMUX_DATA(SD_CMD_MARK, PF21MD_001),
 944        PINMUX_DATA(SCK3_MARK, PF21MD_100),
 945        PINMUX_DATA(MMC_CMD_MARK, PF21MD_101),
 946
 947        PINMUX_DATA(PF20_DATA, PF20MD_000),
 948        PINMUX_DATA(SD_CLK_MARK, PF20MD_001),
 949        PINMUX_DATA(SSIDATA3_MARK, PF20MD_010),
 950        PINMUX_DATA(MMC_CLK_MARK, PF20MD_101),
 951
 952        PINMUX_DATA(PF19_DATA, PF19MD_000),
 953        PINMUX_DATA(SD_D0_MARK, PF19MD_001),
 954        PINMUX_DATA(SSIWS3_MARK, PF19MD_010),
 955        PINMUX_DATA(IRQ7_PF_MARK, PF19MD_100),
 956        PINMUX_DATA(MMC_D0_MARK, PF19MD_101),
 957
 958        PINMUX_DATA(PF18_DATA, PF18MD_000),
 959        PINMUX_DATA(SD_D1_MARK, PF18MD_001),
 960        PINMUX_DATA(SSISCK3_MARK, PF18MD_010),
 961        PINMUX_DATA(IRQ6_PF_MARK, PF18MD_100),
 962        PINMUX_DATA(MMC_D1_MARK, PF18MD_101),
 963
 964        PINMUX_DATA(PF17_DATA, PF17MD_000),
 965        PINMUX_DATA(SD_WP_MARK, PF17MD_001),
 966        PINMUX_DATA(FRB_MARK, PF17MD_011),
 967        PINMUX_DATA(IRQ5_PF_MARK, PF17MD_100),
 968
 969        PINMUX_DATA(PF16_DATA, PF16MD_000),
 970        PINMUX_DATA(SD_CD_MARK, PF16MD_001),
 971        PINMUX_DATA(FCE_MARK, PF16MD_011),
 972        PINMUX_DATA(IRQ4_PF_MARK, PF16MD_100),
 973        PINMUX_DATA(MMC_CD_MARK, PF16MD_101),
 974
 975        PINMUX_DATA(PF15_DATA, PF15MD_000),
 976        PINMUX_DATA(A0_MARK, PF15MD_001),
 977        PINMUX_DATA(SSIDATA2_MARK, PF15MD_010),
 978        PINMUX_DATA(WDTOVF_MARK, PF15MD_011),
 979        PINMUX_DATA(TXD2_MARK, PF15MD_100),
 980
 981        PINMUX_DATA(PF14_DATA, PF14MD_000),
 982        PINMUX_DATA(A25_MARK, PF14MD_001),
 983        PINMUX_DATA(SSIWS2_MARK, PF14MD_010),
 984        PINMUX_DATA(RXD2_MARK, PF14MD_100),
 985
 986        PINMUX_DATA(PF13_DATA, PF13MD_000),
 987        PINMUX_DATA(A24_MARK, PF13MD_001),
 988        PINMUX_DATA(SSISCK2_MARK, PF13MD_010),
 989        PINMUX_DATA(SCK2_MARK, PF13MD_100),
 990
 991        PINMUX_DATA(PF12_DATA, PF12MD_000),
 992        PINMUX_DATA(SSIDATA1_MARK, PF12MD_010),
 993        PINMUX_DATA(DV_DATA12_MARK, PF12MD_011),
 994        PINMUX_DATA(TXD1_MARK, PF12MD_100),
 995        PINMUX_DATA(MMC_D7_MARK, PF12MD_101),
 996
 997        PINMUX_DATA(PF11_DATA, PF11MD_000),
 998        PINMUX_DATA(SSIWS1_MARK, PF11MD_010),
 999        PINMUX_DATA(DV_DATA2_MARK, PF11MD_011),
1000        PINMUX_DATA(RXD1_MARK, PF11MD_100),
1001        PINMUX_DATA(MMC_D6_MARK, PF11MD_101),
1002
1003        PINMUX_DATA(PF10_DATA, PF10MD_000),
1004        PINMUX_DATA(CS1_MARK, PF10MD_001),
1005        PINMUX_DATA(SSISCK1_MARK, PF10MD_010),
1006        PINMUX_DATA(DV_DATA1_MARK, PF10MD_011),
1007        PINMUX_DATA(SCK1_MARK, PF10MD_100),
1008        PINMUX_DATA(MMC_D5_MARK, PF10MD_101),
1009
1010        PINMUX_DATA(PF9_DATA, PF9MD_000),
1011        PINMUX_DATA(BS_MARK, PF9MD_001),
1012        PINMUX_DATA(DV_DATA0_MARK, PF9MD_011),
1013        PINMUX_DATA(SCK0_MARK, PF9MD_100),
1014        PINMUX_DATA(MMC_D4_MARK, PF9MD_101),
1015        PINMUX_DATA(RTS1_MARK, PF9MD_110),
1016
1017        PINMUX_DATA(PF8_DATA, PF8MD_000),
1018        PINMUX_DATA(A23_MARK, PF8MD_001),
1019        PINMUX_DATA(TXD0_MARK, PF8MD_100),
1020
1021        PINMUX_DATA(PF7_DATA, PF7MD_000),
1022        PINMUX_DATA(SSIRXD0_MARK, PF7MD_010),
1023        PINMUX_DATA(RXD0_MARK, PF7MD_100),
1024        PINMUX_DATA(CTS1_MARK, PF7MD_110),
1025
1026        PINMUX_DATA(PF6_DATA, PF6MD_000),
1027        PINMUX_DATA(CE2A_MARK, PF6MD_001),
1028        PINMUX_DATA(SSITXD0_MARK, PF6MD_010),
1029
1030        PINMUX_DATA(PF5_DATA, PF5MD_000),
1031        PINMUX_DATA(SSIWS0_MARK, PF5MD_010),
1032
1033        PINMUX_DATA(PF4_DATA, PF4MD_000),
1034        PINMUX_DATA(CS5CE1A_MARK, PF4MD_001),
1035        PINMUX_DATA(SSISCK0_MARK, PF4MD_010),
1036
1037        PINMUX_DATA(PF3_DATA, PF3MD_000),
1038        PINMUX_DATA(CS2_MARK, PF3MD_001),
1039        PINMUX_DATA(MISO1_MARK, PF3MD_011),
1040        PINMUX_DATA(TIOC4D_MARK, PF3MD_100),
1041
1042        PINMUX_DATA(PF2_DATA, PF2MD_000),
1043        PINMUX_DATA(WAIT_MARK, PF2MD_001),
1044        PINMUX_DATA(MOSI1_MARK, PF2MD_011),
1045        PINMUX_DATA(TIOC4C_MARK, PF2MD_100),
1046        PINMUX_DATA(TEND0_MARK, PF2MD_101),
1047
1048        PINMUX_DATA(PF1_DATA, PF1MD_000),
1049        PINMUX_DATA(BACK_MARK, PF1MD_001),
1050        PINMUX_DATA(SSL10_MARK, PF1MD_011),
1051        PINMUX_DATA(TIOC4B_MARK, PF1MD_100),
1052        PINMUX_DATA(DACK0_MARK, PF1MD_101),
1053
1054        PINMUX_DATA(PF0_DATA, PF0MD_000),
1055        PINMUX_DATA(BREQ_MARK, PF0MD_001),
1056        PINMUX_DATA(RSPCK1_MARK, PF0MD_011),
1057        PINMUX_DATA(TIOC4A_MARK, PF0MD_100),
1058        PINMUX_DATA(DREQ0_MARK, PF0MD_101),
1059
1060        /* Port G */
1061        PINMUX_DATA(PG27_DATA, PG27MD_00),
1062        PINMUX_DATA(LCD_TCON2_MARK, PG27MD_10),
1063        PINMUX_DATA(LCD_EXTCLK_MARK, PG27MD_11),
1064        PINMUX_DATA(LCD_DE_MARK, PG27MD_11),
1065
1066        PINMUX_DATA(PG26_DATA, PG26MD_00),
1067        PINMUX_DATA(LCD_TCON1_MARK, PG26MD_10),
1068        PINMUX_DATA(LCD_HSYNC_MARK, PG26MD_10),
1069
1070        PINMUX_DATA(PG25_DATA, PG25MD_00),
1071        PINMUX_DATA(LCD_TCON0_MARK, PG25MD_10),
1072        PINMUX_DATA(LCD_VSYNC_MARK, PG25MD_10),
1073
1074        PINMUX_DATA(PG24_DATA, PG24MD_00),
1075        PINMUX_DATA(LCD_CLK_MARK, PG24MD_10),
1076
1077        PINMUX_DATA(PG23_DATA, PG23MD_000),
1078        PINMUX_DATA(LCD_DATA23_PG23_MARK, PG23MD_010),
1079        PINMUX_DATA(LCD_TCON6_MARK, PG23MD_011),
1080        PINMUX_DATA(TXD5_MARK, PG23MD_100),
1081
1082        PINMUX_DATA(PG22_DATA, PG22MD_000),
1083        PINMUX_DATA(LCD_DATA22_PG22_MARK, PG22MD_010),
1084        PINMUX_DATA(LCD_TCON5_MARK, PG22MD_011),
1085        PINMUX_DATA(RXD5_MARK, PG22MD_100),
1086
1087        PINMUX_DATA(PG21_DATA, PG21MD_000),
1088        PINMUX_DATA(DV_DATA7_MARK, PG21MD_001),
1089        PINMUX_DATA(LCD_DATA21_PG21_MARK, PG21MD_010),
1090        PINMUX_DATA(LCD_TCON4_MARK, PG21MD_011),
1091        PINMUX_DATA(TXD4_MARK, PG21MD_100),
1092
1093        PINMUX_DATA(PG20_DATA, PG20MD_000),
1094        PINMUX_DATA(DV_DATA6_MARK, PG20MD_001),
1095        PINMUX_DATA(LCD_DATA20_PG20_MARK, PG21MD_010),
1096        PINMUX_DATA(LCD_TCON3_MARK, PG20MD_011),
1097        PINMUX_DATA(RXD4_MARK, PG20MD_100),
1098
1099        PINMUX_DATA(PG19_DATA, PG19MD_000),
1100        PINMUX_DATA(DV_DATA5_MARK, PG19MD_001),
1101        PINMUX_DATA(LCD_DATA19_PG19_MARK, PG19MD_010),
1102        PINMUX_DATA(SPDIF_OUT_MARK, PG19MD_011),
1103        PINMUX_DATA(SCK5_MARK, PG19MD_100),
1104
1105        PINMUX_DATA(PG18_DATA, PG18MD_000),
1106        PINMUX_DATA(DV_DATA4_MARK, PG18MD_001),
1107        PINMUX_DATA(LCD_DATA18_PG18_MARK, PG18MD_010),
1108        PINMUX_DATA(SPDIF_IN_MARK, PG18MD_011),
1109        PINMUX_DATA(SCK4_MARK, PG18MD_100),
1110
1111// TODO hardware manual has PG17 3 bits wide in reg picture and 2 bits in description
1112// we're going with 2 bits
1113        PINMUX_DATA(PG17_DATA, PG17MD_00),
1114        PINMUX_DATA(WE3ICIOWRAHDQMUU_MARK, PG17MD_01),
1115        PINMUX_DATA(LCD_DATA17_PG17_MARK, PG17MD_10),
1116
1117// TODO hardware manual has PG16 3 bits wide in reg picture and 2 bits in description
1118// we're going with 2 bits
1119        PINMUX_DATA(PG16_DATA, PG16MD_00),
1120        PINMUX_DATA(WE2ICIORDDQMUL_MARK, PG16MD_01),
1121        PINMUX_DATA(LCD_DATA16_PG16_MARK, PG16MD_10),
1122
1123        PINMUX_DATA(PG15_DATA, PG15MD_00),
1124        PINMUX_DATA(D31_MARK, PG15MD_01),
1125        PINMUX_DATA(LCD_DATA15_PG15_MARK, PG15MD_10),
1126        PINMUX_DATA(PINT7_PG_MARK, PG15MD_11),
1127
1128        PINMUX_DATA(PG14_DATA, PG14MD_00),
1129        PINMUX_DATA(D30_MARK, PG14MD_01),
1130        PINMUX_DATA(LCD_DATA14_PG14_MARK, PG14MD_10),
1131        PINMUX_DATA(PINT6_PG_MARK, PG14MD_11),
1132
1133        PINMUX_DATA(PG13_DATA, PG13MD_00),
1134        PINMUX_DATA(D29_MARK, PG13MD_01),
1135        PINMUX_DATA(LCD_DATA13_PG13_MARK, PG13MD_10),
1136        PINMUX_DATA(PINT5_PG_MARK, PG13MD_11),
1137
1138        PINMUX_DATA(PG12_DATA, PG12MD_00),
1139        PINMUX_DATA(D28_MARK, PG12MD_01),
1140        PINMUX_DATA(LCD_DATA12_PG12_MARK, PG12MD_10),
1141        PINMUX_DATA(PINT4_PG_MARK, PG12MD_11),
1142
1143        PINMUX_DATA(PG11_DATA, PG11MD_000),
1144        PINMUX_DATA(D27_MARK, PG11MD_001),
1145        PINMUX_DATA(LCD_DATA11_PG11_MARK, PG11MD_010),
1146        PINMUX_DATA(PINT3_PG_MARK, PG11MD_011),
1147        PINMUX_DATA(TIOC3D_MARK, PG11MD_100),
1148
1149        PINMUX_DATA(PG10_DATA, PG10MD_000),
1150        PINMUX_DATA(D26_MARK, PG10MD_001),
1151        PINMUX_DATA(LCD_DATA10_PG10_MARK, PG10MD_010),
1152        PINMUX_DATA(PINT2_PG_MARK, PG10MD_011),
1153        PINMUX_DATA(TIOC3C_MARK, PG10MD_100),
1154
1155        PINMUX_DATA(PG9_DATA, PG9MD_000),
1156        PINMUX_DATA(D25_MARK, PG9MD_001),
1157        PINMUX_DATA(LCD_DATA9_PG9_MARK, PG9MD_010),
1158        PINMUX_DATA(PINT1_PG_MARK, PG9MD_011),
1159        PINMUX_DATA(TIOC3B_MARK, PG9MD_100),
1160
1161        PINMUX_DATA(PG8_DATA, PG8MD_000),
1162        PINMUX_DATA(D24_MARK, PG8MD_001),
1163        PINMUX_DATA(LCD_DATA8_PG8_MARK, PG8MD_010),
1164        PINMUX_DATA(PINT0_PG_MARK, PG8MD_011),
1165        PINMUX_DATA(TIOC3A_MARK, PG8MD_100),
1166
1167        PINMUX_DATA(PG7_DATA, PG7MD_000),
1168        PINMUX_DATA(D23_MARK, PG7MD_001),
1169        PINMUX_DATA(LCD_DATA7_PG7_MARK, PG7MD_010),
1170        PINMUX_DATA(IRQ7_PG_MARK, PG7MD_011),
1171        PINMUX_DATA(TIOC2B_MARK, PG7MD_100),
1172
1173        PINMUX_DATA(PG6_DATA, PG6MD_000),
1174        PINMUX_DATA(D22_MARK, PG6MD_001),
1175        PINMUX_DATA(LCD_DATA6_PG6_MARK, PG6MD_010),
1176        PINMUX_DATA(IRQ6_PG_MARK, PG6MD_011),
1177        PINMUX_DATA(TIOC2A_MARK, PG6MD_100),
1178
1179        PINMUX_DATA(PG5_DATA, PG5MD_000),
1180        PINMUX_DATA(D21_MARK, PG5MD_001),
1181        PINMUX_DATA(LCD_DATA5_PG5_MARK, PG5MD_010),
1182        PINMUX_DATA(IRQ5_PG_MARK, PG5MD_011),
1183        PINMUX_DATA(TIOC1B_MARK, PG5MD_100),
1184
1185        PINMUX_DATA(PG4_DATA, PG4MD_000),
1186        PINMUX_DATA(D20_MARK, PG4MD_001),
1187        PINMUX_DATA(LCD_DATA4_PG4_MARK, PG4MD_010),
1188        PINMUX_DATA(IRQ4_PG_MARK, PG4MD_011),
1189        PINMUX_DATA(TIOC1A_MARK, PG4MD_100),
1190
1191        PINMUX_DATA(PG3_DATA, PG3MD_000),
1192        PINMUX_DATA(D19_MARK, PG3MD_001),
1193        PINMUX_DATA(LCD_DATA3_PG3_MARK, PG3MD_010),
1194        PINMUX_DATA(IRQ3_PG_MARK, PG3MD_011),
1195        PINMUX_DATA(TIOC0D_MARK, PG3MD_100),
1196
1197        PINMUX_DATA(PG2_DATA, PG2MD_000),
1198        PINMUX_DATA(D18_MARK, PG2MD_001),
1199        PINMUX_DATA(LCD_DATA2_PG2_MARK, PG2MD_010),
1200        PINMUX_DATA(IRQ2_PG_MARK, PG2MD_011),
1201        PINMUX_DATA(TIOC0C_MARK, PG2MD_100),
1202
1203        PINMUX_DATA(PG1_DATA, PG1MD_000),
1204        PINMUX_DATA(D17_MARK, PG1MD_001),
1205        PINMUX_DATA(LCD_DATA1_PG1_MARK, PG1MD_010),
1206        PINMUX_DATA(IRQ1_PG_MARK, PG1MD_011),
1207        PINMUX_DATA(TIOC0B_MARK, PG1MD_100),
1208
1209        PINMUX_DATA(PG0_DATA, PG0MD_000),
1210        PINMUX_DATA(D16_MARK, PG0MD_001),
1211        PINMUX_DATA(LCD_DATA0_PG0_MARK, PG0MD_010),
1212        PINMUX_DATA(IRQ0_PG_MARK, PG0MD_011),
1213        PINMUX_DATA(TIOC0A_MARK, PG0MD_100),
1214
1215        /* Port H */
1216        PINMUX_DATA(PH7_DATA, PH7MD_00),
1217        PINMUX_DATA(PHAN7_MARK, PH7MD_01),
1218        PINMUX_DATA(PINT7_PH_MARK, PH7MD_10),
1219
1220        PINMUX_DATA(PH6_DATA, PH6MD_00),
1221        PINMUX_DATA(PHAN6_MARK, PH6MD_01),
1222        PINMUX_DATA(PINT6_PH_MARK, PH6MD_10),
1223
1224        PINMUX_DATA(PH5_DATA, PH5MD_00),
1225        PINMUX_DATA(PHAN5_MARK, PH5MD_01),
1226        PINMUX_DATA(PINT5_PH_MARK, PH5MD_10),
1227        PINMUX_DATA(LCD_EXTCLK_MARK, PH5MD_11),
1228
1229        PINMUX_DATA(PH4_DATA, PH4MD_00),
1230        PINMUX_DATA(PHAN4_MARK, PH4MD_01),
1231        PINMUX_DATA(PINT4_PH_MARK, PH4MD_10),
1232
1233        PINMUX_DATA(PH3_DATA, PH3MD_00),
1234        PINMUX_DATA(PHAN3_MARK, PH3MD_01),
1235        PINMUX_DATA(PINT3_PH_MARK, PH3MD_10),
1236
1237        PINMUX_DATA(PH2_DATA, PH2MD_00),
1238        PINMUX_DATA(PHAN2_MARK, PH2MD_01),
1239        PINMUX_DATA(PINT2_PH_MARK, PH2MD_10),
1240
1241        PINMUX_DATA(PH1_DATA, PH1MD_00),
1242        PINMUX_DATA(PHAN1_MARK, PH1MD_01),
1243        PINMUX_DATA(PINT1_PH_MARK, PH1MD_10),
1244
1245        PINMUX_DATA(PH0_DATA, PH0MD_00),
1246        PINMUX_DATA(PHAN0_MARK, PH0MD_01),
1247        PINMUX_DATA(PINT0_PH_MARK, PH0MD_10),
1248
1249        /* Port I - not on device */
1250
1251        /* Port J */
1252        PINMUX_DATA(PJ31_DATA, PJ31MD_0),
1253        PINMUX_DATA(DV_CLK_MARK, PJ31MD_1),
1254
1255        PINMUX_DATA(PJ30_DATA, PJ30MD_000),
1256        PINMUX_DATA(SSIDATA5_MARK, PJ30MD_010),
1257        PINMUX_DATA(TIOC2B_MARK, PJ30MD_100),
1258        PINMUX_DATA(IETXD_MARK, PJ30MD_101),
1259
1260        PINMUX_DATA(PJ29_DATA, PJ29MD_000),
1261        PINMUX_DATA(SSIWS5_MARK, PJ29MD_010),
1262        PINMUX_DATA(TIOC2A_MARK, PJ29MD_100),
1263        PINMUX_DATA(IERXD_MARK, PJ29MD_101),
1264
1265        PINMUX_DATA(PJ28_DATA, PJ28MD_000),
1266        PINMUX_DATA(SSISCK5_MARK, PJ28MD_010),
1267        PINMUX_DATA(TIOC1B_MARK, PJ28MD_100),
1268        PINMUX_DATA(RTS7_MARK, PJ28MD_101),
1269
1270        PINMUX_DATA(PJ27_DATA, PJ27MD_000),
1271        PINMUX_DATA(TIOC1A_MARK, PJ27MD_100),
1272        PINMUX_DATA(CTS7_MARK, PJ27MD_101),
1273
1274        PINMUX_DATA(PJ26_DATA, PJ26MD_000),
1275        PINMUX_DATA(SSIDATA4_MARK, PJ26MD_010),
1276        PINMUX_DATA(LCD_TCON5_MARK, PJ26MD_011),
1277        PINMUX_DATA(TXD7_MARK, PJ26MD_101),
1278
1279        PINMUX_DATA(PJ25_DATA, PJ25MD_000),
1280        PINMUX_DATA(SSIWS4_MARK, PJ25MD_010),
1281        PINMUX_DATA(LCD_TCON4_MARK, PJ25MD_011),
1282        PINMUX_DATA(SPDIF_OUT_MARK, PJ25MD_100),
1283        PINMUX_DATA(RXD7_MARK, PJ25MD_101),
1284
1285        PINMUX_DATA(PJ24_DATA, PJ24MD_000),
1286        PINMUX_DATA(SSISCK4_MARK, PJ24MD_010),
1287        PINMUX_DATA(LCD_TCON3_MARK, PJ24MD_011),
1288        PINMUX_DATA(SPDIF_IN_MARK, PJ24MD_100),
1289        PINMUX_DATA(SCK7_MARK, PJ24MD_101),
1290
1291        PINMUX_DATA(PJ23_DATA, PJ23MD_000),
1292        PINMUX_DATA(DV_DATA23_MARK, PJ23MD_001),
1293        PINMUX_DATA(LCD_DATA23_PJ23_MARK, PJ23MD_010),
1294        PINMUX_DATA(LCD_TCON6_MARK, PJ23MD_011),
1295        PINMUX_DATA(IRQ3_PJ_MARK, PJ23MD_100),
1296        PINMUX_DATA(CTX1_MARK, PJ23MD_101),
1297
1298        PINMUX_DATA(PJ22_DATA, PJ22MD_000),
1299        PINMUX_DATA(DV_DATA22_MARK, PJ22MD_001),
1300        PINMUX_DATA(LCD_DATA22_PJ22_MARK, PJ22MD_010),
1301        PINMUX_DATA(LCD_TCON5_MARK, PJ22MD_011),
1302        PINMUX_DATA(IRQ2_PJ_MARK, PJ22MD_100),
1303        PINMUX_DATA(CRX1_MARK, PJ22MD_101),
1304        PINMUX_DATA(CRX0_CRX1_MARK, PJ22MD_110),
1305
1306        PINMUX_DATA(PJ21_DATA, PJ21MD_000),
1307        PINMUX_DATA(DV_DATA21_MARK, PJ21MD_001),
1308        PINMUX_DATA(LCD_DATA21_PJ21_MARK, PJ21MD_010),
1309        PINMUX_DATA(LCD_TCON4_MARK, PJ21MD_011),
1310        PINMUX_DATA(IRQ1_PJ_MARK, PJ21MD_100),
1311        PINMUX_DATA(CTX2_MARK, PJ21MD_101),
1312
1313        PINMUX_DATA(PJ20_DATA, PJ20MD_000),
1314        PINMUX_DATA(DV_DATA20_MARK, PJ20MD_001),
1315        PINMUX_DATA(LCD_DATA20_PJ20_MARK, PJ20MD_010),
1316        PINMUX_DATA(LCD_TCON3_MARK, PJ20MD_011),
1317        PINMUX_DATA(IRQ0_PJ_MARK, PJ20MD_100),
1318        PINMUX_DATA(CRX2_MARK, PJ20MD_101),
1319        PINMUX_DATA(CRX0CRX1CRX2_PJ20_MARK, PJ20MD_110),
1320
1321        PINMUX_DATA(PJ19_DATA, PJ19MD_000),
1322        PINMUX_DATA(DV_DATA19_MARK, PJ19MD_001),
1323        PINMUX_DATA(LCD_DATA19_PJ19_MARK, PJ19MD_010),
1324        PINMUX_DATA(MISO0_PJ19_MARK, PJ19MD_011),
1325        PINMUX_DATA(TIOC0D_MARK, PJ19MD_100),
1326        PINMUX_DATA(SIOFRXD_MARK, PJ19MD_101),
1327        PINMUX_DATA(AUDIO_XOUT_MARK, PJ19MD_110),
1328
1329        PINMUX_DATA(PJ18_DATA, PJ18MD_000),
1330        PINMUX_DATA(DV_DATA18_MARK, PJ18MD_001),
1331        PINMUX_DATA(LCD_DATA18_PJ18_MARK, PJ18MD_010),
1332        PINMUX_DATA(MOSI0_PJ18_MARK, PJ18MD_011),
1333        PINMUX_DATA(TIOC0C_MARK, PJ18MD_100),
1334        PINMUX_DATA(SIOFTXD_MARK, PJ18MD_101),
1335
1336        PINMUX_DATA(PJ17_DATA, PJ17MD_000),
1337        PINMUX_DATA(DV_DATA17_MARK, PJ17MD_001),
1338        PINMUX_DATA(LCD_DATA17_PJ17_MARK, PJ17MD_010),
1339        PINMUX_DATA(SSL00_PJ17_MARK, PJ17MD_011),
1340        PINMUX_DATA(TIOC0B_MARK, PJ17MD_100),
1341        PINMUX_DATA(SIOFSYNC_MARK, PJ17MD_101),
1342
1343        PINMUX_DATA(PJ16_DATA, PJ16MD_000),
1344        PINMUX_DATA(DV_DATA16_MARK, PJ16MD_001),
1345        PINMUX_DATA(LCD_DATA16_PJ16_MARK, PJ16MD_010),
1346        PINMUX_DATA(RSPCK0_PJ16_MARK, PJ16MD_011),
1347        PINMUX_DATA(TIOC0A_MARK, PJ16MD_100),
1348        PINMUX_DATA(SIOFSCK_MARK, PJ16MD_101),
1349
1350        PINMUX_DATA(PJ15_DATA, PJ15MD_000),
1351        PINMUX_DATA(DV_DATA15_MARK, PJ15MD_001),
1352        PINMUX_DATA(LCD_DATA15_PJ15_MARK, PJ15MD_010),
1353        PINMUX_DATA(PINT7_PJ_MARK, PJ15MD_011),
1354        PINMUX_DATA(PWM2H_MARK, PJ15MD_100),
1355        PINMUX_DATA(TXD7_MARK, PJ15MD_101),
1356
1357        PINMUX_DATA(PJ14_DATA, PJ14MD_000),
1358        PINMUX_DATA(DV_DATA14_MARK, PJ14MD_001),
1359        PINMUX_DATA(LCD_DATA14_PJ14_MARK, PJ14MD_010),
1360        PINMUX_DATA(PINT6_PJ_MARK, PJ14MD_011),
1361        PINMUX_DATA(PWM2G_MARK, PJ14MD_100),
1362        PINMUX_DATA(TXD6_MARK, PJ14MD_101),
1363
1364        PINMUX_DATA(PJ13_DATA, PJ13MD_000),
1365        PINMUX_DATA(DV_DATA13_MARK, PJ13MD_001),
1366        PINMUX_DATA(LCD_DATA13_PJ13_MARK, PJ13MD_010),
1367        PINMUX_DATA(PINT5_PJ_MARK, PJ13MD_011),
1368        PINMUX_DATA(PWM2F_MARK, PJ13MD_100),
1369        PINMUX_DATA(TXD5_MARK, PJ13MD_101),
1370
1371        PINMUX_DATA(PJ12_DATA, PJ12MD_000),
1372        PINMUX_DATA(DV_DATA12_MARK, PJ12MD_001),
1373        PINMUX_DATA(LCD_DATA12_PJ12_MARK, PJ12MD_010),
1374        PINMUX_DATA(PINT4_PJ_MARK, PJ12MD_011),
1375        PINMUX_DATA(PWM2E_MARK, PJ12MD_100),
1376        PINMUX_DATA(SCK7_MARK, PJ12MD_101),
1377
1378        PINMUX_DATA(PJ11_DATA, PJ11MD_000),
1379        PINMUX_DATA(DV_DATA11_MARK, PJ11MD_001),
1380        PINMUX_DATA(LCD_DATA11_PJ11_MARK, PJ11MD_010),
1381        PINMUX_DATA(PINT3_PJ_MARK, PJ11MD_011),
1382        PINMUX_DATA(PWM2D_MARK, PJ11MD_100),
1383        PINMUX_DATA(SCK6_MARK, PJ11MD_101),
1384
1385        PINMUX_DATA(PJ10_DATA, PJ10MD_000),
1386        PINMUX_DATA(DV_DATA10_MARK, PJ10MD_001),
1387        PINMUX_DATA(LCD_DATA10_PJ10_MARK, PJ10MD_010),
1388        PINMUX_DATA(PINT2_PJ_MARK, PJ10MD_011),
1389        PINMUX_DATA(PWM2C_MARK, PJ10MD_100),
1390        PINMUX_DATA(SCK5_MARK, PJ10MD_101),
1391
1392        PINMUX_DATA(PJ9_DATA, PJ9MD_000),
1393        PINMUX_DATA(DV_DATA9_MARK, PJ9MD_001),
1394        PINMUX_DATA(LCD_DATA9_PJ9_MARK, PJ9MD_010),
1395        PINMUX_DATA(PINT1_PJ_MARK, PJ9MD_011),
1396        PINMUX_DATA(PWM2B_MARK, PJ9MD_100),
1397        PINMUX_DATA(RTS5_MARK, PJ9MD_101),
1398
1399        PINMUX_DATA(PJ8_DATA, PJ8MD_000),
1400        PINMUX_DATA(DV_DATA8_MARK, PJ8MD_001),
1401        PINMUX_DATA(LCD_DATA8_PJ8_MARK, PJ8MD_010),
1402        PINMUX_DATA(PINT0_PJ_MARK, PJ8MD_011),
1403        PINMUX_DATA(PWM2A_MARK, PJ8MD_100),
1404        PINMUX_DATA(CTS5_MARK, PJ8MD_101),
1405
1406        PINMUX_DATA(PJ7_DATA, PJ7MD_000),
1407        PINMUX_DATA(DV_DATA7_MARK, PJ7MD_001),
1408        PINMUX_DATA(LCD_DATA7_PJ7_MARK, PJ7MD_010),
1409        PINMUX_DATA(SD_D2_MARK, PJ7MD_011),
1410        PINMUX_DATA(PWM1H_MARK, PJ7MD_100),
1411
1412        PINMUX_DATA(PJ6_DATA, PJ6MD_000),
1413        PINMUX_DATA(DV_DATA6_MARK, PJ6MD_001),
1414        PINMUX_DATA(LCD_DATA6_PJ6_MARK, PJ6MD_010),
1415        PINMUX_DATA(SD_D3_MARK, PJ6MD_011),
1416        PINMUX_DATA(PWM1G_MARK, PJ6MD_100),
1417
1418        PINMUX_DATA(PJ5_DATA, PJ5MD_000),
1419        PINMUX_DATA(DV_DATA5_MARK, PJ5MD_001),
1420        PINMUX_DATA(LCD_DATA5_PJ5_MARK, PJ5MD_010),
1421        PINMUX_DATA(SD_CMD_MARK, PJ5MD_011),
1422        PINMUX_DATA(PWM1F_MARK, PJ5MD_100),
1423
1424        PINMUX_DATA(PJ4_DATA, PJ4MD_000),
1425        PINMUX_DATA(DV_DATA4_MARK, PJ4MD_001),
1426        PINMUX_DATA(LCD_DATA4_PJ4_MARK, PJ4MD_010),
1427        PINMUX_DATA(SD_CLK_MARK, PJ4MD_011),
1428        PINMUX_DATA(PWM1E_MARK, PJ4MD_100),
1429
1430        PINMUX_DATA(PJ3_DATA, PJ3MD_000),
1431        PINMUX_DATA(DV_DATA3_MARK, PJ3MD_001),
1432        PINMUX_DATA(LCD_DATA3_PJ3_MARK, PJ3MD_010),
1433        PINMUX_DATA(SD_D0_MARK, PJ3MD_011),
1434        PINMUX_DATA(PWM1D_MARK, PJ3MD_100),
1435
1436        PINMUX_DATA(PJ2_DATA, PJ2MD_000),
1437        PINMUX_DATA(DV_DATA2_MARK, PJ2MD_001),
1438        PINMUX_DATA(LCD_DATA2_PJ2_MARK, PJ2MD_010),
1439        PINMUX_DATA(SD_D1_MARK, PJ2MD_011),
1440        PINMUX_DATA(PWM1C_MARK, PJ2MD_100),
1441
1442        PINMUX_DATA(PJ1_DATA, PJ1MD_000),
1443        PINMUX_DATA(DV_DATA1_MARK, PJ1MD_001),
1444        PINMUX_DATA(LCD_DATA1_PJ1_MARK, PJ1MD_010),
1445        PINMUX_DATA(SD_WP_MARK, PJ1MD_011),
1446        PINMUX_DATA(PWM1B_MARK, PJ1MD_100),
1447
1448        PINMUX_DATA(PJ0_DATA, PJ0MD_000),
1449        PINMUX_DATA(DV_DATA0_MARK, PJ0MD_001),
1450        PINMUX_DATA(LCD_DATA0_PJ0_MARK, PJ0MD_010),
1451        PINMUX_DATA(SD_CD_MARK, PJ0MD_011),
1452        PINMUX_DATA(PWM1A_MARK, PJ0MD_100),
1453};
1454
1455static struct sh_pfc_pin pinmux_pins[] = {
1456        /* Port A */
1457        PINMUX_GPIO(GPIO_PA1, PA1_DATA),
1458        PINMUX_GPIO(GPIO_PA0, PA0_DATA),
1459
1460        /* Port B */
1461        PINMUX_GPIO(GPIO_PB22, PB22_DATA),
1462        PINMUX_GPIO(GPIO_PB21, PB21_DATA),
1463        PINMUX_GPIO(GPIO_PB20, PB20_DATA),
1464        PINMUX_GPIO(GPIO_PB19, PB19_DATA),
1465        PINMUX_GPIO(GPIO_PB18, PB18_DATA),
1466        PINMUX_GPIO(GPIO_PB17, PB17_DATA),
1467        PINMUX_GPIO(GPIO_PB16, PB16_DATA),
1468        PINMUX_GPIO(GPIO_PB15, PB15_DATA),
1469        PINMUX_GPIO(GPIO_PB14, PB14_DATA),
1470        PINMUX_GPIO(GPIO_PB13, PB13_DATA),
1471        PINMUX_GPIO(GPIO_PB12, PB12_DATA),
1472        PINMUX_GPIO(GPIO_PB11, PB11_DATA),
1473        PINMUX_GPIO(GPIO_PB10, PB10_DATA),
1474        PINMUX_GPIO(GPIO_PB9, PB9_DATA),
1475        PINMUX_GPIO(GPIO_PB8, PB8_DATA),
1476        PINMUX_GPIO(GPIO_PB7, PB7_DATA),
1477        PINMUX_GPIO(GPIO_PB6, PB6_DATA),
1478        PINMUX_GPIO(GPIO_PB5, PB5_DATA),
1479        PINMUX_GPIO(GPIO_PB4, PB4_DATA),
1480        PINMUX_GPIO(GPIO_PB3, PB3_DATA),
1481        PINMUX_GPIO(GPIO_PB2, PB2_DATA),
1482        PINMUX_GPIO(GPIO_PB1, PB1_DATA),
1483
1484        /* Port C */
1485        PINMUX_GPIO(GPIO_PC8, PC8_DATA),
1486        PINMUX_GPIO(GPIO_PC7, PC7_DATA),
1487        PINMUX_GPIO(GPIO_PC6, PC6_DATA),
1488        PINMUX_GPIO(GPIO_PC5, PC5_DATA),
1489        PINMUX_GPIO(GPIO_PC4, PC4_DATA),
1490        PINMUX_GPIO(GPIO_PC3, PC3_DATA),
1491        PINMUX_GPIO(GPIO_PC2, PC2_DATA),
1492        PINMUX_GPIO(GPIO_PC1, PC1_DATA),
1493        PINMUX_GPIO(GPIO_PC0, PC0_DATA),
1494
1495        /* Port D */
1496        PINMUX_GPIO(GPIO_PD15, PD15_DATA),
1497        PINMUX_GPIO(GPIO_PD14, PD14_DATA),
1498        PINMUX_GPIO(GPIO_PD13, PD13_DATA),
1499        PINMUX_GPIO(GPIO_PD12, PD12_DATA),
1500        PINMUX_GPIO(GPIO_PD11, PD11_DATA),
1501        PINMUX_GPIO(GPIO_PD10, PD10_DATA),
1502        PINMUX_GPIO(GPIO_PD9, PD9_DATA),
1503        PINMUX_GPIO(GPIO_PD8, PD8_DATA),
1504        PINMUX_GPIO(GPIO_PD7, PD7_DATA),
1505        PINMUX_GPIO(GPIO_PD6, PD6_DATA),
1506        PINMUX_GPIO(GPIO_PD5, PD5_DATA),
1507        PINMUX_GPIO(GPIO_PD4, PD4_DATA),
1508        PINMUX_GPIO(GPIO_PD3, PD3_DATA),
1509        PINMUX_GPIO(GPIO_PD2, PD2_DATA),
1510        PINMUX_GPIO(GPIO_PD1, PD1_DATA),
1511        PINMUX_GPIO(GPIO_PD0, PD0_DATA),
1512
1513        /* Port E */
1514        PINMUX_GPIO(GPIO_PE7, PE7_DATA),
1515        PINMUX_GPIO(GPIO_PE6, PE6_DATA),
1516        PINMUX_GPIO(GPIO_PE5, PE5_DATA),
1517        PINMUX_GPIO(GPIO_PE4, PE4_DATA),
1518        PINMUX_GPIO(GPIO_PE3, PE3_DATA),
1519        PINMUX_GPIO(GPIO_PE2, PE2_DATA),
1520        PINMUX_GPIO(GPIO_PE1, PE1_DATA),
1521        PINMUX_GPIO(GPIO_PE0, PE0_DATA),
1522
1523        /* Port F */
1524        PINMUX_GPIO(GPIO_PF23, PF23_DATA),
1525        PINMUX_GPIO(GPIO_PF22, PF22_DATA),
1526        PINMUX_GPIO(GPIO_PF21, PF21_DATA),
1527        PINMUX_GPIO(GPIO_PF20, PF20_DATA),
1528        PINMUX_GPIO(GPIO_PF19, PF19_DATA),
1529        PINMUX_GPIO(GPIO_PF18, PF18_DATA),
1530        PINMUX_GPIO(GPIO_PF17, PF17_DATA),
1531        PINMUX_GPIO(GPIO_PF16, PF16_DATA),
1532        PINMUX_GPIO(GPIO_PF15, PF15_DATA),
1533        PINMUX_GPIO(GPIO_PF14, PF14_DATA),
1534        PINMUX_GPIO(GPIO_PF13, PF13_DATA),
1535        PINMUX_GPIO(GPIO_PF12, PF12_DATA),
1536        PINMUX_GPIO(GPIO_PF11, PF11_DATA),
1537        PINMUX_GPIO(GPIO_PF10, PF10_DATA),
1538        PINMUX_GPIO(GPIO_PF9, PF9_DATA),
1539        PINMUX_GPIO(GPIO_PF8, PF8_DATA),
1540        PINMUX_GPIO(GPIO_PF7, PF7_DATA),
1541        PINMUX_GPIO(GPIO_PF6, PF6_DATA),
1542        PINMUX_GPIO(GPIO_PF5, PF5_DATA),
1543        PINMUX_GPIO(GPIO_PF4, PF4_DATA),
1544        PINMUX_GPIO(GPIO_PF3, PF3_DATA),
1545        PINMUX_GPIO(GPIO_PF2, PF2_DATA),
1546        PINMUX_GPIO(GPIO_PF1, PF1_DATA),
1547        PINMUX_GPIO(GPIO_PF0, PF0_DATA),
1548
1549        /* Port G */
1550        PINMUX_GPIO(GPIO_PG27, PG27_DATA),
1551        PINMUX_GPIO(GPIO_PG26, PG26_DATA),
1552        PINMUX_GPIO(GPIO_PG25, PG25_DATA),
1553        PINMUX_GPIO(GPIO_PG24, PG24_DATA),
1554        PINMUX_GPIO(GPIO_PG23, PG23_DATA),
1555        PINMUX_GPIO(GPIO_PG22, PG22_DATA),
1556        PINMUX_GPIO(GPIO_PG21, PG21_DATA),
1557        PINMUX_GPIO(GPIO_PG20, PG20_DATA),
1558        PINMUX_GPIO(GPIO_PG19, PG19_DATA),
1559        PINMUX_GPIO(GPIO_PG18, PG18_DATA),
1560        PINMUX_GPIO(GPIO_PG17, PG17_DATA),
1561        PINMUX_GPIO(GPIO_PG16, PG16_DATA),
1562        PINMUX_GPIO(GPIO_PG15, PG15_DATA),
1563        PINMUX_GPIO(GPIO_PG14, PG14_DATA),
1564        PINMUX_GPIO(GPIO_PG13, PG13_DATA),
1565        PINMUX_GPIO(GPIO_PG12, PG12_DATA),
1566        PINMUX_GPIO(GPIO_PG11, PG11_DATA),
1567        PINMUX_GPIO(GPIO_PG10, PG10_DATA),
1568        PINMUX_GPIO(GPIO_PG9, PG9_DATA),
1569        PINMUX_GPIO(GPIO_PG8, PG8_DATA),
1570        PINMUX_GPIO(GPIO_PG7, PG7_DATA),
1571        PINMUX_GPIO(GPIO_PG6, PG6_DATA),
1572        PINMUX_GPIO(GPIO_PG5, PG5_DATA),
1573        PINMUX_GPIO(GPIO_PG4, PG4_DATA),
1574        PINMUX_GPIO(GPIO_PG3, PG3_DATA),
1575        PINMUX_GPIO(GPIO_PG2, PG2_DATA),
1576        PINMUX_GPIO(GPIO_PG1, PG1_DATA),
1577        PINMUX_GPIO(GPIO_PG0, PG0_DATA),
1578
1579        /* Port H - Port H does not have a Data Register */
1580
1581        /* Port I - not on device */
1582
1583        /* Port J */
1584        PINMUX_GPIO(GPIO_PJ31, PJ31_DATA),
1585        PINMUX_GPIO(GPIO_PJ30, PJ30_DATA),
1586        PINMUX_GPIO(GPIO_PJ29, PJ29_DATA),
1587        PINMUX_GPIO(GPIO_PJ28, PJ28_DATA),
1588        PINMUX_GPIO(GPIO_PJ27, PJ27_DATA),
1589        PINMUX_GPIO(GPIO_PJ26, PJ26_DATA),
1590        PINMUX_GPIO(GPIO_PJ25, PJ25_DATA),
1591        PINMUX_GPIO(GPIO_PJ24, PJ24_DATA),
1592        PINMUX_GPIO(GPIO_PJ23, PJ23_DATA),
1593        PINMUX_GPIO(GPIO_PJ22, PJ22_DATA),
1594        PINMUX_GPIO(GPIO_PJ21, PJ21_DATA),
1595        PINMUX_GPIO(GPIO_PJ20, PJ20_DATA),
1596        PINMUX_GPIO(GPIO_PJ19, PJ19_DATA),
1597        PINMUX_GPIO(GPIO_PJ18, PJ18_DATA),
1598        PINMUX_GPIO(GPIO_PJ17, PJ17_DATA),
1599        PINMUX_GPIO(GPIO_PJ16, PJ16_DATA),
1600        PINMUX_GPIO(GPIO_PJ15, PJ15_DATA),
1601        PINMUX_GPIO(GPIO_PJ14, PJ14_DATA),
1602        PINMUX_GPIO(GPIO_PJ13, PJ13_DATA),
1603        PINMUX_GPIO(GPIO_PJ12, PJ12_DATA),
1604        PINMUX_GPIO(GPIO_PJ11, PJ11_DATA),
1605        PINMUX_GPIO(GPIO_PJ10, PJ10_DATA),
1606        PINMUX_GPIO(GPIO_PJ9, PJ9_DATA),
1607        PINMUX_GPIO(GPIO_PJ8, PJ8_DATA),
1608        PINMUX_GPIO(GPIO_PJ7, PJ7_DATA),
1609        PINMUX_GPIO(GPIO_PJ6, PJ6_DATA),
1610        PINMUX_GPIO(GPIO_PJ5, PJ5_DATA),
1611        PINMUX_GPIO(GPIO_PJ4, PJ4_DATA),
1612        PINMUX_GPIO(GPIO_PJ3, PJ3_DATA),
1613        PINMUX_GPIO(GPIO_PJ2, PJ2_DATA),
1614        PINMUX_GPIO(GPIO_PJ1, PJ1_DATA),
1615        PINMUX_GPIO(GPIO_PJ0, PJ0_DATA),
1616};
1617
1618#define PINMUX_FN_BASE  ARRAY_SIZE(pinmux_pins)
1619
1620static const struct pinmux_func pinmux_func_gpios[] = {
1621        /* INTC */
1622        GPIO_FN(IRQ7_PG),
1623        GPIO_FN(IRQ6_PG),
1624        GPIO_FN(IRQ5_PG),
1625        GPIO_FN(IRQ4_PG),
1626        GPIO_FN(IRQ3_PG),
1627        GPIO_FN(IRQ2_PG),
1628        GPIO_FN(IRQ1_PG),
1629        GPIO_FN(IRQ0_PG),
1630        GPIO_FN(IRQ7_PF),
1631        GPIO_FN(IRQ6_PF),
1632        GPIO_FN(IRQ5_PF),
1633        GPIO_FN(IRQ4_PF),
1634        GPIO_FN(IRQ3_PJ),
1635        GPIO_FN(IRQ2_PJ),
1636        GPIO_FN(IRQ1_PJ),
1637        GPIO_FN(IRQ0_PJ),
1638        GPIO_FN(IRQ1_PC),
1639        GPIO_FN(IRQ0_PC),
1640
1641        GPIO_FN(PINT7_PG),
1642        GPIO_FN(PINT6_PG),
1643        GPIO_FN(PINT5_PG),
1644        GPIO_FN(PINT4_PG),
1645        GPIO_FN(PINT3_PG),
1646        GPIO_FN(PINT2_PG),
1647        GPIO_FN(PINT1_PG),
1648        GPIO_FN(PINT0_PG),
1649        GPIO_FN(PINT7_PH),
1650        GPIO_FN(PINT6_PH),
1651        GPIO_FN(PINT5_PH),
1652        GPIO_FN(PINT4_PH),
1653        GPIO_FN(PINT3_PH),
1654        GPIO_FN(PINT2_PH),
1655        GPIO_FN(PINT1_PH),
1656        GPIO_FN(PINT0_PH),
1657        GPIO_FN(PINT7_PJ),
1658        GPIO_FN(PINT6_PJ),
1659        GPIO_FN(PINT5_PJ),
1660        GPIO_FN(PINT4_PJ),
1661        GPIO_FN(PINT3_PJ),
1662        GPIO_FN(PINT2_PJ),
1663        GPIO_FN(PINT1_PJ),
1664        GPIO_FN(PINT0_PJ),
1665
1666        /* WDT */
1667        GPIO_FN(WDTOVF),
1668
1669        /* CAN */
1670        GPIO_FN(CTX1),
1671        GPIO_FN(CRX1),
1672        GPIO_FN(CTX0),
1673        GPIO_FN(CRX0),
1674        GPIO_FN(CRX0_CRX1),
1675        GPIO_FN(CRX0_CRX1_CRX2),
1676
1677        /* DMAC */
1678        GPIO_FN(TEND0),
1679        GPIO_FN(DACK0),
1680        GPIO_FN(DREQ0),
1681        GPIO_FN(TEND1),
1682        GPIO_FN(DACK1),
1683        GPIO_FN(DREQ1),
1684
1685        /* ADC */
1686        GPIO_FN(ADTRG),
1687
1688        /* BSCh */
1689        GPIO_FN(A25),
1690        GPIO_FN(A24),
1691        GPIO_FN(A23),
1692        GPIO_FN(A22),
1693        GPIO_FN(A21),
1694        GPIO_FN(A20),
1695        GPIO_FN(A19),
1696        GPIO_FN(A18),
1697        GPIO_FN(A17),
1698        GPIO_FN(A16),
1699        GPIO_FN(A15),
1700        GPIO_FN(A14),
1701        GPIO_FN(A13),
1702        GPIO_FN(A12),
1703        GPIO_FN(A11),
1704        GPIO_FN(A10),
1705        GPIO_FN(A9),
1706        GPIO_FN(A8),
1707        GPIO_FN(A7),
1708        GPIO_FN(A6),
1709        GPIO_FN(A5),
1710        GPIO_FN(A4),
1711        GPIO_FN(A3),
1712        GPIO_FN(A2),
1713        GPIO_FN(A1),
1714        GPIO_FN(A0),
1715
1716        GPIO_FN(D15),
1717        GPIO_FN(D14),
1718        GPIO_FN(D13),
1719        GPIO_FN(D12),
1720        GPIO_FN(D11),
1721        GPIO_FN(D10),
1722        GPIO_FN(D9),
1723        GPIO_FN(D8),
1724        GPIO_FN(D7),
1725        GPIO_FN(D6),
1726        GPIO_FN(D5),
1727        GPIO_FN(D4),
1728        GPIO_FN(D3),
1729        GPIO_FN(D2),
1730        GPIO_FN(D1),
1731        GPIO_FN(D0),
1732
1733        GPIO_FN(BS),
1734        GPIO_FN(CS4),
1735        GPIO_FN(CS3),
1736        GPIO_FN(CS2),
1737        GPIO_FN(CS1),
1738        GPIO_FN(CS0),
1739        GPIO_FN(CS5CE1A),
1740        GPIO_FN(CE2A),
1741        GPIO_FN(CE2B),
1742        GPIO_FN(RD),
1743        GPIO_FN(RDWR),
1744        GPIO_FN(WE3ICIOWRAHDQMUU),
1745        GPIO_FN(WE2ICIORDDQMUL),
1746        GPIO_FN(WE1DQMUWE),
1747        GPIO_FN(WE0DQML),
1748        GPIO_FN(RAS),
1749        GPIO_FN(CAS),
1750        GPIO_FN(CKE),
1751        GPIO_FN(WAIT),
1752        GPIO_FN(BREQ),
1753        GPIO_FN(BACK),
1754        GPIO_FN(IOIS16),
1755
1756        /* TMU */
1757        GPIO_FN(TIOC4D),
1758        GPIO_FN(TIOC4C),
1759        GPIO_FN(TIOC4B),
1760        GPIO_FN(TIOC4A),
1761        GPIO_FN(TIOC3D),
1762        GPIO_FN(TIOC3C),
1763        GPIO_FN(TIOC3B),
1764        GPIO_FN(TIOC3A),
1765        GPIO_FN(TIOC2B),
1766        GPIO_FN(TIOC1B),
1767        GPIO_FN(TIOC2A),
1768        GPIO_FN(TIOC1A),
1769        GPIO_FN(TIOC0D),
1770        GPIO_FN(TIOC0C),
1771        GPIO_FN(TIOC0B),
1772        GPIO_FN(TIOC0A),
1773        GPIO_FN(TCLKD),
1774        GPIO_FN(TCLKC),
1775        GPIO_FN(TCLKB),
1776        GPIO_FN(TCLKA),
1777
1778        /* SCIF */
1779        GPIO_FN(SCK0),
1780        GPIO_FN(TXD0),
1781        GPIO_FN(RXD0),
1782        GPIO_FN(SCK1),
1783        GPIO_FN(TXD1),
1784        GPIO_FN(RXD1),
1785        GPIO_FN(RTS1),
1786        GPIO_FN(CTS1),
1787        GPIO_FN(SCK2),
1788        GPIO_FN(TXD2),
1789        GPIO_FN(RXD2),
1790        GPIO_FN(SCK3),
1791        GPIO_FN(TXD3),
1792        GPIO_FN(RXD3),
1793        GPIO_FN(SCK4),
1794        GPIO_FN(TXD4),
1795        GPIO_FN(RXD4),
1796        GPIO_FN(SCK5),
1797        GPIO_FN(TXD5),
1798        GPIO_FN(RXD5),
1799        GPIO_FN(RTS5),
1800        GPIO_FN(CTS5),
1801        GPIO_FN(SCK6),
1802        GPIO_FN(TXD6),
1803        GPIO_FN(RXD6),
1804        GPIO_FN(SCK7),
1805        GPIO_FN(TXD7),
1806        GPIO_FN(RXD7),
1807        GPIO_FN(RTS7),
1808        GPIO_FN(CTS7),
1809
1810        /* RSPI */
1811        GPIO_FN(RSPCK0_PJ16),
1812        GPIO_FN(SSL00_PJ17),
1813        GPIO_FN(MOSI0_PJ18),
1814        GPIO_FN(MISO0_PJ19),
1815        GPIO_FN(RSPCK0_PB17),
1816        GPIO_FN(SSL00_PB18),
1817        GPIO_FN(MOSI0_PB19),
1818        GPIO_FN(MISO0_PB20),
1819        GPIO_FN(RSPCK1),
1820        GPIO_FN(MOSI1),
1821        GPIO_FN(MISO1),
1822        GPIO_FN(SSL10),
1823
1824        /* IIC3 */
1825        GPIO_FN(SCL0),
1826        GPIO_FN(SCL1),
1827        GPIO_FN(SCL2),
1828        GPIO_FN(SDA0),
1829        GPIO_FN(SDA1),
1830        GPIO_FN(SDA2),
1831
1832        /* SSI */
1833        GPIO_FN(SSISCK0),
1834        GPIO_FN(SSIWS0),
1835        GPIO_FN(SSITXD0),
1836        GPIO_FN(SSIRXD0),
1837        GPIO_FN(SSIWS1),
1838        GPIO_FN(SSIWS2),
1839        GPIO_FN(SSIWS3),
1840        GPIO_FN(SSISCK1),
1841        GPIO_FN(SSISCK2),
1842        GPIO_FN(SSISCK3),
1843        GPIO_FN(SSIDATA1),
1844        GPIO_FN(SSIDATA2),
1845        GPIO_FN(SSIDATA3),
1846        GPIO_FN(AUDIO_CLK),
1847        GPIO_FN(AUDIO_XOUT),
1848
1849        /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */
1850        GPIO_FN(SIOFTXD),
1851        GPIO_FN(SIOFRXD),
1852        GPIO_FN(SIOFSYNC),
1853        GPIO_FN(SIOFSCK),
1854
1855        /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */
1856        GPIO_FN(SPDIF_IN),
1857        GPIO_FN(SPDIF_OUT),
1858
1859        /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */
1860        GPIO_FN(FCE),
1861        GPIO_FN(FRB),
1862
1863        /* VDC3 */
1864        GPIO_FN(DV_CLK),
1865        GPIO_FN(DV_VSYNC),
1866        GPIO_FN(DV_HSYNC),
1867
1868        GPIO_FN(DV_DATA23),
1869        GPIO_FN(DV_DATA22),
1870        GPIO_FN(DV_DATA21),
1871        GPIO_FN(DV_DATA20),
1872        GPIO_FN(DV_DATA19),
1873        GPIO_FN(DV_DATA18),
1874        GPIO_FN(DV_DATA17),
1875        GPIO_FN(DV_DATA16),
1876        GPIO_FN(DV_DATA15),
1877        GPIO_FN(DV_DATA14),
1878        GPIO_FN(DV_DATA13),
1879        GPIO_FN(DV_DATA12),
1880        GPIO_FN(DV_DATA11),
1881        GPIO_FN(DV_DATA10),
1882        GPIO_FN(DV_DATA9),
1883        GPIO_FN(DV_DATA8),
1884        GPIO_FN(DV_DATA7),
1885        GPIO_FN(DV_DATA6),
1886        GPIO_FN(DV_DATA5),
1887        GPIO_FN(DV_DATA4),
1888        GPIO_FN(DV_DATA3),
1889        GPIO_FN(DV_DATA2),
1890        GPIO_FN(DV_DATA1),
1891        GPIO_FN(DV_DATA0),
1892
1893        GPIO_FN(LCD_CLK),
1894        GPIO_FN(LCD_EXTCLK),
1895        GPIO_FN(LCD_VSYNC),
1896        GPIO_FN(LCD_HSYNC),
1897        GPIO_FN(LCD_DE),
1898
1899        GPIO_FN(LCD_DATA23_PG23),
1900        GPIO_FN(LCD_DATA22_PG22),
1901        GPIO_FN(LCD_DATA21_PG21),
1902        GPIO_FN(LCD_DATA20_PG20),
1903        GPIO_FN(LCD_DATA19_PG19),
1904        GPIO_FN(LCD_DATA18_PG18),
1905        GPIO_FN(LCD_DATA17_PG17),
1906        GPIO_FN(LCD_DATA16_PG16),
1907        GPIO_FN(LCD_DATA15_PG15),
1908        GPIO_FN(LCD_DATA14_PG14),
1909        GPIO_FN(LCD_DATA13_PG13),
1910        GPIO_FN(LCD_DATA12_PG12),
1911        GPIO_FN(LCD_DATA11_PG11),
1912        GPIO_FN(LCD_DATA10_PG10),
1913        GPIO_FN(LCD_DATA9_PG9),
1914        GPIO_FN(LCD_DATA8_PG8),
1915        GPIO_FN(LCD_DATA7_PG7),
1916        GPIO_FN(LCD_DATA6_PG6),
1917        GPIO_FN(LCD_DATA5_PG5),
1918        GPIO_FN(LCD_DATA4_PG4),
1919        GPIO_FN(LCD_DATA3_PG3),
1920        GPIO_FN(LCD_DATA2_PG2),
1921        GPIO_FN(LCD_DATA1_PG1),
1922        GPIO_FN(LCD_DATA0_PG0),
1923
1924        GPIO_FN(LCD_DATA23_PJ23),
1925        GPIO_FN(LCD_DATA22_PJ22),
1926        GPIO_FN(LCD_DATA21_PJ21),
1927        GPIO_FN(LCD_DATA20_PJ20),
1928        GPIO_FN(LCD_DATA19_PJ19),
1929        GPIO_FN(LCD_DATA18_PJ18),
1930        GPIO_FN(LCD_DATA17_PJ17),
1931        GPIO_FN(LCD_DATA16_PJ16),
1932        GPIO_FN(LCD_DATA15_PJ15),
1933        GPIO_FN(LCD_DATA14_PJ14),
1934        GPIO_FN(LCD_DATA13_PJ13),
1935        GPIO_FN(LCD_DATA12_PJ12),
1936        GPIO_FN(LCD_DATA11_PJ11),
1937        GPIO_FN(LCD_DATA10_PJ10),
1938        GPIO_FN(LCD_DATA9_PJ9),
1939        GPIO_FN(LCD_DATA8_PJ8),
1940        GPIO_FN(LCD_DATA7_PJ7),
1941        GPIO_FN(LCD_DATA6_PJ6),
1942        GPIO_FN(LCD_DATA5_PJ5),
1943        GPIO_FN(LCD_DATA4_PJ4),
1944        GPIO_FN(LCD_DATA3_PJ3),
1945        GPIO_FN(LCD_DATA2_PJ2),
1946        GPIO_FN(LCD_DATA1_PJ1),
1947        GPIO_FN(LCD_DATA0_PJ0),
1948
1949        GPIO_FN(LCD_M_DISP),
1950};
1951
1952static const struct pinmux_cfg_reg pinmux_config_regs[] = {
1953        /* "name" addr register_size Field_Width */
1954
1955        /* where Field_Width is 1 for single mode registers or 4 for upto 16
1956           mode registers and modes are described in assending order [0..16] */
1957
1958        { PINMUX_CFG_REG("PAIOR0", 0xfffe3812, 16, 1) {
1959                0, 0, 0, 0, 0, 0, 0, 0,
1960                0, 0, 0, 0, 0, 0, PA1_IN, PA1_OUT,
1961                0, 0, 0, 0, 0, 0, 0, 0,
1962                0, 0, 0, 0, 0, 0, PA0_IN, PA0_OUT }
1963        },
1964        { PINMUX_CFG_REG("PBCR5", 0xfffe3824, 16, 4) {
1965                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1966
1967                PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011,
1968                PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111,
1969                0, 0, 0, 0, 0, 0, 0, 0,
1970
1971                PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11, 0, 0, 0, 0,
1972                0, 0, 0, 0, 0, 0, 0, 0,
1973
1974                PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011,
1975                PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111,
1976                0, 0, 0, 0, 0, 0, 0, 0 }
1977        },
1978        { PINMUX_CFG_REG("PBCR4", 0xfffe3826, 16, 4) {
1979                PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011,
1980                PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111,
1981                0, 0, 0, 0, 0, 0, 0, 0,
1982
1983                PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011,
1984                PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111,
1985                0, 0, 0, 0, 0, 0, 0, 0,
1986
1987                PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011,
1988                PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111,
1989                0, 0, 0, 0, 0, 0, 0, 0,
1990
1991                PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011,
1992                PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111,
1993                0, 0, 0, 0, 0, 0, 0, 0 }
1994        },
1995        { PINMUX_CFG_REG("PBCR3", 0xfffe3828, 16, 4) {
1996                PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011,
1997                PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111,
1998                0, 0, 0, 0, 0, 0, 0, 0,
1999
2000                PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011,
2001                PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111,
2002                0, 0, 0, 0, 0, 0, 0, 0,
2003
2004                PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011,
2005                PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111,
2006                0, 0, 0, 0, 0, 0, 0, 0,
2007
2008                PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, 0, 0, 0, 0,
2009                0, 0, 0, 0, 0, 0, 0, 0 }
2010        },
2011        { PINMUX_CFG_REG("PBCR2", 0xfffe382a, 16, 4) {
2012                PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, 0, 0, 0, 0,
2013                0, 0, 0, 0, 0, 0, 0, 0,
2014
2015                PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, 0, 0, 0, 0,
2016                0, 0, 0, 0, 0, 0, 0, 0,
2017
2018                PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, 0, 0, 0, 0,
2019                0, 0, 0, 0, 0, 0, 0, 0,
2020
2021                PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, 0, 0, 0, 0,
2022                0, 0, 0, 0, 0, 0, 0, 0 }
2023        },
2024        { PINMUX_CFG_REG("PBCR1", 0xfffe382c, 16, 4) {
2025                PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, 0, 0, 0, 0,
2026                0, 0, 0, 0, 0, 0, 0, 0,
2027
2028                PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, 0, 0, 0, 0,
2029                0, 0, 0, 0, 0, 0, 0, 0,
2030
2031                PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, 0, 0, 0, 0,
2032                0, 0, 0, 0, 0, 0, 0, 0,
2033
2034                PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, 0, 0, 0, 0,
2035                0, 0, 0, 0, 0, 0, 0, 0 }
2036        },
2037        { PINMUX_CFG_REG("PBCR0", 0xfffe382e, 16, 4) {
2038                PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, 0, 0, 0, 0,
2039                0, 0, 0, 0, 0, 0, 0, 0,
2040
2041                PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, 0, 0, 0, 0,
2042                0, 0, 0, 0, 0, 0, 0, 0,
2043
2044                PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, 0, 0, 0, 0,
2045                0, 0, 0, 0, 0, 0, 0, 0,
2046
2047                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
2048        },
2049
2050        { PINMUX_CFG_REG("PBIOR1", 0xfffe3830, 16, 1) {
2051                0, 0, 0, 0, 0, 0, 0, 0,
2052                0, 0, 0, 0, 0, 0, 0, 0,
2053                0, 0,
2054                PB22_IN, PB22_OUT,
2055                PB21_IN, PB21_OUT,
2056                PB20_IN, PB20_OUT,
2057                PB19_IN, PB19_OUT,
2058                PB18_IN, PB18_OUT,
2059                PB17_IN, PB17_OUT,
2060                PB16_IN, PB16_OUT }
2061        },
2062        { PINMUX_CFG_REG("PBIOR0", 0xfffe3832, 16, 1) {
2063                PB15_IN, PB15_OUT,
2064                PB14_IN, PB14_OUT,
2065                PB13_IN, PB13_OUT,
2066                PB12_IN, PB12_OUT,
2067                PB11_IN, PB11_OUT,
2068                PB10_IN, PB10_OUT,
2069                PB9_IN, PB9_OUT,
2070                PB8_IN, PB8_OUT,
2071                PB7_IN, PB7_OUT,
2072                PB6_IN, PB6_OUT,
2073                PB5_IN, PB5_OUT,
2074                PB4_IN, PB4_OUT,
2075                PB3_IN, PB3_OUT,
2076                PB2_IN, PB2_OUT,
2077                PB1_IN, PB1_OUT,
2078                0, 0 }
2079        },
2080
2081        { PINMUX_CFG_REG("PCCR2", 0xfffe384a, 16, 4) {
2082                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2083
2084                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2085
2086                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2087
2088                PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011,
2089                PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111,
2090                0, 0, 0, 0, 0, 0, 0, 0 }
2091        },
2092        { PINMUX_CFG_REG("PCCR1", 0xfffe384c, 16, 4) {
2093                PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011,
2094                PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111,
2095                0, 0, 0, 0, 0, 0, 0, 0,
2096
2097                PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011,
2098                PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111,
2099                0, 0, 0, 0, 0, 0, 0, 0,
2100
2101                PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011,
2102                PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111,
2103                0, 0, 0, 0, 0, 0, 0, 0,
2104
2105                PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11, 0, 0, 0, 0,
2106                0, 0, 0, 0, 0, 0, 0, 0 }
2107        },
2108        { PINMUX_CFG_REG("PCCR0", 0xfffe384e, 16, 4) {
2109                PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11, 0, 0, 0, 0,
2110                0, 0, 0, 0, 0, 0, 0, 0,
2111
2112                PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11, 0, 0, 0, 0,
2113                0, 0, 0, 0, 0, 0, 0, 0,
2114
2115                PC1MD_0, PC1MD_1, 0, 0, 0, 0, 0, 0,
2116                0, 0, 0, 0, 0, 0, 0, 0,
2117
2118                PC0MD_0, PC0MD_1, 0, 0, 0, 0, 0, 0,
2119                0, 0, 0, 0, 0, 0, 0, 0 }
2120        },
2121
2122        { PINMUX_CFG_REG("PCIOR0", 0xfffe3852, 16, 1) {
2123                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2124                PC8_IN, PC8_OUT,
2125                PC7_IN, PC7_OUT,
2126                PC6_IN, PC6_OUT,
2127                PC5_IN, PC5_OUT,
2128                PC4_IN, PC4_OUT,
2129                PC3_IN, PC3_OUT,
2130                PC2_IN, PC2_OUT,
2131                PC1_IN, PC1_OUT,
2132                PC0_IN, PC0_OUT }
2133        },
2134
2135        { PINMUX_CFG_REG("PDCR3", 0xfffe3868, 16, 4) {
2136                PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, 0, 0, 0, 0,
2137                0, 0, 0, 0, 0, 0, 0, 0,
2138
2139                PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, 0, 0, 0, 0,
2140                0, 0, 0, 0, 0, 0, 0, 0,
2141
2142                PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, 0, 0, 0, 0,
2143                0, 0, 0, 0, 0, 0, 0, 0,
2144
2145                PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, 0, 0, 0, 0,
2146                0, 0, 0, 0, 0, 0, 0, 0 }
2147        },
2148        { PINMUX_CFG_REG("PDCR2", 0xfffe386a, 16, 4) {
2149                PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, 0, 0, 0, 0,
2150                0, 0, 0, 0, 0, 0, 0, 0,
2151
2152                PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, 0, 0, 0, 0,
2153                0, 0, 0, 0, 0, 0, 0, 0,
2154
2155                PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, 0, 0, 0, 0,
2156                0, 0, 0, 0, 0, 0, 0, 0,
2157
2158                PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, 0, 0, 0, 0,
2159                0, 0, 0, 0, 0, 0, 0, 0 }
2160        },
2161        { PINMUX_CFG_REG("PDCR1", 0xfffe386c, 16, 4) {
2162                PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, 0, 0, 0, 0,
2163                0, 0, 0, 0, 0, 0, 0, 0,
2164
2165                PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, 0, 0, 0, 0,
2166                0, 0, 0, 0, 0, 0, 0, 0,
2167
2168                PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, 0, 0, 0, 0,
2169                0, 0, 0, 0, 0, 0, 0, 0,
2170
2171                PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, 0, 0, 0, 0,
2172                0, 0, 0, 0, 0, 0, 0, 0 }
2173        },
2174        { PINMUX_CFG_REG("PDCR0", 0xfffe386e, 16, 4) {
2175                PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, 0, 0, 0, 0,
2176                0, 0, 0, 0, 0, 0, 0, 0,
2177
2178                PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, 0, 0, 0, 0,
2179                0, 0, 0, 0, 0, 0, 0, 0,
2180
2181                PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, 0, 0, 0, 0,
2182                0, 0, 0, 0, 0, 0, 0, 0,
2183
2184                PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, 0, 0, 0, 0,
2185                0, 0, 0, 0, 0, 0, 0, 0 }
2186        },
2187
2188        { PINMUX_CFG_REG("PDIOR0", 0xfffe3872, 16, 1) {
2189                PD15_IN, PD15_OUT,
2190                PD14_IN, PD14_OUT,
2191                PD13_IN, PD13_OUT,
2192                PD12_IN, PD12_OUT,
2193                PD11_IN, PD11_OUT,
2194                PD10_IN, PD10_OUT,
2195                PD9_IN, PD9_OUT,
2196                PD8_IN, PD8_OUT,
2197                PD7_IN, PD7_OUT,
2198                PD6_IN, PD6_OUT,
2199                PD5_IN, PD5_OUT,
2200                PD4_IN, PD4_OUT,
2201                PD3_IN, PD3_OUT,
2202                PD2_IN, PD2_OUT,
2203                PD1_IN, PD1_OUT,
2204                PD0_IN, PD0_OUT }
2205        },
2206
2207        { PINMUX_CFG_REG("PECR1", 0xfffe388c, 16, 4) {
2208                PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11, 0, 0, 0, 0,
2209                0, 0, 0, 0, 0, 0, 0, 0,
2210
2211                PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11, 0, 0, 0, 0,
2212                0, 0, 0, 0, 0, 0, 0, 0,
2213
2214                PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, 0, 0, 0, 0,
2215                0, 0, 0, 0, 0, 0, 0, 0,
2216
2217                PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, 0, 0, 0, 0,
2218                0, 0, 0, 0, 0, 0, 0, 0 }
2219        },
2220        { PINMUX_CFG_REG("PECR0", 0xfffe388e, 16, 4) {
2221                PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011,
2222                PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111,
2223                0, 0, 0, 0, 0, 0, 0, 0,
2224
2225                PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011,
2226                PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111,
2227                0, 0, 0, 0, 0, 0, 0, 0,
2228
2229                PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011,
2230                PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111,
2231                0, 0, 0, 0, 0, 0, 0, 0,
2232
2233                PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, 0, 0, 0, 0,
2234                0, 0, 0, 0, 0, 0, 0, 0 }
2235        },
2236        { PINMUX_CFG_REG("PEIOR0", 0xfffe3892, 16, 1) {
2237                0, 0, 0, 0, 0, 0, 0, 0,
2238                0, 0, 0, 0, 0, 0, 0, 0,
2239                PE7_IN, PE7_OUT,
2240                PE6_IN, PE6_OUT,
2241                PE5_IN, PE5_OUT,
2242                PE4_IN, PE4_OUT,
2243                PE3_IN, PE3_OUT,
2244                PE2_IN, PE2_OUT,
2245                PE1_IN, PE1_OUT,
2246                PE0_IN, PE0_OUT }
2247        },
2248
2249        { PINMUX_CFG_REG("PFCR6", 0xfffe38a2, 16, 4) {
2250                PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011,
2251                PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111,
2252                0, 0, 0, 0, 0, 0, 0, 0,
2253
2254                PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011,
2255                PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111,
2256                0, 0, 0, 0, 0, 0, 0, 0,
2257
2258                PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011,
2259                PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111,
2260                0, 0, 0, 0, 0, 0, 0, 0,
2261
2262                PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011,
2263                PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111,
2264                0, 0, 0, 0, 0, 0, 0, 0 }
2265        },
2266        { PINMUX_CFG_REG("PFCR5", 0xfffe38a4, 16, 4) {
2267                PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011,
2268                PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111,
2269                0, 0, 0, 0, 0, 0, 0, 0,
2270
2271                PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011,
2272                PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111,
2273                0, 0, 0, 0, 0, 0, 0, 0,
2274
2275                PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011,
2276                PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111,
2277                0, 0, 0, 0, 0, 0, 0, 0,
2278
2279                PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011,
2280                PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111,
2281                0, 0, 0, 0, 0, 0, 0, 0 }
2282        },
2283        { PINMUX_CFG_REG("PFCR4", 0xfffe38a6, 16, 4) {
2284                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2285
2286                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2287
2288                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2289
2290                PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011,
2291                PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111,
2292                0, 0, 0, 0, 0, 0, 0, 0 }
2293        },
2294        { PINMUX_CFG_REG("PFCR3", 0xfffe38a8, 16, 4) {
2295                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2296
2297                PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011,
2298                PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111,
2299                0, 0, 0, 0, 0, 0, 0, 0,
2300
2301                PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011,
2302                PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111,
2303                0, 0, 0, 0, 0, 0, 0, 0,
2304
2305                PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011,
2306                PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111,
2307                0, 0, 0, 0, 0, 0, 0, 0 }
2308        },
2309        { PINMUX_CFG_REG("PFCR2", 0xfffe38aa, 16, 4) {
2310                PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011,
2311                PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111,
2312                0, 0, 0, 0, 0, 0, 0, 0,
2313
2314                PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011,
2315                PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111,
2316                0, 0, 0, 0, 0, 0, 0, 0,
2317
2318                PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011,
2319                PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111,
2320                0, 0, 0, 0, 0, 0, 0, 0,
2321
2322                PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011,
2323                PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111,
2324                0, 0, 0, 0, 0, 0, 0, 0 }
2325        },
2326        { PINMUX_CFG_REG("PFCR1", 0xfffe38ac, 16, 4) {
2327                PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011,
2328                PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111,
2329                0, 0, 0, 0, 0, 0, 0, 0,
2330
2331                PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011,
2332                PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111,
2333                0, 0, 0, 0, 0, 0, 0, 0,
2334
2335                PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011,
2336                PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111,
2337                0, 0, 0, 0, 0, 0, 0, 0,
2338
2339                PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011,
2340                PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111,
2341                0, 0, 0, 0, 0, 0, 0, 0 }
2342        },
2343        { PINMUX_CFG_REG("PFCR0", 0xfffe38ae, 16, 4) {
2344                PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011,
2345                PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111,
2346                0, 0, 0, 0, 0, 0, 0, 0,
2347
2348                PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011,
2349                PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111,
2350                0, 0, 0, 0, 0, 0, 0, 0,
2351
2352                PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011,
2353                PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111,
2354                0, 0, 0, 0, 0, 0, 0, 0,
2355
2356                PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011,
2357                PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111,
2358                0, 0, 0, 0, 0, 0, 0, 0 }
2359        },
2360
2361        { PINMUX_CFG_REG("PFIOR1", 0xfffe38b0, 16, 1) {
2362                0, 0, 0, 0, 0, 0, 0, 0,
2363                0, 0, 0, 0, 0, 0, 0, 0,
2364                PF23_IN, PF23_OUT,
2365                PF22_IN, PF22_OUT,
2366                PF21_IN, PF21_OUT,
2367                PF20_IN, PF20_OUT,
2368                PF19_IN, PF19_OUT,
2369                PF18_IN, PF18_OUT,
2370                PF17_IN, PF17_OUT,
2371                PF16_IN, PF16_OUT }
2372        },
2373        { PINMUX_CFG_REG("PFIOR0", 0xfffe38b2, 16, 1) {
2374                PF15_IN, PF15_OUT,
2375                PF14_IN, PF14_OUT,
2376                PF13_IN, PF13_OUT,
2377                PF12_IN, PF12_OUT,
2378                PF11_IN, PF11_OUT,
2379                PF10_IN, PF10_OUT,
2380                PF9_IN, PF9_OUT,
2381                PF8_IN, PF8_OUT,
2382                PF7_IN, PF7_OUT,
2383                PF6_IN, PF6_OUT,
2384                PF5_IN, PF5_OUT,
2385                PF4_IN, PF4_OUT,
2386                PF3_IN, PF3_OUT,
2387                PF2_IN, PF2_OUT,
2388                PF1_IN, PF1_OUT,
2389                PF0_IN, PF0_OUT }
2390        },
2391
2392        { PINMUX_CFG_REG("PGCR6", 0xfffe38c2, 16, 4) {
2393                PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11, 0, 0, 0, 0,
2394                0, 0, 0, 0, 0, 0, 0, 0,
2395
2396                PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11, 0, 0, 0, 0,
2397                0, 0, 0, 0, 0, 0, 0, 0,
2398
2399                PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11, 0, 0, 0, 0,
2400                0, 0, 0, 0, 0, 0, 0, 0,
2401
2402                PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, 0, 0, 0, 0,
2403                0, 0, 0, 0, 0, 0, 0, 0 }
2404        },
2405        { PINMUX_CFG_REG("PGCR5", 0xfffe38c4, 16, 4) {
2406                PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011,
2407                PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111,
2408                0, 0, 0, 0, 0, 0, 0, 0,
2409
2410                PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011,
2411                PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111,
2412                0, 0, 0, 0, 0, 0, 0, 0,
2413
2414                PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011,
2415                PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111,
2416                0, 0, 0, 0, 0, 0, 0, 0,
2417
2418                PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011,
2419                PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111,
2420                0, 0, 0, 0, 0, 0, 0, 0 }
2421        },
2422        { PINMUX_CFG_REG("PGCR4", 0xfffe38c6, 16, 4) {
2423                PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011,
2424                PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111,
2425                0, 0, 0, 0, 0, 0, 0, 0,
2426
2427                PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011,
2428                PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111,
2429                0, 0, 0, 0, 0, 0, 0, 0,
2430
2431                PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11, 0, 0, 0, 0,
2432                0, 0, 0, 0, 0, 0, 0, 0,
2433
2434                PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11, 0, 0, 0, 0,
2435                0, 0, 0, 0, 0, 0, 0, 0 }
2436        },
2437        { PINMUX_CFG_REG("PGCR3", 0xfffe38c8, 16, 4) {
2438                PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11, 0, 0, 0, 0,
2439                0, 0, 0, 0, 0, 0, 0, 0,
2440
2441                PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11, 0, 0, 0, 0,
2442                0, 0, 0, 0, 0, 0, 0, 0,
2443
2444                PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11, 0, 0, 0, 0,
2445                0, 0, 0, 0, 0, 0, 0, 0,
2446
2447                PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11, 0, 0, 0, 0,
2448                0, 0, 0, 0, 0, 0, 0, 0 }
2449        },
2450        { PINMUX_CFG_REG("PGCR2", 0xfffe38ca, 16, 4) {
2451                PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011,
2452                PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111,
2453                0, 0, 0, 0, 0, 0, 0, 0,
2454
2455                PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011,
2456                PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111,
2457                0, 0, 0, 0, 0, 0, 0, 0,
2458
2459                PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011,
2460                PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111,
2461                0, 0, 0, 0, 0, 0, 0, 0,
2462
2463                PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011,
2464                PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111,
2465                0, 0, 0, 0, 0, 0, 0, 0 }
2466        },
2467
2468        { PINMUX_CFG_REG("PGCR1", 0xfffe38cc, 16, 4) {
2469                PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011,
2470                PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111,
2471                0, 0, 0, 0, 0, 0, 0, 0,
2472
2473                PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011,
2474                PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111,
2475                0, 0, 0, 0, 0, 0, 0, 0,
2476
2477                PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011,
2478                PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111,
2479                0, 0, 0, 0, 0, 0, 0, 0,
2480
2481                PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011,
2482                PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111,
2483                0, 0, 0, 0, 0, 0, 0, 0 }
2484        },
2485        { PINMUX_CFG_REG("PGCR0", 0xfffe38ce, 16, 4) {
2486                PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011,
2487                PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111,
2488                0, 0, 0, 0, 0, 0, 0, 0,
2489
2490                PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011,
2491                PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111,
2492                0, 0, 0, 0, 0, 0, 0, 0,
2493
2494                PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011,
2495                PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111,
2496                0, 0, 0, 0, 0, 0, 0, 0,
2497
2498                PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011,
2499                PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111,
2500                0, 0, 0, 0, 0, 0, 0, 0 }
2501        },
2502
2503        { PINMUX_CFG_REG("PGIOR1", 0xfffe38d0, 16, 1) {
2504                0, 0, 0, 0, 0, 0, 0, 0,
2505                PG27_IN, PG27_OUT,
2506                PG26_IN, PG26_OUT,
2507                PG25_IN, PG25_OUT,
2508                PG24_IN, PG24_OUT,
2509                PG23_IN, PG23_OUT,
2510                PG22_IN, PG22_OUT,
2511                PG21_IN, PG21_OUT,
2512                PG20_IN, PG20_OUT,
2513                PG19_IN, PG19_OUT,
2514                PG18_IN, PG18_OUT,
2515                PG17_IN, PG17_OUT,
2516                PG16_IN, PG16_OUT }
2517        },
2518        { PINMUX_CFG_REG("PGIOR0", 0xfffe38d2, 16, 1) {
2519                PG15_IN, PG15_OUT,
2520                PG14_IN, PG14_OUT,
2521                PG13_IN, PG13_OUT,
2522                PG12_IN, PG12_OUT,
2523                PG11_IN, PG11_OUT,
2524                PG10_IN, PG10_OUT,
2525                PG9_IN, PG9_OUT,
2526                PG8_IN, PG8_OUT,
2527                PG7_IN, PG7_OUT,
2528                PG6_IN, PG6_OUT,
2529                PG5_IN, PG5_OUT,
2530                PG4_IN, PG4_OUT,
2531                PG3_IN, PG3_OUT,
2532                PG2_IN, PG2_OUT,
2533                PG1_IN, PG1_OUT,
2534                PG0_IN, PG0_OUT }
2535        },
2536
2537        { PINMUX_CFG_REG("PHCR1", 0xfffe38ec, 16, 4) {
2538                PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11, 0, 0, 0, 0,
2539                0, 0, 0, 0, 0, 0, 0, 0,
2540
2541                PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11, 0, 0, 0, 0,
2542                0, 0, 0, 0, 0, 0, 0, 0,
2543
2544                PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11, 0, 0, 0, 0,
2545                0, 0, 0, 0, 0, 0, 0, 0,
2546
2547                PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11, 0, 0, 0, 0,
2548                0, 0, 0, 0, 0, 0, 0, 0 }
2549        },
2550
2551        { PINMUX_CFG_REG("PHCR0", 0xfffe38ee, 16, 4) {
2552                PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11, 0, 0, 0, 0,
2553                0, 0, 0, 0, 0, 0, 0, 0,
2554
2555                PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11, 0, 0, 0, 0,
2556                0, 0, 0, 0, 0, 0, 0, 0,
2557
2558                PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11, 0, 0, 0, 0,
2559                0, 0, 0, 0, 0, 0, 0, 0,
2560
2561                PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11, 0, 0, 0, 0,
2562                0, 0, 0, 0, 0, 0, 0, 0 }
2563        },
2564
2565        { PINMUX_CFG_REG("PJCR7", 0xfffe3900, 16, 4) {
2566                PJ31MD_0, PJ31MD_1, 0, 0, 0, 0, 0, 0,
2567                0, 0, 0, 0, 0, 0, 0, 0,
2568
2569                PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011,
2570                PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111,
2571                0, 0, 0, 0, 0, 0, 0, 0,
2572
2573                PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011,
2574                PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111,
2575                0, 0, 0, 0, 0, 0, 0, 0,
2576
2577                PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011,
2578                PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111,
2579                0, 0, 0, 0, 0, 0, 0, 0 }
2580        },
2581        { PINMUX_CFG_REG("PJCR6", 0xfffe3902, 16, 4) {
2582                PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011,
2583                PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111,
2584                0, 0, 0, 0, 0, 0, 0, 0,
2585
2586                PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011,
2587                PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111,
2588                0, 0, 0, 0, 0, 0, 0, 0,
2589
2590                PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011,
2591                PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111,
2592                0, 0, 0, 0, 0, 0, 0, 0,
2593
2594                PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011,
2595                PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111,
2596                0, 0, 0, 0, 0, 0, 0, 0 }
2597        },
2598        { PINMUX_CFG_REG("PJCR5", 0xfffe3904, 16, 4) {
2599                PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011,
2600                PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111,
2601                0, 0, 0, 0, 0, 0, 0, 0,
2602
2603                PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011,
2604                PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111,
2605                0, 0, 0, 0, 0, 0, 0, 0,
2606
2607                PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011,
2608                PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111,
2609                0, 0, 0, 0, 0, 0, 0, 0,
2610
2611                PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011,
2612                PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111,
2613                0, 0, 0, 0, 0, 0, 0, 0 }
2614        },
2615        { PINMUX_CFG_REG("PJCR4", 0xfffe3906, 16, 4) {
2616                PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011,
2617                PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111,
2618                0, 0, 0, 0, 0, 0, 0, 0,
2619
2620                PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011,
2621                PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111,
2622                0, 0, 0, 0, 0, 0, 0, 0,
2623
2624                PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011,
2625                PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111,
2626                0, 0, 0, 0, 0, 0, 0, 0,
2627
2628                PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011,
2629                PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111,
2630                0, 0, 0, 0, 0, 0, 0, 0 }
2631        },
2632        { PINMUX_CFG_REG("PJCR3", 0xfffe3908, 16, 4) {
2633                PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011,
2634                PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111,
2635                0, 0, 0, 0, 0, 0, 0, 0,
2636
2637                PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011,
2638                PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111,
2639                0, 0, 0, 0, 0, 0, 0, 0,
2640
2641                PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011,
2642                PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111,
2643                0, 0, 0, 0, 0, 0, 0, 0,
2644
2645                PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011,
2646                PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111,
2647                0, 0, 0, 0, 0, 0, 0, 0 }
2648        },
2649        { PINMUX_CFG_REG("PJCR2", 0xfffe390a, 16, 4) {
2650                PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011,
2651                PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111,
2652                0, 0, 0, 0, 0, 0, 0, 0,
2653
2654                PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011,
2655                PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111,
2656                0, 0, 0, 0, 0, 0, 0, 0,
2657
2658                PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011,
2659                PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111,
2660                0, 0, 0, 0, 0, 0, 0, 0,
2661
2662                PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011,
2663                PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111,
2664                0, 0, 0, 0, 0, 0, 0, 0 }
2665        },
2666        { PINMUX_CFG_REG("PJCR1", 0xfffe390c, 16, 4) {
2667                PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011,
2668                PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111,
2669                0, 0, 0, 0, 0, 0, 0, 0,
2670
2671                PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011,
2672                PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111,
2673                0, 0, 0, 0, 0, 0, 0, 0,
2674
2675                PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011,
2676                PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111,
2677                0, 0, 0, 0, 0, 0, 0, 0,
2678
2679                PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011,
2680                PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111,
2681                0, 0, 0, 0, 0, 0, 0, 0 }
2682        },
2683        { PINMUX_CFG_REG("PJCR0", 0xfffe390e, 16, 4) {
2684                PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011,
2685                PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111,
2686                0, 0, 0, 0, 0, 0, 0, 0,
2687
2688                PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011,
2689                PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111,
2690                0, 0, 0, 0, 0, 0, 0, 0,
2691
2692                PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011,
2693                PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111,
2694                0, 0, 0, 0, 0, 0, 0, 0,
2695
2696                PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011,
2697                PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111,
2698                0, 0, 0, 0, 0, 0, 0, 0 }
2699        },
2700
2701        { PINMUX_CFG_REG("PJIOR1", 0xfffe3910, 16, 1) {
2702                PJ31_IN, PJ31_OUT,
2703                PJ30_IN, PJ30_OUT,
2704                PJ29_IN, PJ29_OUT,
2705                PJ28_IN, PJ28_OUT,
2706                PJ27_IN, PJ27_OUT,
2707                PJ26_IN, PJ26_OUT,
2708                PJ25_IN, PJ25_OUT,
2709                PJ24_IN, PJ24_OUT,
2710                PJ23_IN, PJ23_OUT,
2711                PJ22_IN, PJ22_OUT,
2712                PJ21_IN, PJ21_OUT,
2713                PJ20_IN, PJ20_OUT,
2714                PJ19_IN, PJ19_OUT,
2715                PJ18_IN, PJ18_OUT,
2716                PJ17_IN, PJ17_OUT,
2717                PJ16_IN, PJ16_OUT }
2718        },
2719        { PINMUX_CFG_REG("PJIOR0", 0xfffe3912, 16, 1) {
2720                PJ15_IN, PJ15_OUT,
2721                PJ14_IN, PJ14_OUT,
2722                PJ13_IN, PJ13_OUT,
2723                PJ12_IN, PJ12_OUT,
2724                PJ11_IN, PJ11_OUT,
2725                PJ10_IN, PJ10_OUT,
2726                PJ9_IN, PJ9_OUT,
2727                PJ8_IN, PJ8_OUT,
2728                PJ7_IN, PJ7_OUT,
2729                PJ6_IN, PJ6_OUT,
2730                PJ5_IN, PJ5_OUT,
2731                PJ4_IN, PJ4_OUT,
2732                PJ3_IN, PJ3_OUT,
2733                PJ2_IN, PJ2_OUT,
2734                PJ1_IN, PJ1_OUT,
2735                PJ0_IN, PJ0_OUT }
2736        },
2737
2738        {}
2739};
2740
2741static const struct pinmux_data_reg pinmux_data_regs[] = {
2742        { PINMUX_DATA_REG("PADR0", 0xfffe3816, 16) {
2743                0, 0, 0, 0, 0, 0, 0, PA1_DATA,
2744                0, 0, 0, 0, 0, 0, 0, PA0_DATA }
2745        },
2746
2747        { PINMUX_DATA_REG("PBDR1", 0xfffe3834, 16) {
2748                0, 0, 0, 0, 0, 0, 0, 0,
2749                0, PB22_DATA, PB21_DATA, PB20_DATA,
2750                PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA }
2751        },
2752        { PINMUX_DATA_REG("PBDR0", 0xfffe3836, 16) {
2753                PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA,
2754                PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA,
2755                PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA,
2756                PB3_DATA, PB2_DATA, PB1_DATA, 0 }
2757        },
2758
2759        { PINMUX_DATA_REG("PCDR0", 0xfffe3856, 16) {
2760                0, 0, 0, 0,
2761                0, 0, 0, PC8_DATA,
2762                PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA,
2763                PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA }
2764        },
2765
2766        { PINMUX_DATA_REG("PDDR0", 0xfffe3876, 16) {
2767                PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA,
2768                PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA,
2769                PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA,
2770                PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA }
2771        },
2772
2773        { PINMUX_DATA_REG("PEDR0", 0xfffe3896, 16) {
2774                0, 0, 0, 0, 0, 0, 0, 0,
2775                PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA,
2776                PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA }
2777        },
2778
2779        { PINMUX_DATA_REG("PFDR1", 0xfffe38b4, 16) {
2780                0, 0, 0, 0, 0, 0, 0, 0,
2781                PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA,
2782                PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA }
2783        },
2784        { PINMUX_DATA_REG("PFDR0", 0xfffe38b6, 16) {
2785                PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA,
2786                PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA,
2787                PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA,
2788                PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA }
2789        },
2790
2791        { PINMUX_DATA_REG("PGDR1", 0xfffe38d4, 16) {
2792                0, 0, 0, 0,
2793                PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA,
2794                PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA,
2795                PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA }
2796        },
2797        { PINMUX_DATA_REG("PGDR0", 0xfffe38d6, 16) {
2798                PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA,
2799                PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA,
2800                PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA,
2801                PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA }
2802        },
2803
2804        { PINMUX_DATA_REG("PJDR1", 0xfffe3914, 16) {
2805                PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA,
2806                PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA,
2807                PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA,
2808                PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA }
2809        },
2810        { PINMUX_DATA_REG("PJDR0", 0xfffe3916, 16) {
2811                PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA,
2812                PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA,
2813                PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA,
2814                PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA }
2815        },
2816
2817        { }
2818};
2819
2820const struct sh_pfc_soc_info sh7269_pinmux_info = {
2821        .name = "sh7269_pfc",
2822        .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN },
2823        .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT },
2824        .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
2825
2826        .pins = pinmux_pins,
2827        .nr_pins = ARRAY_SIZE(pinmux_pins),
2828        .func_gpios = pinmux_func_gpios,
2829        .nr_func_gpios = ARRAY_SIZE(pinmux_func_gpios),
2830
2831        .cfg_regs = pinmux_config_regs,
2832        .data_regs = pinmux_data_regs,
2833
2834        .gpio_data = pinmux_data,
2835        .gpio_data_size = ARRAY_SIZE(pinmux_data),
2836};
2837