From patchwork Wed Apr 10 13:12:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suriyan Ramasami X-Patchwork-Id: 235386 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 B11DD2C0130 for ; Wed, 10 Apr 2013 23:14:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A0E3A4A0A2; Wed, 10 Apr 2013 15:14:17 +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 oRenewbd1mhQ; Wed, 10 Apr 2013 15:14:17 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 50EB54A02E; Wed, 10 Apr 2013 15:13:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 491EB4A02D for ; Wed, 10 Apr 2013 15:13:55 +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 uBK-Ytjwphsr for ; Wed, 10 Apr 2013 15:13:54 +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-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) by theia.denx.de (Postfix) with ESMTPS id CFF984A02E for ; Wed, 10 Apr 2013 15:13:44 +0200 (CEST) Received: by mail-ie0-f174.google.com with SMTP id aq17so471430iec.5 for ; Wed, 10 Apr 2013 06:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=szryoMJFk2b9BpSmokK9QeQkZwOxGy5gbbN+Rgy+g7c=; b=de6bJyy0Ew6eIdG4GaOs0vx+MVWlK2l8veWtwkVh7jiFI5ElxDOOz1uNFdfeZc2bWn dl7l3QJI8oho4meafl5sjKl01yUf8+h5I/GQcsVmEYKdEgfurBmJjA/LP307J+Gmq370 EjZ+ASTC84I8Fr2SQE/2fhYqs4LgZUB5kYtnprfHleEcIyf/f50Q5/7bnceKWRRJwiOI xLW+1h62Mkxa5uXIc/n/A7kXzt3MYFUCeunqHtsFkuJo2yyn3P0qL+xTmf9YIBy3LW9x WbVD1LbSKAK26DVOs+r12nAyPtuQEsvfL/X7KF7GEMNvpI2peTiNlkfBvWPuX8uxpwfR 95OA== X-Received: by 10.50.11.138 with SMTP id q10mr13354655igb.5.1365599623219; Wed, 10 Apr 2013 06:13:43 -0700 (PDT) Received: from localhost.localdomain (75-101-50-252.dsl.static.sonic.net. [75.101.50.252]) by mx.google.com with ESMTPS id xf4sm27152406igb.8.2013.04.10.06.13.42 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Apr 2013 06:13:42 -0700 (PDT) From: Suriyan Ramasami To: u-boot@lists.denx.de Date: Wed, 10 Apr 2013 06:12:12 -0700 Message-Id: <1365599537-14138-4-git-send-email-suriyan.r@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1365599537-14138-1-git-send-email-suriyan.r@gmail.com> References: <1365599537-14138-1-git-send-email-suriyan.r@gmail.com> Cc: ecc@cmu.edu Subject: [U-Boot] [PATCH v2 3/8] ARM: Add Seagate GoFlexHome support 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 Start with dockstar's dockstar.h Add #define CONFIG_CMD_IDE, CONFIG_MVSATA_IDE for IDE support Add #define CONFIG_CMD_DATE, CONFIG_RTC_MV for RTC support Add #define CONFIG_CMD_EXT4 for supporting ext4 FS Change CONFIG_SYS_PROMPT to be GoFlex specific Change CONFIG_ENV_ADDR and CONFIG_ENV_OFFSET to default address present in ArchLinuxArm install (/etc/fw_env.config) Add #define CONFIG_MENU to enable u-boot MENU Add #define CONFIG_MENU_SHOW to show the menu on boot Signed-off-by: Suriyan Ramasami --- Changes for v2: - Coding style changes include/configs/goflexhome.h | 141 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 141 insertions(+), 0 deletions(-) create mode 100644 include/configs/goflexhome.h diff --git a/include/configs/goflexhome.h b/include/configs/goflexhome.h new file mode 100644 index 0000000..03a7b22 --- /dev/null +++ b/include/configs/goflexhome.h @@ -0,0 +1,141 @@ +/* + * Copyright (C) 2013 Suriyan Ramasami + * + * Based on dockstar.h originally written by + * Copyright (C) 2010 Eric C. Cooper + * + * Based on sheevaplug.h originally written by + * Prafulla Wadaskar + * (C) Copyright 2009 + * Marvell Semiconductor + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ + +#ifndef _CONFIG_GOFLEXHOME_H +#define _CONFIG_GOFLEXHOME_H + +/* + * Version number information + */ +#define CONFIG_IDENT_STRING "\nSeagate GoFlex Home" + +/* + * High Level Configuration Options (easy to change) + */ +#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ +#define CONFIG_KIRKWOOD 1 /* SOC Family Name */ +#define CONFIG_KW88F6281 1 /* SOC Name */ +#define CONFIG_MACH_GOFLEXHOME /* Machine type */ +#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ + +/* + * Commands configuration + */ +#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ +#define CONFIG_CONSOLE_MUX +#define CONFIG_SYS_CONSOLE_IS_IN_ENV + +#include +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_ENV +#define CONFIG_CMD_MII +#define CONFIG_CMD_NAND +#define CONFIG_CMD_PING +#define CONFIG_CMD_USB +#define CONFIG_CMD_IDE +#define CONFIG_CMD_DATE +#define CONFIG_CMD_EXT4 +#define CONFIG_SYS_MVFS /* Picks up Filesystem from mv-common.h */ + +/* + * mv-common.h should be defined after CMD configs since it used them + * to enable certain macros + */ +#include "mv-common.h" + +#undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */ +#define CONFIG_SYS_PROMPT "GoFlexHome> " /* Command Prompt */ + +/* + * Environment variables configurations + */ +#ifdef CONFIG_CMD_NAND +#define CONFIG_ENV_IS_IN_NAND 1 +#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ +#else +#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ +#endif +/* + * max 4k env size is enough, but in case of nand + * it has to be rounded to sector size + */ +#define CONFIG_ENV_SIZE 0x20000 /* 128k */ +#define CONFIG_ENV_ADDR 0xC0000 +#define CONFIG_ENV_OFFSET 0xC0000 /* env starts here */ + +/* + * Default environment variables + */ +#define CONFIG_BOOTCOMMAND \ + "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ + "ubi part root; " \ + "ubifsmount ubi:root; " \ + "ubifsload 0x800000 ${kernel}; " \ + "bootm 0x800000" + +#define CONFIG_MTDPARTS \ + "mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)\0" + +#define CONFIG_EXTRA_ENV_SETTINGS \ + "console=console=ttyS0,115200\0" \ + "mtdids=nand0=orion_nand\0" \ + "mtdparts="CONFIG_MTDPARTS \ + "kernel=/boot/uImage\0" \ + "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0" + +/* + * Ethernet Driver configuration + */ +#ifdef CONFIG_CMD_NET +#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ +#define CONFIG_PHY_BASE_ADR 0 +#endif /* CONFIG_CMD_NET */ + +/* + * * SATA Driver configuration + * */ +#ifdef CONFIG_MVSATA_IDE +#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET +#endif /*CONFIG_MVSATA_IDE*/ + +/* + * * RTC driver configuration + * */ +#ifdef CONFIG_CMD_DATE +#define CONFIG_RTC_MV +#endif /* CONFIG_CMD_DATE */ + +/* Enable u-boot MENU */ +#define CONFIG_MENU + +/* Show the menu on boot */ +#define CONFIG_MENU_SHOW + +#endif /* _CONFIG_GOFLEXHOME_H */