All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/11] imx: ventana: add iomux for PCISKT_WDIS# gpio
Date: Wed, 20 Aug 2014 13:03:41 +0200	[thread overview]
Message-ID: <53F4808D.1010104@denx.de> (raw)
In-Reply-To: <1407476151-5603-11-git-send-email-tharvey@gateworks.com>

Hi Tim,

On 08/08/2014 07:35, Tim Harvey wrote:
> The PCISKT_WDIS# gpio allows for asserting WDIS# going to the various PCIe
> sockets on the Ventana board.
> 
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
>  board/gateworks/gw_ventana/gw_ventana.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
> index d57ede4..1c24e4b 100644
> --- a/board/gateworks/gw_ventana/gw_ventana.c
> +++ b/board/gateworks/gw_ventana/gw_ventana.c
> @@ -581,6 +581,8 @@ static iomux_v3_cfg_t const gw51xx_gpio_pads[] = {
>  	IOMUX_PADS(PAD_CSI0_DATA_EN__GPIO5_IO20 | DIO_PAD_CFG),
>  	/* PCI_RST# */
>  	IOMUX_PADS(PAD_GPIO_0__GPIO1_IO00 | DIO_PAD_CFG),
> +	/* PCIESKT_WDIS# */
> +	IOMUX_PADS(PAD_GPIO_17__GPIO7_IO12 | DIO_PAD_CFG),
>  };
>  
>  static iomux_v3_cfg_t const gw52xx_gpio_pads[] = {
> @@ -603,6 +605,8 @@ static iomux_v3_cfg_t const gw52xx_gpio_pads[] = {
>  	IOMUX_PADS(PAD_EIM_D31__GPIO3_IO31 | DIO_PAD_CFG),
>  	/* PCI_RST# */
>  	IOMUX_PADS(PAD_ENET_TXD1__GPIO1_IO29 | DIO_PAD_CFG),
> +	/* PCIESKT_WDIS# */
> +	IOMUX_PADS(PAD_GPIO_17__GPIO7_IO12 | DIO_PAD_CFG),
>  };
>  
>  static iomux_v3_cfg_t const gw53xx_gpio_pads[] = {
> @@ -625,6 +629,8 @@ static iomux_v3_cfg_t const gw53xx_gpio_pads[] = {
>  	IOMUX_PADS(PAD_EIM_D31__GPIO3_IO31 | DIO_PAD_CFG),
>  	/* PCI_RST# */
>  	IOMUX_PADS(PAD_ENET_TXD1__GPIO1_IO29 | DIO_PAD_CFG),
> +	/* PCIESKT_WDIS# */
> +	IOMUX_PADS(PAD_GPIO_17__GPIO7_IO12 | DIO_PAD_CFG),
>  };
>  
>  static iomux_v3_cfg_t const gw54xx_gpio_pads[] = {
> @@ -650,6 +656,8 @@ static iomux_v3_cfg_t const gw54xx_gpio_pads[] = {
>  	IOMUX_PADS(PAD_ENET_TXD1__GPIO1_IO29 | DIO_PAD_CFG),
>  	/* VID_EN */
>  	IOMUX_PADS(PAD_EIM_D31__GPIO3_IO31 | DIO_PAD_CFG),
> +	/* PCIESKT_WDIS# */
> +	IOMUX_PADS(PAD_DISP0_DAT23__GPIO5_IO17 | DIO_PAD_CFG),
>  };
>  
>  /*
> @@ -680,6 +688,7 @@ struct ventana {
>  	int dioi2c_en;
>  	int pcie_sson;
>  	int usb_sel;
> +	int wdis;
>  };
>  
>  struct ventana gpio_cfg[] = {
> @@ -765,6 +774,7 @@ struct ventana gpio_cfg[] = {
>  		.mezz_irq = IMX_GPIO_NR(2, 18),
>  		.gps_shdn = IMX_GPIO_NR(1, 2),
>  		.vidin_en = IMX_GPIO_NR(5, 20),
> +		.wdis = IMX_GPIO_NR(7, 12),
>  	},
>  
>  	/* GW52xx */
> @@ -808,6 +818,7 @@ struct ventana gpio_cfg[] = {
>  		.gps_shdn = IMX_GPIO_NR(1, 27),
>  		.vidin_en = IMX_GPIO_NR(3, 31),
>  		.usb_sel = IMX_GPIO_NR(1, 2),
> +		.wdis = IMX_GPIO_NR(7, 12),
>  	},
>  
>  	/* GW53xx */
> @@ -850,6 +861,7 @@ struct ventana gpio_cfg[] = {
>  		.mezz_irq = IMX_GPIO_NR(2, 18),
>  		.gps_shdn = IMX_GPIO_NR(1, 27),
>  		.vidin_en = IMX_GPIO_NR(3, 31),
> +		.wdis = IMX_GPIO_NR(7, 12),
>  	},
>  
>  	/* GW54xx */
> @@ -894,6 +906,7 @@ struct ventana gpio_cfg[] = {
>  		.vidin_en = IMX_GPIO_NR(3, 31),
>  		.dioi2c_en = IMX_GPIO_NR(4,  5),
>  		.pcie_sson = IMX_GPIO_NR(1, 20),
> +		.wdis = IMX_GPIO_NR(5, 17),
>  	},
>  };
>  
> @@ -1019,6 +1032,10 @@ static void setup_board_gpio(int board)
>  	if (gpio_cfg[board].usb_sel)
>  		gpio_direction_output(gpio_cfg[board].usb_sel, 0);
>  
> +	/* PCISKT_WDIS# (Wireless disable GPIO to miniPCIe sockets) */
> +	if (gpio_cfg[board].wdis)
> +		gpio_direction_output(gpio_cfg[board].wdis, 1);
> +
>  	/*
>  	 * Configure DIO pinmux/padctl registers
>  	 * see IMX6DQRM/IMX6SDLRM IOMUXC_SW_PAD_CTL_PAD_* register definitions
> 

Applied to u-boot-imx, thanks !

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
=====================================================================

  reply	other threads:[~2014-08-20 11:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-08  5:35 [U-Boot] [PATCH 00/11] imx: ventana: misc patches Tim Harvey
2014-08-08  5:35 ` [U-Boot] [PATCH 01/11] imx: ventana: set dynamic env var for flash layout Tim Harvey
2014-08-20 10:52   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 02/11] imx: ventana: added cputype env var Tim Harvey
2014-08-14 15:23   ` Stefano Babic
2014-08-18 13:52     ` Tim Harvey
2014-08-20 10:51       ` Stefano Babic
2014-09-09 13:19   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 03/11] imx: ventana: remove caam disable per eeprom bit Tim Harvey
2014-08-20 10:53   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 04/11] imx: ventana: add appropriate delay following GSC i2c write Tim Harvey
2014-08-20 10:54   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 05/11] imx: ventana: add econfig command Tim Harvey
2014-08-20 11:09   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 06/11] imx: ventana: add video enable gpio pinmux for GW54xx Tim Harvey
2014-08-20 10:59   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 07/11] imx: ventana: add missing crlf to print Tim Harvey
2014-08-20 11:00   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 08/11] imx: ventana: configure i2c_dis# pin properly for gw53xx Tim Harvey
2014-08-20 11:02   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 09/11] imx: ventana: enable SION bit on gpio outputs Tim Harvey
2014-08-20 11:02   ` Stefano Babic
2014-08-08  5:35 ` [U-Boot] [PATCH 10/11] imx: ventana: add iomux for PCISKT_WDIS# gpio Tim Harvey
2014-08-20 11:03   ` Stefano Babic [this message]
2014-08-08  5:35 ` [U-Boot] [PATCH 11/11] imx: ventana: leave PCI reset de-asserted if PCI enabled Tim Harvey
2014-08-20 11:05   ` 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=53F4808D.1010104@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.