board: atmel: add support for pda detection
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 18 Sep 2018 07:35:42 +0000 (10:35 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 00:22:39 +0000 (20:22 -0400)
commitafaea1f56c45f93489cad1a3a3b0c1fbd820fd59
treec070d134752c8271e72dee8e498f305fd6dcaa27
parente42561880cd818e6bd4022a0bcbc73b011faf8a4
board: atmel: add support for pda detection

This adds the support for PDA detection as common code for
Atmel boards.
Using the one wire interface over GPIO , an EEPROM memory is read
and compared to preprogrammed values for PDA screens TM4300, TM7000
and TM7000B.
Once the PDA is detected, an environment variable is set accordingly.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
board/atmel/common/board.c