All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Dinh <mibodhi@gmail.com>
To: U-Boot Mailing List <u-boot@lists.denx.de>, Stefan Roese <sr@denx.de>
Cc: "David Purdy" <david.c.purdy@gmail.com>,
	"Tom Rini" <trini@konsulko.com>,
	"Marek Beh�n" <marek.behun@nic.cz>,
	"Pali Roh�r" <pali@kernel.org>, "Tony Dinh" <mibodhi@gmail.com>
Subject: [PATCH 6/8] arm: kirkwood: Pogoplug-V4 : Add board implementation header
Date: Fri, 17 Dec 2021 20:23:32 -0800	[thread overview]
Message-ID: <20211218042335.5865-7-mibodhi@gmail.com> (raw)
In-Reply-To: <20211218042335.5865-1-mibodhi@gmail.com>

Add board implementation header and Makefile for Pogoplug V4

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
---

 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 <mibodhi@gmail.com>
+#
+# Based on
+# Marvell Semiconductor <www.marvell.com>
+# Written-by: Prafulla Wadaskar <prafulla@marvell.com>
+#
+
+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 <mibodhi@gmail.com>
+ *
+ * Based on
+ * Copyright (C) 2012 David Purdy <david.c.purdy@gmail.com>
+ *
+ * Based on Kirkwood support:
+ * (C) Copyright 2009
+ * Marvell Semiconductor <www.marvell.com>
+ * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
+ */
+
+#ifndef __POGO_V4_H
+#define __POGO_V4_H
+
+#include <linux/bitops.h>
+
+/* 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


  parent reply	other threads:[~2021-12-18  4:26 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-18  4:23 [PATCH 0/8] arm: kirkwood: Add support for Pogoplug V4 Tony Dinh
2021-12-18  4:23 ` [PATCH 1/8] arm: kirkwood: Pogoplug-V4 : Add DTS files Tony Dinh
2021-12-18 16:38   ` Andre Przywara
2021-12-18 22:05     ` Tony Dinh
2021-12-19  0:03       ` Andre Przywara
2021-12-19  1:23         ` Tony Dinh
2021-12-18  4:23 ` [PATCH 2/8] arm: kirkwood: Pogoplug V4 : Add board defconfig file Tony Dinh
2021-12-18 13:17   ` Pali Rohár
2021-12-18 21:41     ` Tony Dinh
2021-12-20  7:18       ` Stefan Roese
2021-12-20 21:09         ` Tony Dinh
2021-12-18  4:23 ` [PATCH 3/8] arm: kirkwood: Pogoplug-V4 : Add Kconfig files Tony Dinh
2021-12-18  4:23 ` [PATCH 4/8] arm: kirkwood: Pogoplug-V4 : Add board include configs file Tony Dinh
2021-12-18 13:12   ` Pali Rohár
2021-12-18 21:27     ` Tony Dinh
2021-12-18  4:23 ` [PATCH 5/8] arm: kirkwood: Pogoplug-V4 : Add board kwbimage file Tony Dinh
2021-12-18  4:23 ` Tony Dinh [this message]
2021-12-18 13:09   ` [PATCH 6/8] arm: kirkwood: Pogoplug-V4 : Add board implementation header Pali Rohár
2021-12-18 21:47     ` Tony Dinh
2021-12-20  7:23       ` Stefan Roese
2021-12-20 21:14         ` Tony Dinh
2021-12-18  4:23 ` [PATCH 7/8] arm: kirkwood: Pogoplug-V4 : Add board implementation Tony Dinh
2021-12-18 22:59   ` Marek Behún
2021-12-18 23:28     ` Tony Dinh
2021-12-18 23:42       ` Marek Behún
2021-12-18  4:23 ` [PATCH 8/8] arm: kirkwood: Pogoplug-V4 : Add board maintainer Tony Dinh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211218042335.5865-7-mibodhi@gmail.com \
    --to=mibodhi@gmail.com \
    --cc=david.c.purdy@gmail.com \
    --cc=marek.behun@nic.cz \
    --cc=pali@kernel.org \
    --cc=sr@denx.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.