dediprog: Invert the LED polarity in the code

Previously we have used low-active macros (because the hardware and
old protocol were so too) and set every single LED explicitly although we
only used a limited number of combinations. Using an enumeration for
commonly used values instead makes things easier.

Based on the following chromiumos change:
Change-Id: Ie481a583e623cdc45e3649a4db69b15570f65a7b

Corresponding to flashrom svn r1894.

Signed-off-by: Simon Glass <>
Signed-off-by: Stefan Tauner <>
Acked-by: Stefan Tauner <>
Acked-by: David Hendricks <>
1 file changed