From patchwork Tue Apr 29 23:15:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ash Charles X-Patchwork-Id: 344019 X-Patchwork-Delegate: trini@ti.com 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 2A1AC14010D for ; Wed, 30 Apr 2014 09:17:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C02BC4B8F0; Wed, 30 Apr 2014 01:16:57 +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 Osuamc34lTEO; Wed, 30 Apr 2014 01:16:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6E2904B901; Wed, 30 Apr 2014 01:16:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 397144B949 for ; Wed, 30 Apr 2014 01:16:37 +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 1ro5msEXUfdn for ; Wed, 30 Apr 2014 01:16:32 +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 mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by theia.denx.de (Postfix) with ESMTPS id 3ED344B91F for ; Wed, 30 Apr 2014 01:16:12 +0200 (CEST) Received: by mail-pd0-f179.google.com with SMTP id y10so863108pdj.38 for ; Tue, 29 Apr 2014 16:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZSZR3+g76/5mJhvP/Vrp0t9B+8J40GsPY76VTwFF+po=; b=E3HF+++q/z2crmfsh1KK9wX05XNDHL7Xs92KEes/pc3b4biWjJGck1ntEEQSU89p4Z vJiKFL9VAF2gIT/ZDK1gyiYigdX3/f6T3kbyJEfETtPTZhGDANR5eojEmea5bWSpTQsT 2KHRgHcfjcHy/irsigYThkoZYB4P2GzpBe2BcOIBekw37nyn7A7y6fhOtVyiqeGQ1LnA kzNqMXGAp0ph8eqocsU6iNqeGJnpoRqwS2xYLMj2M/iq4C2n/Bu5xfdltNPXWjQlV+Jb 7My8WvwwT5ddCGKwmXQc1c331BlQVyIX1lLpBF/Asuku5Unl67B08JmCD6qpanIj0B9u M2tg== X-Received: by 10.66.149.7 with SMTP id tw7mr1607756pab.72.1398813371374; Tue, 29 Apr 2014 16:16:11 -0700 (PDT) Received: from gumstux.bchsia.telus.net (s206-116-3-18.bc.hsia.telus.net. [206.116.3.18]) by mx.google.com with ESMTPSA id xr9sm120609073pab.5.2014.04.29.16.16.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 16:16:10 -0700 (PDT) From: Ash Charles To: u-boot@lists.denx.de Date: Tue, 29 Apr 2014 16:15:25 -0700 Message-Id: <1398813328-17365-6-git-send-email-ashcharles@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398813328-17365-1-git-send-email-ashcharles@gmail.com> References: <1398813328-17365-1-git-send-email-ashcharles@gmail.com> Cc: trini@ti.com, Ash Charles , steve@sakoman.com Subject: [U-Boot] [PATCH 5/8] arm: omap3: Fix omap3_overo SPL boot hangup 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Patch f33b9bd3 [arm: omap3: Enable clocks for peripherals only if they are used] breaks SPL booting on Overo. Since some gpio inputs are read to detect the board revision. But with this patch above, the clocks to the GPIO subsystems are not enabled per default any more. The GPIO banks need to be configured specifically now. Signed-off-by: Ash Charles --- include/configs/omap3_overo.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h index 706c8cc..1e4dfcf 100644 --- a/include/configs/omap3_overo.h +++ b/include/configs/omap3_overo.h @@ -80,6 +80,12 @@ #define CONFIG_OMAP_HSMMC #define CONFIG_DOS_PARTITION +#define CONFIG_OMAP3_GPIO_2 /* GPIO32..63 is in GPIO Bank 2 */ +#define CONFIG_OMAP3_GPIO_3 /* GPIO64..95 is in GPIO Bank 3 */ +#define CONFIG_OMAP3_GPIO_4 /* GPIO96..127 is in GPIO Bank 4 */ +#define CONFIG_OMAP3_GPIO_5 /* GPIO128..159 is in GPIO Bank 5 */ +#define CONFIG_OMAP3_GPIO_6 /* GPIO160..191 is in GPIO Bank 6 */ + /* commands to include */ #include