Commit f8594c28 authored by Valentin Longchamp's avatar Valentin Longchamp Committed by Sascha Hauer

mx31moboard: change initial reset status for robot microcontollers

We want the microcontrollers to be held in reset during kernel boot.

We also set the turretcam as the default camera since it is present on all
marxbots.
Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@epfl.ch>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent fed9b63c
...@@ -127,12 +127,12 @@ static struct imxmmc_platform_data sdhc2_pdata = { ...@@ -127,12 +127,12 @@ static struct imxmmc_platform_data sdhc2_pdata = {
static void dspics_resets_init(void) static void dspics_resets_init(void)
{ {
if (!gpio_request(TRSLAT_RST_B, "translator-rst")) { if (!gpio_request(TRSLAT_RST_B, "translator-rst")) {
gpio_direction_output(TRSLAT_RST_B, 1); gpio_direction_output(TRSLAT_RST_B, 0);
gpio_export(TRSLAT_RST_B, false); gpio_export(TRSLAT_RST_B, false);
} }
if (!gpio_request(DSPICS_RST_B, "dspics-rst")) { if (!gpio_request(DSPICS_RST_B, "dspics-rst")) {
gpio_direction_output(DSPICS_RST_B, 1); gpio_direction_output(DSPICS_RST_B, 0);
gpio_export(DSPICS_RST_B, false); gpio_export(DSPICS_RST_B, false);
} }
} }
...@@ -200,7 +200,7 @@ static int __init marxbot_cam_init(void) ...@@ -200,7 +200,7 @@ static int __init marxbot_cam_init(void)
int ret = gpio_request(CAM_CHOICE, "cam-choice"); int ret = gpio_request(CAM_CHOICE, "cam-choice");
if (ret) if (ret)
return ret; return ret;
gpio_direction_output(CAM_CHOICE, 1); gpio_direction_output(CAM_CHOICE, 0);
ret = gpio_request(BASECAM_RST_B, "basecam-reset"); ret = gpio_request(BASECAM_RST_B, "basecam-reset");
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment