From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] mx6qsabreauto: Add Port Expander reset
Date: Wed, 15 May 2013 12:13:51 +0200 [thread overview]
Message-ID: <51935FDF.9040405@denx.de> (raw)
In-Reply-To: <1368504074-17600-2-git-send-email-b13784@freescale.com>
On 14/05/2013 06:01, Renato Frias wrote:
> There are 3 IO expanders on the mx6qsabreauto all reset by the
> same GPIO, just set it to high to use the IO.
>
> Signed-off-by: Renato Frias <b13784@freescale.com>
> ---
> board/freescale/mx6qsabreauto/mx6qsabreauto.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
> index d6df750..eb2561e 100644
> --- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c
> +++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
> @@ -119,6 +119,10 @@ iomux_v3_cfg_t const i2c3_pads[] = {
> MX6_PAD_EIM_A24__GPIO_5_4 | MUX_PAD_CTRL(NO_PAD_CTRL),
> };
>
> +iomux_v3_cfg_t const port_exp[] = {
> + MX6_PAD_SD2_DAT0__GPIO_1_15 | MUX_PAD_CTRL(NO_PAD_CTRL),
> +};
> +
> static void setup_iomux_enet(void)
> {
> imx_iomux_v3_setup_multiple_pads(enet_pads, ARRAY_SIZE(enet_pads));
> @@ -266,6 +270,9 @@ int board_init(void)
> imx_iomux_v3_setup_multiple_pads(i2c3_pads, ARRAY_SIZE(i2c3_pads));
> setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2);
>
> + gpio_direction_output(IMX_GPIO_NR(1, 15), 1);
> + imx_iomux_v3_setup_multiple_pads(port_exp, ARRAY_SIZE(port_exp));
> +
> return 0;
> }
>
>
Acked-by: Stefano Babic <sbabic@denx.de>
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2013-05-15 10:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 4:01 [U-Boot] [PATCH 1/2] mx6qsabreauto: Add i2c to mx6qsabreauto board Renato Frias
2013-05-14 4:01 ` [U-Boot] [PATCH 2/2] mx6qsabreauto: Add Port Expander reset Renato Frias
2013-05-15 10:13 ` Stefano Babic [this message]
2013-06-03 11:21 ` Stefano Babic
2013-05-14 22:27 ` [U-Boot] [PATCH 1/2] mx6qsabreauto: Add i2c to mx6qsabreauto board Otavio Salvador
2013-05-15 1:07 ` Fabio Estevam
2013-05-15 10:13 ` Stefano Babic
2013-06-03 11:20 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51935FDF.9040405@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox