From patchwork Tue May 12 06:12:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Huau X-Patchwork-Id: 471144 X-Patchwork-Delegate: sjg@chromium.org 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 1F8B714007F for ; Tue, 12 May 2015 16:13:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2DB594B62A; Tue, 12 May 2015 08:13:13 +0200 (CEST) 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 4kaxEAjD1a4J; Tue, 12 May 2015 08:13:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8A3F24B61A; Tue, 12 May 2015 08:13:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 644B14B61A for ; Tue, 12 May 2015 08:13:10 +0200 (CEST) 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 9wUOCmIUckON for ; Tue, 12 May 2015 08:13:10 +0200 (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 smtpout2.mel.teaser.net (smtpout2.mel.teaser.net [213.162.54.61]) by theia.denx.de (Postfix) with ESMTP id 30E8A4B616 for ; Tue, 12 May 2015 08:13:05 +0200 (CEST) Received: from localhost.localdomain (c-24-18-130-6.hsd1.wa.comcast.net [24.18.130.6]) by smtpout2.mel.teaser.net (Postfix) with ESMTPA id 7ED7238DEA; Tue, 12 May 2015 08:13:04 +0200 (CEST) From: Gabriel Huau To: u-boot@lists.denx.de, Simon Glass , Graeme Russ Date: Mon, 11 May 2015 23:12:44 -0700 Message-Id: <1431411164-2148-1-git-send-email-contact@huau-gabriel.fr> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1429805775-1809-1-git-send-email-contact@huau-gabriel.fr> References: <1429805775-1809-1-git-send-email-contact@huau-gabriel.fr> Cc: Gabriel Huau Subject: [U-Boot] [PATCH v3 4/4] x86: minnowmax: initialize the pin-muxing from device tree X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Gabriel Huau Acked-by: Simon Glass Acked-by: Simon Glass Tested-by: Simon Glass --- Changes in v3: - Rebase to the origin/master Changes in v2: - Fix ordering of include header board/intel/minnowmax/minnowmax.c | 9 +++++++++ include/configs/minnowmax.h | 1 + 2 files changed, 10 insertions(+) diff --git a/board/intel/minnowmax/minnowmax.c b/board/intel/minnowmax/minnowmax.c index 1f5549a..383cae0 100644 --- a/board/intel/minnowmax/minnowmax.c +++ b/board/intel/minnowmax/minnowmax.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -12,6 +13,14 @@ #define SERIAL_DEV PNP_DEV(0x2e, 4) +int arch_early_init_r(void) +{ + /* do the pin-muxing */ + gpio_ich6_pinctrl_init(); + + return 0; +} + int board_early_init_f(void) { lpc47m_enable_serial(SERIAL_DEV, UART0_BASE, UART0_IRQ); diff --git a/include/configs/minnowmax.h b/include/configs/minnowmax.h index eb35a50..547765d 100644 --- a/include/configs/minnowmax.h +++ b/include/configs/minnowmax.h @@ -15,6 +15,7 @@ #define CONFIG_SYS_MONITOR_LEN (1 << 20) #define CONFIG_BOARD_EARLY_INIT_F +#define CONFIG_ARCH_EARLY_INIT_R #define CONFIG_X86_SERIAL #define CONFIG_SMSC_LPC47M