From patchwork Tue May 14 04:01:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renato Frias X-Patchwork-Id: 243604 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C59D42C0099 for ; Tue, 14 May 2013 14:53:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52D224A0A6; Tue, 14 May 2013 06:53:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zo1fyQPrwbCv; Tue, 14 May 2013 06:53:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0E9D24A095; Tue, 14 May 2013 06:53:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 129774A058 for ; Tue, 14 May 2013 06:18:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XF6LlQqMvGki for ; Tue, 14 May 2013 06:18:53 +0200 (CEST) X-Greylist: delayed 908 seconds by postgrey-1.27 at theia; Tue, 14 May 2013 06:18:47 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe005.messaging.microsoft.com [207.46.163.28]) by theia.denx.de (Postfix) with ESMTPS id C23DD4A056 for ; Tue, 14 May 2013 06:18:47 +0200 (CEST) Received: from mail171-co9-R.bigfish.com (10.236.132.254) by CO9EHSOBE036.bigfish.com (10.236.130.99) with Microsoft SMTP Server id 14.1.225.23; Tue, 14 May 2013 04:03:37 +0000 Received: from mail171-co9 (localhost [127.0.0.1]) by mail171-co9-R.bigfish.com (Postfix) with ESMTP id 09DAACC0086; Tue, 14 May 2013 04:03:37 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 3 X-BigFish: VS3(zzzz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6h1082kzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h1354h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1d3fh1155h) Received: from mail171-co9 (localhost.localdomain [127.0.0.1]) by mail171-co9 (MessageSwitch) id 1368504214640953_9033; Tue, 14 May 2013 04:03:34 +0000 (UTC) Received: from CO9EHSMHS022.bigfish.com (unknown [10.236.132.239]) by mail171-co9.bigfish.com (Postfix) with ESMTP id 9A73D2C0048; Tue, 14 May 2013 04:03:34 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS022.bigfish.com (10.236.130.32) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 14 May 2013 04:03:32 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.328.11; Tue, 14 May 2013 04:03:31 +0000 Received: from localhost.localdomain ([10.213.169.8]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r4E42ttp024743; Mon, 13 May 2013 21:03:30 -0700 From: Renato Frias To: Date: Tue, 14 May 2013 00:01:13 -0400 Message-ID: <1368504074-17600-2-git-send-email-b13784@freescale.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1368504074-17600-1-git-send-email-b13784@freescale.com> References: <1368504074-17600-1-git-send-email-b13784@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-Mailman-Approved-At: Tue, 14 May 2013 06:53:29 +0200 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/2] mx6qsabreauto: Add Port Expander reset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 Acked-by: Stefano Babic --- 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; }