From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0BBEDC433F5 for ; Sat, 18 Dec 2021 04:26:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4E2A9830B9; Sat, 18 Dec 2021 05:26:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="A2G4mtC6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DC80830B9; Sat, 18 Dec 2021 05:26:21 +0100 (CET) Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CB95E83028 for ; Sat, 18 Dec 2021 05:26:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mibodhi@gmail.com Received: by mail-oi1-x230.google.com with SMTP id bf8so6665558oib.6 for ; Fri, 17 Dec 2021 20:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jtgeep8F4oqu34yyHmPl2pLIBCiquF4wIHJtXKGUp0A=; b=A2G4mtC63kCzKywf4LNRk1LYx8nt0zOR3Ue1rVDZvcguot98Ydjbo07YdKKsMH5rlr T4PcBLPayeS06VJoZP+mG8yA18IIgrXOz1IjcWND45RNzVH0JmdeBcPlvUkiKJ+1ZIwU Vzuk9+Gq7oc/mYGhuts0h3uNWEyG8w675sIhtZitoQh0vqQnK++pNXy7pHFzaoxlz7DL hBz1ScRa/Bxv4bKsPaOX3kRGnFN9cSrpbgLc8mILG5grKX7j6t4Xojlnumy4XpS+LG0a D0qlFy2N3CCzAbqnfTRRnWirpT1zEQcrpHOCr5fKr8A4dP3yYLdJmnV5eWI/ykBM1GcX 1YiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jtgeep8F4oqu34yyHmPl2pLIBCiquF4wIHJtXKGUp0A=; b=VBmZuh5uIYsPX2PM7gcaUNIT0SGwjKBBHbHJ8AaX+G73xgc2fmnft/gD+3Hzv6QkSy RG9E+ChTiNMcQKDkjwuaVgPw26kuQ2gmxFmtXlRsyzZPFVMdPvSooNgdvMgbF5vnMSgv 0TtilFJ0o5vez2PV9SQiNsn0VnBOWP5+mKrrvoTB89o3+xEaV5/5SekfCKG2xKBOCaE0 hQdU4za50G/ywhCRLAGV9MAoycVdw57PJ/qy0PA9A6NW3re1WfZImFn25QbSE+dotxAt wPd2qNWdW9O2fE4xEfAfoNJwcZHGqpVC+G/TPOtWU0Z1c8nG3AD7cnDCyyQXJhyiQiZx FfaA== X-Gm-Message-State: AOAM532G11a23WnUWvUDfyMHTFzsO67xlLaRyiKPkj0Yt6YNCO1qKlh7 BJNIWoehI8DsQxVMFjrkDOrhqlyL5bXWZw== X-Google-Smtp-Source: ABdhPJxKZ5iXklUV3DHPYkKfmyd8MWr3Y/JUa2RHHxt9fP6PmEOKigZVkINw9zYMTdh+H4goOYxl3A== X-Received: by 2002:a05:6808:168d:: with SMTP id bb13mr4538333oib.94.1639801574477; Fri, 17 Dec 2021 20:26:14 -0800 (PST) Received: from localhost.localdomain (76-229-100-169.lightspeed.irvnca.sbcglobal.net. [76.229.100.169]) by smtp.gmail.com with ESMTPSA id n22sm1915050oop.29.2021.12.17.20.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 20:26:14 -0800 (PST) From: Tony Dinh To: U-Boot Mailing List , Stefan Roese Cc: David Purdy , Tom Rini , =?UTF-8?q?Marek=20Beh=FAn?= , =?UTF-8?q?Pali=20Roh=E1r?= , Tony Dinh Subject: [PATCH 6/8] arm: kirkwood: Pogoplug-V4 : Add board implementation header Date: Fri, 17 Dec 2021 20:23:32 -0800 Message-Id: <20211218042335.5865-7-mibodhi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211218042335.5865-1-mibodhi@gmail.com> References: <20211218042335.5865-1-mibodhi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Add board implementation header and Makefile for Pogoplug V4 Signed-off-by: Tony Dinh --- board/cloudengines/pogo_v4/Makefile | 10 ++++++++ board/cloudengines/pogo_v4/pogo_v4.h | 36 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 board/cloudengines/pogo_v4/Makefile create mode 100644 board/cloudengines/pogo_v4/pogo_v4.h diff --git a/board/cloudengines/pogo_v4/Makefile b/board/cloudengines/pogo_v4/Makefile new file mode 100644 index 0000000000..511bf5ff7e --- /dev/null +++ b/board/cloudengines/pogo_v4/Makefile @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2014-2021 Tony Dinh +# +# Based on +# Marvell Semiconductor +# Written-by: Prafulla Wadaskar +# + +obj-y := pogo_v4.o diff --git a/board/cloudengines/pogo_v4/pogo_v4.h b/board/cloudengines/pogo_v4/pogo_v4.h new file mode 100644 index 0000000000..bf3060de60 --- /dev/null +++ b/board/cloudengines/pogo_v4/pogo_v4.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2014-2021 Tony Dinh + * + * Based on + * Copyright (C) 2012 David Purdy + * + * Based on Kirkwood support: + * (C) Copyright 2009 + * Marvell Semiconductor + * Written-by: Prafulla Wadaskar + */ + +#ifndef __POGO_V4_H +#define __POGO_V4_H + +#include + +/* GPIO configuration */ +#define POGO_V4_OE_LOW (~(0)) +#define POGO_V4_OE_HIGH (~(0)) +#define POGO_V4_OE_VAL_LOW BIT(29) +#define POGO_V4_OE_VAL_HIGH 0 + +/* 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 BIT(4) +#define MV88E1116_RGMII_RXTM_CTRL BIT(5) + +/* button */ +#define BTN_EJECT 29 + +#endif /* __POGO_V4_H */ -- 2.20.1