mips: mt76xx: gardena-smart-gateway: Add factory data variable handling
authorStefan Roese <sr@denx.de>
Fri, 30 Nov 2018 06:46:30 +0000 (07:46 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 30 Nov 2018 16:21:44 +0000 (17:21 +0100)
commit7b3af03ffd2ac59bee373bdaf2fefabe14a6c74d
treeda78bc132bb8b37ee5a6526fde115c92c057bf79
parentd09d21cd2d9af8d7efd47ee1e1f03d2c9feb4b38
mips: mt76xx: gardena-smart-gateway: Add factory data variable handling

Some factory data is stored in the SPI NOR and needs to get extracted
from there into U-Boot environment variables.

This patch also includes a board-specific command "fd_write" to
provide some dummy / default values for this factory-data in the SPI
NOR flash. This should only be necessary for testing purposes though.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
board/gardena/smart-gateway-mt7688/board.c