Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304634
b: refs/heads/master
c: 0e545f6
h: refs/heads/master
v: v3
  • Loading branch information
Oleksij Rempel authored and Greg Kroah-Hartman committed May 10, 2012
1 parent 16d7692 commit fe2c216
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39d65739be5e9a45427d8d2871c0cd32394b8a9a
refs/heads/master: 0e545f6d165ad0180b0d04fe1291f6f6268047ff
28 changes: 13 additions & 15 deletions trunk/drivers/staging/rts5139/rts51x_chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,18 @@ int rts51x_reset_chip(struct rts51x_chip *chip)
chip->option.sd20_pad_drive);
if (chip->rts5179)
rts51x_write_register(chip, CARD_PULL_CTL5, 0x03, 0x01);
if (!chip->option.ww_enable) {
if (CHECK_PKG(chip, LQFP48)) {
rts51x_write_register(chip, CARD_PULL_CTL3,
0x80, 0x80);
rts51x_write_register(chip, CARD_PULL_CTL6,
0xf0, 0xA0);
} else {
rts51x_write_register(chip, CARD_PULL_CTL1,
0x30, 0x20);
rts51x_write_register(chip, CARD_PULL_CTL3,
0x80, 0x80);
rts51x_write_register(chip, CARD_PULL_CTL6,
0x0c, 0x08);
}
if (CHECK_PKG(chip, LQFP48)) {
rts51x_write_register(chip, CARD_PULL_CTL3,
0x80, 0x80);
rts51x_write_register(chip, CARD_PULL_CTL6,
0xf0, 0xA0);
} else {
rts51x_write_register(chip, CARD_PULL_CTL1,
0x30, 0x20);
rts51x_write_register(chip, CARD_PULL_CTL3,
0x80, 0x80);
rts51x_write_register(chip, CARD_PULL_CTL6,
0x0c, 0x08);
}
}
if (chip->option.sd_ctl & SUPPORT_UHS50_MMC44) {
Expand Down Expand Up @@ -715,7 +713,7 @@ void rts51x_do_before_power_down(struct rts51x_chip *chip)
chip->cur_clk = 0;
chip->card_exist = 0;
chip->cur_card = 0;
if (chip->asic_code && !chip->option.ww_enable) {
if (chip->asic_code) {
if (CHECK_PKG(chip, LQFP48)) {
rts51x_write_register(chip, CARD_PULL_CTL3, 0x80, 0x00);
rts51x_write_register(chip, CARD_PULL_CTL6, 0xf0, 0x50);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/rts5139/rts51x_chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ struct rts51x_option {
int ss_en;
/* Interval to enter SS from IDLE state (second) */
int ss_delay;
u8 ww_enable; /* sangdy2010-08-03:add for remote wakeup */

/* Enable SSC clock */
int ssc_en;
Expand Down

0 comments on commit fe2c216

Please sign in to comment.