From patchwork Wed Apr 10 13:12:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suriyan Ramasami X-Patchwork-Id: 235390 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 48FCF2C00BF for ; Wed, 10 Apr 2013 23:14:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AA2074A092; Wed, 10 Apr 2013 15:14:35 +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 woze1kcRLZjs; Wed, 10 Apr 2013 15:14:35 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C73924A097; Wed, 10 Apr 2013 15:14:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E5F2F4A03A for ; Wed, 10 Apr 2013 15:14:04 +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 BaoFT-3gjwZr for ; Wed, 10 Apr 2013 15:14:04 +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-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by theia.denx.de (Postfix) with ESMTPS id C4FB04A048 for ; Wed, 10 Apr 2013 15:13:48 +0200 (CEST) Received: by mail-ie0-f182.google.com with SMTP id at1so478373iec.13 for ; Wed, 10 Apr 2013 06:13:47 -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=gbzNoku3dOjk46/5wZ78sdrg89GxP7fgP6g1HrrF4CU=; b=nmh+UCvgvZDP3i/h/71REcKkPwg0JfUYzeE7oN1IM+1nJ42OkLkOK4lf5hsdcK9Dzr B9XkENQl/44mdwNHUIWzF6ESMvksLjhM/zBFOQnPez6tqAYjqE2UJsmfP8kKI5iA4P2K SLi0td7zUnwFRJPWPwy9IKsZN0OHMu/Cn4nXFlZ5Fl7ymdKqEro2joisoW5ARPDwq5cO Asw0q3Lk6Ldjv7fHSDYnRZhZ9O3Zcq3UsEBVLy0QZ7ZISjmx1Pcp9QeQyUzFGogsVRsq YBhP9+Pxi51ETsqGfWnb4RAaobutJmwBzCz2LWkle2Rku7wPNh4UlEjX7r2sZ7aUeOxe MPOg== X-Received: by 10.42.204.79 with SMTP id fl15mr1173886icb.57.1365599627146; Wed, 10 Apr 2013 06:13:47 -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.45 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Apr 2013 06:13:46 -0700 (PDT) From: Suriyan Ramasami To: u-boot@lists.denx.de Date: Wed, 10 Apr 2013 06:12:15 -0700 Message-Id: <1365599537-14138-7-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 6/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 the dockstar file. In all the #defines cosmetically change DOCKSTAR to GOFLEXHOME Signed-off-by: Suriyan Ramasami --- Changes in v2: - Coding style changes board/Seagate/goflexhome/goflexhome.h | 47 +++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) create mode 100644 board/Seagate/goflexhome/goflexhome.h diff --git a/board/Seagate/goflexhome/goflexhome.h b/board/Seagate/goflexhome/goflexhome.h new file mode 100644 index 0000000..2af2596 --- /dev/null +++ b/board/Seagate/goflexhome/goflexhome.h @@ -0,0 +1,47 @@ +/* + * 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 __GOFLEXHOME_H +#define __GOFLEXHOME_H + +#define GOFLEXHOME_OE_LOW (~(0)) +#define GOFLEXHOME_OE_HIGH (~(0)) +#define GOFLEXHOME_OE_VAL_LOW (1 << 29) /* USB_PWEN low */ +#define GOFLEXHOME_OE_VAL_HIGH (1 << 17) /* LED pin high */ + +/* PHY related */ +#define MV88E1116_LED_FCTRL_REG 10 +#define MV88E1116_CPRSP_CR3_REG 21 +#define MV88E1116_MAC_CTRL_REG 21 +#define MV88E1116_PGADR_REG 22 +#define MV88E1116_RGMII_TXTM_CTRL (1 << 4) +#define MV88E1116_RGMII_RXTM_CTRL (1 << 5) + +#endif /* __GOFLEXHOME_H */