watchdog: rave-sp-wdt: Explicitly access EEPROM for bootsource
RAVE SP firmware versions found on RDU2 provide decicated bootsource
manipulation commands, which, under the hood, are just thin wrappers
around write/read to a particular location in EEPROM.

Unfortunately, RAVE SP firmware found on RDU1, does not provide any
dedicated bootsource commands and its users are expected to access
EEPROM directly.

In order to avoid having separate code paths for handling those two
cases, convert the code to access EEPROM directly via NVMEM API.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a880a7f commit edb4379ab7bc3886e0390a19223f6b1543326a82
@Andrey Smirnov Andrey Smirnov authored on 24 Jun 2018
Sascha Hauer committed on 26 Jun 2018
Showing 1 changed file
View
drivers/watchdog/rave-sp-wdt.c