diff options
author | Tom Rini <trini@konsulko.com> | 2020-11-19 10:23:50 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-19 10:23:50 -0500 |
commit | b80680633dc954d32f81f3afacd3d1f2f3d290b0 (patch) | |
tree | c551b408e9b714348c1f4f34b14a23d4641021b8 /drivers/led/led_bcm6858.c | |
parent | e800d715e01daffa9a5078c974f4568d6ef9e7c3 (diff) | |
parent | dd4866b43754b18f0c06672e341d93e16b8bf674 (diff) |
Merge branch '2020-11-18-assorted-fixes'
- Assorted SquashFS fixes and cleanups
- Fixes for various Coverity issues
- Various fixups to other platforms / code
Diffstat (limited to 'drivers/led/led_bcm6858.c')
-rw-r--r-- | drivers/led/led_bcm6858.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c index b415d8b2b40..511185ffad7 100644 --- a/drivers/led/led_bcm6858.c +++ b/drivers/led/led_bcm6858.c @@ -40,8 +40,8 @@ #define LED_FLASH_RATE_CONTROL_REG0 0x10 /* Soft LED input register */ #define LED_SW_LED_IP_REG 0xb8 -/* Soft LED input polarity register */ -#define LED_SW_LED_IP_PPOL_REG 0xbc +/* Parallel LED Output Polarity Register */ +#define LED_PLED_OP_PPOL_REG 0xc0 struct bcm6858_led_priv { void __iomem *regs; @@ -198,9 +198,9 @@ static int bcm6858_led_probe(struct udevice *dev) /* configure the polarity */ if (dev_read_bool(dev, "active-low")) - clrbits_32(regs + LED_SW_LED_IP_PPOL_REG, 1 << pin); + clrbits_32(regs + LED_PLED_OP_PPOL_REG, 1 << pin); else - setbits_32(regs + LED_SW_LED_IP_PPOL_REG, 1 << pin); + setbits_32(regs + LED_PLED_OP_PPOL_REG, 1 << pin); } return 0; |