mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Barbier, Renaud" <renaud.barbier@abaco.com>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Cc: "Barbier, Renaud" <renaud.barbier@abaco.com>
Subject: [PATCH 2/2] owc: remove references to GE.
Date: Mon, 15 Apr 2019 12:35:59 +0000	[thread overview]
Message-ID: <1555331684-25431-3-git-send-email-renaud.barbier@abaco.com> (raw)
In-Reply-To: <1555331684-25431-1-git-send-email-renaud.barbier@abaco.com>

As per contactual requirement, remove references to GE in the
code.

Signed-off-by: Renaud Barbier <renaud.barbier@abaco.com>
---
 arch/ppc/Makefile                          |    2 +-
 arch/ppc/boards/owc-da923rc/Makefile       |    2 +-
 arch/ppc/boards/owc-da923rc/da923rc.c      |    9 +++++----
 arch/ppc/boards/owc-da923rc/product_data.c |   17 +++++++++--------
 arch/ppc/boards/owc-da923rc/product_data.h |    5 +++--
 arch/ppc/configs/owc_da923rc_defconfig     |    2 +-
 6 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 05ec243..2fb9b14 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -15,7 +15,7 @@ board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY)	:= pcm030
 board-$(CONFIG_P1010RDB)			:= freescale-p1010rdb
 board-$(CONFIG_P2020RDB)			:= freescale-p2020rdb
 board-$(CONFIG_P1022DS)				:= freescale-p1022ds
-board-$(CONFIG_DA923RC)				:= geip-da923rc
+board-$(CONFIG_DA923RC)				:= owc-da923rc
 
 machine-$(CONFIG_ARCH_MPC5200)			:= mpc5xxx
 machine-$(CONFIG_ARCH_MPC85XX)			:= mpc85xx
diff --git a/arch/ppc/boards/owc-da923rc/Makefile b/arch/ppc/boards/owc-da923rc/Makefile
index 7177bfa..4cf6c5c 100644
--- a/arch/ppc/boards/owc-da923rc/Makefile
+++ b/arch/ppc/boards/owc-da923rc/Makefile
@@ -4,4 +4,4 @@ obj-y += law.o
 obj-y += ddr.o
 obj-y += nand.o
 obj-y += product_data.o
-bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC) += defaultenv-geip-da923rc
+bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC) += defaultenv-owc-da923rc
diff --git a/arch/ppc/boards/owc-da923rc/da923rc.c b/arch/ppc/boards/owc-da923rc/da923rc.c
index 6ec4ee2..2665a15 100644
--- a/arch/ppc/boards/owc-da923rc/da923rc.c
+++ b/arch/ppc/boards/owc-da923rc/da923rc.c
@@ -1,5 +1,6 @@
 /*
  * Copyright 2013 GE Intelligent Platforms, Inc.
+ * Copyright 2019 Abaco Systems, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -11,7 +12,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * GEIP DA923RC/GBX460 board support.
+ * Abaco Systems DA923RC/GBX460 board support.
  */
 
 #include <common.h>
@@ -61,7 +62,7 @@ static struct board_info binfo;
 static int board_eth_init(void)
 {
 	void __iomem *gur = IOMEM(MPC85xx_GUTS_ADDR);
-	struct ge_product_data product;
+	struct owc_product_data product;
 	int st;
 
 	/* Toggle eth0 reset pin */
@@ -74,7 +75,7 @@ static int board_eth_init(void)
 		 in_be32(gur + MPC85xx_DEVDISR_OFFSET) &
 		 ~MPC85xx_DEVDISR_TSEC3);
 
-	st = ge_get_product_data(&product);
+	st = owc_get_product_data(&product);
 	if (((product.v2.mac.count > 0) && (product.v2.mac.count <= MAX_MAC))
 	    && (st == 0))
 		eth_register_ethaddr(0, (const char *)&product.v2.mac.mac[0]);
@@ -98,7 +99,7 @@ static int da923rc_devices_init(void)
 	board_eth_init();
 
 	if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT_GENERIC))
-		defaultenv_append_directory(defaultenv_geip_da923rc);
+		defaultenv_append_directory(defaultenv_owc_da923rc);
 
 	return 0;
 }
