Disable manual voltage setting during normal operation

Setting the voltage manually on the EM100Pro-G2 has been proven
to be harmful abd leave the device in a non-functional state until
the next reboot of the EM100Pro-G2.

To keep users from accidently rendering the device useless in this
manner, disable setting voltage manually unless you are in debug mode,
in which case you probably want the tools to shoot yourself in the foot
available to you.

The rationale for disabling manual voltage setting is that there are
basically two cases that can be encountered when you specify the voltage
manually:
- You're specifying the voltage that would have been set automatically.
  This case is broken and will result in bad behavior of the device.
- You're specifying the "other" voltage, that is not supported by the
  flash chip you selected. This is a bad idea and broken, too.

Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Change-Id: I2679d7f4d502db8feff4354b33486ff0f4ad6934
Reviewed-on: https://review.coreboot.org/c/em100/+/65092
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Christian Walter <christian.walter@9elements.com>
1 file changed