From patchwork Tue Jul 9 19:00:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Waters X-Patchwork-Id: 257855 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 41F972C0092 for ; Wed, 10 Jul 2013 05:28:22 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5B4E34A095; Tue, 9 Jul 2013 21:28:19 +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 riMQxNdsFi5D; Tue, 9 Jul 2013 21:28:19 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 61FE74A033; Tue, 9 Jul 2013 21:28:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 60A344A047 for ; Tue, 9 Jul 2013 21:06:21 +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 zwQclrrYHcpL for ; Tue, 9 Jul 2013 21:06:16 +0200 (CEST) X-Greylist: delayed 339 seconds by postgrey-1.27 at theia; Tue, 09 Jul 2013 21:06:09 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 exchange07.timesys.com (exchange07.timesys.com [209.114.137.116]) by theia.denx.de (Postfix) with ESMTPS id 2F1024A03B for ; Tue, 9 Jul 2013 21:06:09 +0200 (CEST) Received: from jjw-desktop.timesys.com (192.168.3.96) by exchange07.timesys.com (192.168.1.221) with Microsoft SMTP Server id 8.1.436.0; Tue, 9 Jul 2013 15:00:29 -0400 From: Justin Waters To: Date: Tue, 9 Jul 2013 15:00:07 -0400 Message-ID: <1373396410-23518-3-git-send-email-justin.waters@timesys.com> X-Mailer: git-send-email 1.7.9.6 In-Reply-To: <1373396410-23518-1-git-send-email-justin.waters@timesys.com> References: <1373396410-23518-1-git-send-email-justin.waters@timesys.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 09 Jul 2013 21:28:13 +0200 Cc: trini@ti.com Subject: [U-Boot] [PATCH 2/5] am335x_evm: Add am335x_boneblack variant 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 The BeagleBone Black differs from the other AM335x boards in a few significant ways, so it makes sense to create a custom configuration for it. In particular, it uses eMMC instead of NAND flash. We can use the eMMC boot partition to store the environment, since it isn't used for anything else. Signed-off-by: Justin Waters --- boards.cfg | 1 + include/configs/am335x_evm.h | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/boards.cfg b/boards.cfg index c0c4282..7dea9e8 100644 --- a/boards.cfg +++ b/boards.cfg @@ -249,6 +249,7 @@ am335x_evm_uart3 arm armv7 am335x ti am335x_evm_uart4 arm armv7 am335x ti am33xx am335x_evm:SERIAL5,CONS_INDEX=5 am335x_evm_uart5 arm armv7 am335x ti am33xx am335x_evm:SERIAL6,CONS_INDEX=6 am335x_evm_usbspl arm armv7 am335x ti am33xx am335x_evm:SERIAL1,CONS_INDEX=1,SPL_USBETH_SUPPORT +am335x_boneblack arm armv7 am335x ti am33xx am335x_evm:SERIAL1,CONS_INDEX=1,EMMC_BOOT,NO_NAND ti814x_evm arm armv7 ti814x ti am33xx pcm051 arm armv7 pcm051 phytec am33xx pcm051 sama5d3xek_mmc arm armv7 sama5d3xek atmel at91 sama5d3xek:SAMA5D3,SYS_USE_MMC diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 7bcfe2e..5947f5a 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -487,7 +487,12 @@ # define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED # define CONFIG_ENV_OFFSET (892 << 10) /* 892 KiB in */ # define CONFIG_ENV_SECT_SIZE (4 << 10) /* 4 KB sectors */ -#endif /* SPI support */ +#elif defined(CONFIG_EMMC_BOOT) +# undef CONFIG_ENV_IS_NOWHERE +# define CONFIG_ENV_IS_IN_MMC +# define CONFIG_SYS_MMC_ENV_DEV 1 +# define CONFIG_SYS_MMC_ENV_PART 2 +#endif /* Unsupported features */ #undef CONFIG_USE_IRQ