Skip to contentSkip to conversation

rt2x00: fix votage setting for RT3572/RT3592

PATCH In review Marc Kleine-Budde 3 participants 4 messages Aug 26, 2012 – Sep 5, 2012 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt2x00: fix votage setting for RT3572/RT3592

According to the vendor driver v2.6.0.1, during the rf register init the SRAM voltage should be increased to 1.35V and after 1ms decreased back to 1.2V. This patch adds the field setting of LDO_CFG0_LDO_CORE_VLEVEL accordingly.

Cc Gertjan van Wingerde <[email protected]>

---
Hello,

I don't have the hardware to test, just stumbled over this while hacking on the rt3593.

regards, Marc

 drivers/net/wireless/rt2x00/rt2800lib.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/rt2x00/rt2800lib.c +1 -0
index cb8c2ac..b93516d 100644
@@ -4089,6 +4089,7 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev)
 		rt2800_register_write(rt2x00dev, LDO_CFG0, reg);
 		msleep(1);
 		rt2800_register_read(rt2x00dev, LDO_CFG0, &reg);
+		rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 0);
 		rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1);
 		rt2800_register_write(rt2x00dev, LDO_CFG0, reg);
 	}
Signature · 1 line
1.7.10
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Marc Kleine-Budde

According to the vendor driver v2.6.0.1, during the rf register init the SRAM voltage should be increased to 1.35V and after 1ms decreased back to 1.2V. This patch adds the field setting of LDO_CFG0_LDO_CORE_VLEVEL accordingly.

Cc Gertjan van Wingerde <[email protected]>
Quoted 30 lines

---
Hello,

I don't have the hardware to test, just stumbled over this while hacking on the rt3593.

regards, Marc

 drivers/net/wireless/rt2x00/rt2800lib.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
index cb8c2ac..b93516d 100644
@@ -4089,6 +4089,7 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev)
                rt2800_register_write(rt2x00dev, LDO_CFG0, reg);
                msleep(1);
                rt2800_register_read(rt2x00dev, LDO_CFG0, &reg);
+               rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 0);
                rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1);
                rt2800_register_write(rt2x00dev, LDO_CFG0, reg);
        }
--

1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 9 lines · Ivo Van Doorn
Quoted 6 lines · Marc Kleine-Budde

According to the vendor driver v2.6.0.1, during the rf register init the SRAM voltage should be increased to 1.35V and after 1ms decreased back to 1.2V. This patch adds the field setting of LDO_CFG0_LDO_CORE_VLEVEL accordingly.

Cc Gertjan van Wingerde <[email protected]>

Ping. Is someone taking care of this patch?

Marc

Quoted 36 lines
Quoted 27 lines

---
Hello,

I don't have the hardware to test, just stumbled over this while hacking on the rt3593.

regards, Marc

 drivers/net/wireless/rt2x00/rt2800lib.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
index cb8c2ac..b93516d 100644
@@ -4089,6 +4089,7 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev)
                rt2800_register_write(rt2x00dev, LDO_CFG0, reg);
                msleep(1);
                rt2800_register_read(rt2x00dev, LDO_CFG0, &reg);
+               rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 0);
                rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1);
                rt2800_register_write(rt2x00dev, LDO_CFG0, reg);
        }
--

1.7.10

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Marc,

Sent from my iPad

Quoted 6 lines · Marc Kleine-Budde
Quoted 5 lines · Ivo Van Doorn
Quoted 4 lines · Marc Kleine-Budde

According to the vendor driver v2.6.0.1, during the rf register init the SRAM voltage should be increased to 1.35V and after 1ms decreased back to 1.2V. This patch adds the field setting of LDO_CFG0_LDO_CORE_VLEVEL accordingly.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Cc Gertjan van Wingerde <[email protected]>

Ping. Is someone taking care of this patch?

Normally, John takes these patches after Ivo, Helmut or I have acked them. However, I believe he was travelling last week, so it takes a bit longer to be applied.

---
Gertjan