diff --git a/arch/ppc/boards/owc-da923rc/product_data.c b/arch/ppc/boards/owc-da923rc/product_data.c
index eda10a4..5135afd 100644
--- a/arch/ppc/boards/owc-da923rc/product_data.c
+++ b/arch/ppc/boards/owc-da923rc/product_data.c
@@ -1,5 +1,6 @@
 /*
  * Copyright 2013 GE Intelligent Platforms Inc.
+ * Copyright 2019 Abaco Systems Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -21,7 +22,7 @@
 #include <mach/fsl_i2c.h>
 #include "product_data.h"
 
-static int ge_pd_header_check(unsigned short header)
+static int owc_pd_header_check(unsigned short header)
 {
 	if (header != 0xa5a5)
 		return -1;
@@ -29,12 +30,12 @@ static int ge_pd_header_check(unsigned short header)
 		return 0;
 }
 
-static int ge_is_data_valid(struct ge_product_data *v)
+static int owc_is_data_valid(struct owc_product_data *v)
 {
 	int crc, ret = 0;
 	const unsigned char *p = (const unsigned char *)v;
 
-	if (ge_pd_header_check(v->v1.pdh.tag))
+	if (owc_pd_header_check(v->v1.pdh.tag))
 		return -1;
 
 	switch (v->v1.pdh.version) {
@@ -56,7 +57,7 @@ static int ge_is_data_valid(struct ge_product_data *v)
 	return ret;
 }
 
-int ge_get_product_data(struct ge_product_data *productp)
+int owc_get_product_data(struct owc_product_data *productp)
 {
 	struct i2c_adapter *adapter;
 	struct i2c_client client;
@@ -70,14 +71,14 @@ int ge_get_product_data(struct ge_product_data *productp)
 			   sizeof(unsigned short));
 
 	/* If there is no valid header, it may be a 16-bit eeprom. */
-	if (ge_pd_header_check(productp->v1.pdh.tag))
+	if (owc_pd_header_check(productp->v1.pdh.tag))
 		width = I2C_ADDR_16_BIT;
 
 	ret = i2c_read_reg(&client, width, (uint8_t *) productp,
-			   sizeof(struct ge_product_data));
+			   sizeof(struct owc_product_data));
 
-	if (ret == sizeof(struct ge_product_data))
-		ret = ge_is_data_valid(productp);
+	if (ret == sizeof(struct owc_product_data))
+		ret = owc_is_data_valid(productp);
 
 	return ret;
 }
diff --git a/arch/ppc/boards/owc-da923rc/product_data.h b/arch/ppc/boards/owc-da923rc/product_data.h
index f172fb5..cbbb8d3 100644
--- a/arch/ppc/boards/owc-da923rc/product_data.h
+++ b/arch/ppc/boards/owc-da923rc/product_data.h
@@ -1,5 +1,6 @@
 /*
  * Copyright 2013 GE Intelligent Platforms, Inc.
+ * Copyright 2019 Abaco Systems, Inc.
  *
  * The product data structure and function prototypes.
  *
@@ -51,12 +52,12 @@ struct __attribute__ ((__packed__)) product_data_v2 {
 	int crc32;
 };
 
-struct __attribute__ ((__packed__)) ge_product_data {
+struct __attribute__ ((__packed__)) owc_product_data {
 	union {
 		struct product_data_v1 v1;
 		struct product_data_v2 v2;
 	};
 };
 
-extern int ge_get_product_data(struct ge_product_data *productp);
+extern int owc_get_product_data(struct owc_product_data *productp);
 extern void da923rc_boardinfo_get(struct board_info *bi);
diff --git a/arch/ppc/configs/owc_da923rc_defconfig b/arch/ppc/configs/owc_da923rc_defconfig
index 6c0a81e..183ddb1 100644
--- a/arch/ppc/configs/owc_da923rc_defconfig
+++ b/arch/ppc/configs/owc_da923rc_defconfig
@@ -3,7 +3,7 @@ CONFIG_DA923RC=y
 CONFIG_BAREBOX_MAX_IMAGE_SIZE=0x80000
 CONFIG_MALLOC_SIZE=0x4000000
 CONFIG_RELOCATABLE=y
-CONFIG_PROMPT="GE> "
+CONFIG_PROMPT="OWBOOT> "
 CONFIG_BAUDRATE=9600
 CONFIG_GLOB=y
 CONFIG_CMDLINE_EDITING=y
-- 
1.7.1

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2019-04-15 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-15 12:35 [PATCH 0/2] Company name change Barbier, Renaud
2019-04-15 12:35 ` [PATCH 1/2] owc: directories and files renaming Barbier, Renaud
2019-04-15 12:35 ` Barbier, Renaud [this message]
2019-04-26  5:37 ` [PATCH 0/2] Company name change Sascha Hauer

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=1555331684-25431-3-git-send-email-renaud.barbier@abaco.com \
    --to=renaud.barbier@abaco.com \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox