pia35x: fix compile error

- add header struct as parameter to GPIO init function to allow
  different configurations for different board revisions

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia-am335x-pm: add base pinmux for piA-AM335x-PM based systems

- base configuration for on PM only pins
- also add the interfaces which are very unlikely to change on any baseboard

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia335x: eb_tft: add default pin mux for EB_TFT baseboard

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia-am335x: get eeprom name from boards.cfg for first start init

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia-am335x: change NAND initialization if no NAND present

- check for a special flag in ID EEPROM config[1] == 'N'
- only initialize NAND on board which have it (currently E2)
- return correct value, if board without NAND (0 would have indicated
  success == NAND present)

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia-am335x: allow ID EEPROM on second I2C bus

- piA-AM335x-PM baseboards have their ID EEPROMS on I2C1 instead of I2C0
- probe bus 0 first, then probe bus 1 if no EEPROM was detected on bus 0

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia-am335x: update board specs

- try not to use defines for anything but NAND configuration
- am335x_pia and am335x_pia_mmi can be the same now
- TODO: maybe we can get rid of CONFIG_PIA_NAND as well, in case it
  doesn't hurt other boards. NAND detection and initialization is now
  hopefully correctly handled by the EEPROM config.
- add CONFIG_PIA as generic option, to allow different EEPROM layout.
- only do special NAND config check if we are compiled for a pia board
- remove all unnecessary boards.conf defines from regular configurations.

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia-am335x-eb-tft: add board config

- piA-AM335x-PM + EB_TFT_Baseboard

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
pia-am335x-e2: enable NAND for E2 firststart config

- in firststart mode enable NAND as well for E2 board

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
Merge branch 'pia-am335x-mmi-dev' into pia-am335x-e2-dev

* pia-am335x-mmi-dev:
  pia-am335x-mmi: add support for board variants
  pia-am335x-mmi: update Debug UART pinmux
  pia-am335x-mmi: update boards.cfg for new MMI revision 0.2
  pia335x-mmi: disable RMII Refclock signal
  pia335x: fix compile error
Merge commit 'e56dbb1dd34fdbe33861cac7e9c7e23ad7d3aed0' into pia-am335x-e2-dev

* commit 'e56dbb1dd34fdbe33861cac7e9c7e23ad7d3aed0':
  pia-am335x-e2: enable NAND for E2 firststart config
  pia-am335x-eb-tft: add board config
  pia-am335x: update board specs
  pia-am335x: allow ID EEPROM on second I2C bus
  pia-am335x: change NAND initialization if no NAND present
  pia-am335x: get eeprom name from boards.cfg for first start init
  pia335x: eb_tft: add default pin mux for EB_TFT baseboard
  pia-am335x-pm: add base pinmux for piA-AM335x-PM based systems