Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355688
b: refs/heads/master
c: f96be91
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Jan 28, 2013
1 parent c4c51f5 commit f551c23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: abb192f8b90180fd099ee47b8c3817e1209ef80e
refs/heads/master: f96be91ad23f44df9ab2e3370e42e2515ea59481
16 changes: 6 additions & 10 deletions trunk/arch/arm/mach-shmobile/board-mackerel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1406,11 +1406,10 @@ static void __init mackerel_init(void)
gpio_request(GPIO_FN_LCDDISP, NULL);
gpio_request(GPIO_FN_LCDDCK, NULL);

gpio_request(GPIO_PORT31, NULL); /* backlight */
gpio_direction_output(GPIO_PORT31, 0); /* off by default */
/* backlight, off by default */
gpio_request_one(GPIO_PORT31, GPIOF_OUT_INIT_LOW, NULL);

gpio_request(GPIO_PORT151, NULL); /* LCDDON */
gpio_direction_output(GPIO_PORT151, 1);
gpio_request_one(GPIO_PORT151, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */

/* USBHS0 */
gpio_request(GPIO_FN_VBUS0_0, NULL);
Expand All @@ -1426,8 +1425,7 @@ static void __init mackerel_init(void)
gpio_request(GPIO_FN_FSIAILR, NULL);
gpio_request(GPIO_FN_FSIAISLD, NULL);
gpio_request(GPIO_FN_FSIAOSLD, NULL);
gpio_request(GPIO_PORT161, NULL);
gpio_direction_output(GPIO_PORT161, 0); /* slave */
gpio_request_one(GPIO_PORT161, GPIOF_OUT_INIT_LOW, NULL); /* slave */

gpio_request(GPIO_PORT9, NULL);
gpio_request(GPIO_PORT10, NULL);
Expand Down Expand Up @@ -1481,8 +1479,7 @@ static void __init mackerel_init(void)
gpio_request(GPIO_FN_SDHID1_0, NULL);
#endif
/* card detect pin for MMC slot (CN7) */
gpio_request(GPIO_PORT41, NULL);
gpio_direction_input(GPIO_PORT41);
gpio_request_one(GPIO_PORT41, GPIOF_IN, NULL);

/* enable SDHI2 */
gpio_request(GPIO_FN_SDHICMD2, NULL);
Expand All @@ -1493,8 +1490,7 @@ static void __init mackerel_init(void)
gpio_request(GPIO_FN_SDHID2_0, NULL);

/* card detect pin for microSD slot (CN23) */
gpio_request(GPIO_PORT162, NULL);
gpio_direction_input(GPIO_PORT162);
gpio_request_one(GPIO_PORT162, GPIOF_IN, NULL);

/* MMCIF */
gpio_request(GPIO_FN_MMCD0_0, NULL);
Expand Down

0 comments on commit f551c23

Please sign in to comment.