From patchwork Mon Apr 8 03:44:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suriyan Ramasami X-Patchwork-Id: 234568 X-Patchwork-Delegate: albert.aribaud@free.fr 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 EC1C12C00A8 for ; Mon, 8 Apr 2013 14:23:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ED30C4A293; Mon, 8 Apr 2013 06:21: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 8dqbZYC4XTVN; Mon, 8 Apr 2013 06:21:55 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 175DE4A2AB; Mon, 8 Apr 2013 06:21:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF2304A221 for ; Mon, 8 Apr 2013 05:52: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 i8oGuneWeU+L for ; Mon, 8 Apr 2013 05:52:51 +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-ia0-f173.google.com (mail-ia0-f173.google.com [209.85.210.173]) by theia.denx.de (Postfix) with ESMTPS id 888DA4A21E for ; Mon, 8 Apr 2013 05:52:47 +0200 (CEST) Received: by mail-ia0-f173.google.com with SMTP id h37so4817736iak.4 for ; Sun, 07 Apr 2013 20:52:46 -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=oUQCTi8e4GO+28YiWbeEnFpT1ytdvf9LrCfd0PpthtQ=; b=TuEuBzpd0BFw2DFlXjUUq5AZn/0Yons9o3TgQxJBGXGBl2Igk1105dZ8cqJ25G269y F4QylpiWzXJcOKXOFCtmZipckJ/TXT2FCG/oZOAuYVmbuIGLzqg7izUn7kLZmpexRsI5 u2SSJOoN6SBtWkNhaHmwM3YHry2n08hne0q7+Hrwg+ga2Z4CumzUn8ow3pOtErMNMO3u 52mYGNNMUqb9sDvQ5utR51svEKV8QD9jm4GX1JiyFttlaZbMExEx6oYDS9xWJD5vW7+z fPm4i5GaPhYOQzIVGAu91qTcLm458Pw6WgSeWr8uUl4vRhccQOxhFGMcTJstvaXtBM20 8Wpw== X-Received: by 10.50.6.3 with SMTP id w3mr5459940igw.76.1365392743094; Sun, 07 Apr 2013 20:45: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 qn10sm14599495igc.6.2013.04.07.20.45.41 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 07 Apr 2013 20:45:42 -0700 (PDT) From: Suriyan Ramasami To: u-boot@lists.denx.de Date: Sun, 7 Apr 2013 20:44:49 -0700 Message-Id: <1365392690-8668-8-git-send-email-suriyan.r@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1365392690-8668-1-git-send-email-suriyan.r@gmail.com> References: <1365392690-8668-1-git-send-email-suriyan.r@gmail.com> X-Mailman-Approved-At: Mon, 08 Apr 2013 06:20:55 +0200 Cc: ecc@cmu.edu Subject: [U-Boot] [PATCH 7/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 file and change for GoFlexHome Signed-off-by: Suriyan Ramasami --- include/configs/goflexhome.h | 140 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 140 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..ce7ca41 --- /dev/null +++ b/include/configs/goflexhome.h @@ -0,0 +1,140 @@ +/* + * 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 */