Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172459
b: refs/heads/master
c: 10949ff
h: refs/heads/master
i:
  172457: 81d1a35
  172455: 1db5017
v: v3
  • Loading branch information
Valentin Longchamp authored and Sascha Hauer committed Nov 14, 2009
1 parent f6d4521 commit 7617265
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 421bf82e996826452ebe2011419f846a61950784
refs/heads/master: 10949fff622e1488f0c534a10bca8edf5df95682
7 changes: 7 additions & 0 deletions trunk/arch/arm/mach-mx3/mx31moboard-marxbot.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ static unsigned int marxbot_pins[] = {
MX31_PIN_TXD2__GPIO1_28,
/* dsPIC resets */
MX31_PIN_STXD5__GPIO1_21, MX31_PIN_SRXD5__GPIO1_22,
/*battery detection */
MX31_PIN_LCS0__GPIO3_23,
};

#define SDHC2_CD IOMUX_TO_GPIO(MX31_PIN_ATA_DIOR)
Expand Down Expand Up @@ -133,4 +135,9 @@ void __init mx31moboard_marxbot_init(void)
dspics_resets_init();

mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata);

/* battery present pin */
gpio_request(IOMUX_TO_GPIO(MX31_PIN_LCS0), "bat-present");
gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_LCS0));
gpio_export(IOMUX_TO_GPIO(MX31_PIN_LCS0), false);
}

0 comments on commit 7617265

Please sign in to comment.