]> git.baikalelectronics.ru Git - uboot.git/commit
board: atmel: fix pda variable not being reset
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 12 Jun 2019 10:16:18 +0000 (13:16 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 27 Jun 2019 06:47:49 +0000 (09:47 +0300)
commitd30992d74d863acddbab1e5737e2e315e8c8d1b3
tree7cf2c1269c08769a15ac975f324802567ac8369b
parent6ac35db6d027aa62d5372287d71eca120155246f
board: atmel: fix pda variable not being reset

In case someone detects a PDA and u-boot sets the 'pda' variable,
and the user does a saveenv, the pda is set in env, and if the
screen is removed, u-boot will still have in the env the 'pda'
variable, even if no screen is attached.
In order to fix this, we have to reset the 'pda' variable,
such that it's not just set if the screen is detected, but also unset
if no screen is detected.

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