mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] PowerPC/MPC5200
@ 2015-07-31  9:03 Juergen Borleis
  2015-07-31  9:03 ` [PATCH 1/6] PPC/PCM030: remove nowhere used definitions Juergen Borleis
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31  9:03 UTC (permalink / raw)
  To: barebox

While at it, fix a few PCM030 related things and add USB, I2C and EEPROM
support to this platform. The I2C/EEPROM support now allows to read and
use the programmed unique MAC.

Comments are welcome.

jbe


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/6] PPC/PCM030: remove nowhere used definitions
  2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
@ 2015-07-31  9:03 ` Juergen Borleis
  2015-07-31  9:03 ` [PATCH 2/6] PPC/PCM030: fix reference clock Juergen Borleis
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31  9:03 UTC (permalink / raw)
  To: barebox

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/ppc/boards/pcm030/config.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/ppc/boards/pcm030/config.h b/arch/ppc/boards/pcm030/config.h
index 6e74964..1521811 100644
--- a/arch/ppc/boards/pcm030/config.h
+++ b/arch/ppc/boards/pcm030/config.h
@@ -27,16 +27,7 @@
 
 #define CFG_MPC5XXX_CLKIN	33333333 /* ... running at 33.333333MHz */
 
-#define CFG_GPS_PORT_CONFIG	0x00558c10 /* PSC6=UART, PSC3=UART ; Ether=100MBit with MD */
-
 #define CFG_HID0_INIT		HID0_ICE | HID0_ICFI
 #define CFG_HID0_FINAL		HID0_ICE
 
-
-#define CFG_BOOTMAPSZ		(8 << 20) /* Initial Memory map for Linux */
-
-#define OF_CPU			"PowerPC,5200@0"
-#define OF_TBCLK		CFG_MPC5XXX_CLKIN
-#define OF_SOC                  "soc5200@f0000000"
-
 #endif /* __CONFIG_H */
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 2/6] PPC/PCM030: fix reference clock
  2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
  2015-07-31  9:03 ` [PATCH 1/6] PPC/PCM030: remove nowhere used definitions Juergen Borleis
@ 2015-07-31  9:03 ` Juergen Borleis
  2015-07-31  9:03 ` [PATCH 3/6] PPC/PCM030: enable USB/OHCI pin support Juergen Borleis
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31  9:03 UTC (permalink / raw)
  To: barebox

In order to enable and use USB/OHCI on the MPC5200 the USB PLL register must be
set.

It's not easy to find a correct value for this register, it seems it depends on
the used external reference frequency and some other 'magic' things. There are
some values out in the wild for the 33,333333 MHz and 33,333000 MHz reference
frequency case, but they are not consistent over the boards.

The value used here in this change for the USB PLL register is from the first
days of support for this platform and works at least on the reference
baseboard.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/ppc/boards/pcm030/config.h | 2 +-
 arch/ppc/boards/pcm030/pcm030.c | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/ppc/boards/pcm030/config.h b/arch/ppc/boards/pcm030/config.h
index 1521811..3fe1f28 100644
--- a/arch/ppc/boards/pcm030/config.h
+++ b/arch/ppc/boards/pcm030/config.h
@@ -25,7 +25,7 @@
 
 #include <mach/mpc5xxx.h>
 
-#define CFG_MPC5XXX_CLKIN	33333333 /* ... running at 33.333333MHz */
+#define CFG_MPC5XXX_CLKIN	33333000 /* ... running at 33.333MHz */
 
 #define CFG_HID0_INIT		HID0_ICE | HID0_ICFI
 #define CFG_HID0_FINAL		HID0_ICE
diff --git a/arch/ppc/boards/pcm030/pcm030.c b/arch/ppc/boards/pcm030/pcm030.c
index a7fa21d..c1b0c3f 100644
--- a/arch/ppc/boards/pcm030/pcm030.c
+++ b/arch/ppc/boards/pcm030/pcm030.c
@@ -32,6 +32,7 @@
 #include <memory.h>
 #include <linux/sizes.h>
 #include <linux/stat.h>
+#include <asm/io.h>
 #include <fs.h>
 
 static struct fec_platform_data fec_info = {
@@ -145,6 +146,12 @@ void initdram (int board_type)
 	*(vu_long *)MPC5XXX_CS_BURST = 0x00000000;
 	*(vu_long *)MPC5XXX_CS_DEADCYCLE = 0x33333333;
 
+	/*
+	 * Make USB work due to the special base crystal frequency:
+	 * 33,3330MHz * 16 = 533,328MHz main clock, but should be 528 MHz Clock
+	 */
+	out_be32((void *)MPC5XXX_CDM_48_FDC, 0x00015555);
+
 	mpc5200_setup_bus_clocks(1, 4);
 
 	if (get_pc() > SZ_128M) {
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 3/6] PPC/PCM030: enable USB/OHCI pin support
  2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
  2015-07-31  9:03 ` [PATCH 1/6] PPC/PCM030: remove nowhere used definitions Juergen Borleis
  2015-07-31  9:03 ` [PATCH 2/6] PPC/PCM030: fix reference clock Juergen Borleis
@ 2015-07-31  9:03 ` Juergen Borleis
  2015-07-31  9:03 ` [PATCH 4/6] PPC/MPC52xx: unify header file name for clock API Juergen Borleis
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31  9:03 UTC (permalink / raw)
  To: barebox

This change in the port config register enables the USB/OHCI support and
makes USB work on the PCM030's regular development baseboard.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/ppc/boards/pcm030/pcm030.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/ppc/boards/pcm030/pcm030.c b/arch/ppc/boards/pcm030/pcm030.c
index c1b0c3f..fe0f046 100644
--- a/arch/ppc/boards/pcm030/pcm030.c
+++ b/arch/ppc/boards/pcm030/pcm030.c
@@ -142,7 +142,7 @@ void initdram (int board_type)
 	/* Setup pin multiplexing */
 
 	/* PSC6=UART, PSC3=UART ; Ether=100MBit with MD */
-	*(vu_long *)MPC5XXX_GPS_PORT_CONFIG = 0x00558c10;
+	*(vu_long *)MPC5XXX_GPS_PORT_CONFIG = 0x00559c10;
 	*(vu_long *)MPC5XXX_CS_BURST = 0x00000000;
 	*(vu_long *)MPC5XXX_CS_DEADCYCLE = 0x33333333;
 
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 4/6] PPC/MPC52xx: unify header file name for clock API
  2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
                   ` (2 preceding siblings ...)
  2015-07-31  9:03 ` [PATCH 3/6] PPC/PCM030: enable USB/OHCI pin support Juergen Borleis
@ 2015-07-31  9:03 ` Juergen Borleis
  2015-07-31  9:03 ` [PATCH 5/6] PPC/MPC5200: re-use the IMX I2C master driver for MPC5200 Juergen Borleis
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31  9:03 UTC (permalink / raw)
  To: barebox

In preparation to re-use the i.MX I2C driver for the MPC5200 SoC use
clock.h instead of clocks.h for the clock API.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/ppc/mach-mpc5xxx/cpu.c                              | 2 +-
 arch/ppc/mach-mpc5xxx/include/mach/{clocks.h => clock.h} | 0
 arch/ppc/mach-mpc5xxx/time.c                             | 2 +-
 drivers/net/fec_mpc5200.c                                | 2 +-
 drivers/serial/serial_mpc5xxx.c                          | 2 +-
 5 files changed, 4 insertions(+), 4 deletions(-)
 rename arch/ppc/mach-mpc5xxx/include/mach/{clocks.h => clock.h} (100%)

diff --git a/arch/ppc/mach-mpc5xxx/cpu.c b/arch/ppc/mach-mpc5xxx/cpu.c
index a53af63..3f826e4 100644
--- a/arch/ppc/mach-mpc5xxx/cpu.c
+++ b/arch/ppc/mach-mpc5xxx/cpu.c
@@ -31,7 +31,7 @@
 #include <types.h>
 #include <errno.h>
 #include <of.h>
-#include <mach/clocks.h>
+#include <mach/clock.h>
 
 int checkcpu (void)
 {
diff --git a/arch/ppc/mach-mpc5xxx/include/mach/clocks.h b/arch/ppc/mach-mpc5xxx/include/mach/clock.h
similarity index 100%
rename from arch/ppc/mach-mpc5xxx/include/mach/clocks.h
rename to arch/ppc/mach-mpc5xxx/include/mach/clock.h
diff --git a/arch/ppc/mach-mpc5xxx/time.c b/arch/ppc/mach-mpc5xxx/time.c
index 699a66d..aaa4573 100644
--- a/arch/ppc/mach-mpc5xxx/time.c
+++ b/arch/ppc/mach-mpc5xxx/time.c
@@ -20,7 +20,7 @@
 #include <common.h>
 #include <clock.h>
 #include <init.h>
-#include <mach/clocks.h>
+#include <mach/clock.h>
 #include <asm/common.h>
 
 uint64_t ppc_clocksource_read(void)
diff --git a/drivers/net/fec_mpc5200.c b/drivers/net/fec_mpc5200.c
index 14ef872..30be8f7 100644
--- a/drivers/net/fec_mpc5200.c
+++ b/drivers/net/fec_mpc5200.c
@@ -14,7 +14,7 @@
 #include <init.h>
 #include <driver.h>
 #include <mach/sdma.h>
-#include <mach/clocks.h>
+#include <mach/clock.h>
 #include <linux/phy.h>
 #include <linux/err.h>
 #include "fec_mpc5200.h"
diff --git a/drivers/serial/serial_mpc5xxx.c b/drivers/serial/serial_mpc5xxx.c
index f48255b..711163c 100644
--- a/drivers/serial/serial_mpc5xxx.c
+++ b/drivers/serial/serial_mpc5xxx.c
@@ -35,7 +35,7 @@
 #include <init.h>
 #include <console.h>
 #include <xfuncs.h>
-#include <mach/clocks.h>
+#include <mach/clock.h>
 #include <linux/err.h>
 
 static int __mpc5xxx_serial_setbaudrate(struct mpc5xxx_psc *psc, int baudrate)
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 5/6] PPC/MPC5200: re-use the IMX I2C master driver for MPC5200
  2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
                   ` (3 preceding siblings ...)
  2015-07-31  9:03 ` [PATCH 4/6] PPC/MPC52xx: unify header file name for clock API Juergen Borleis
@ 2015-07-31  9:03 ` Juergen Borleis
  2015-07-31  9:03 ` [PATCH 6/6] PPC/PCM030: provide EEPROM support to read factory settings Juergen Borleis
  2015-08-03  6:56 ` [PATCH] PowerPC/MPC5200 Sascha Hauer
  6 siblings, 0 replies; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31  9:03 UTC (permalink / raw)
  To: barebox

This IP core is shared between many FSL SoCs. The MPC5200 provides this
core as well.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/ppc/mach-mpc5xxx/include/mach/clock.h | 4 ++++
 drivers/i2c/busses/Kconfig                 | 9 +++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/ppc/mach-mpc5xxx/include/mach/clock.h b/arch/ppc/mach-mpc5xxx/include/mach/clock.h
index 4e1a903..b19686f 100644
--- a/arch/ppc/mach-mpc5xxx/include/mach/clock.h
+++ b/arch/ppc/mach-mpc5xxx/include/mach/clock.h
@@ -6,5 +6,9 @@ unsigned long get_cpu_clock(void);
 unsigned long get_ipb_clock(void);
 unsigned long get_pci_clock(void);
 unsigned long get_timebase_clock(void);
+static inline unsigned long fsl_get_i2c_freq(void)
+{
+	return get_ipb_clock();
+}
 
 #endif /* __ASM_ARCH_CLOCKS_H */
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 3962286..181321b 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -17,8 +17,13 @@ config I2C_AT91
 	depends on ARCH_AT91
 
 config I2C_IMX
-	bool "MPC85xx/i.MX I2C Master driver"
-	depends on (ARCH_IMX && !ARCH_IMX1) || ARCH_MPC85XX
+	bool "MPC85xx/MPC5200/i.MX I2C Master driver"
+	depends on (ARCH_IMX && !ARCH_IMX1) || ARCH_MPC85XX || ARCH_MPC5200
+	help
+	  If you say yes to this option, support will be included for many
+	  built-in I2C master controllers found in Freescale SoCs. This is true
+	  for many i.MX ARM based SoCs, for MPC85xx and MPC5200 PowerPC based
+	  SoCs.
 
 config I2C_MV64XXX
 	bool "Marvell mv64xxx I2C Controller"
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 6/6] PPC/PCM030: provide EEPROM support to read factory settings
  2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
                   ` (4 preceding siblings ...)
  2015-07-31  9:03 ` [PATCH 5/6] PPC/MPC5200: re-use the IMX I2C master driver for MPC5200 Juergen Borleis
@ 2015-07-31  9:03 ` Juergen Borleis
  2015-07-31 11:17   ` fixup! " Juergen Borleis
  2015-08-03  6:56 ` [PATCH] PowerPC/MPC5200 Sascha Hauer
  6 siblings, 1 reply; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31  9:03 UTC (permalink / raw)
  To: barebox

Above the 0x800 offset the manufacturer provides the board type, a serial
number and the MAC as three simple strings. Extract these strings, provide
their value as global variables and set the MAC into the ethernet unit.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/ppc/boards/pcm030/Makefile |   2 +-
 arch/ppc/boards/pcm030/eeprom.c | 118 ++++++++++++++++++++++++++++++++++++++++
 arch/ppc/boards/pcm030/pcm030.c |  13 +++++
 3 files changed, 132 insertions(+), 1 deletion(-)
 create mode 100644 arch/ppc/boards/pcm030/eeprom.c

diff --git a/arch/ppc/boards/pcm030/Makefile b/arch/ppc/boards/pcm030/Makefile
index e7d744b..4e5dc4f 100644
--- a/arch/ppc/boards/pcm030/Makefile
+++ b/arch/ppc/boards/pcm030/Makefile
@@ -1,2 +1,2 @@
-obj-y += pcm030.o
+obj-y += pcm030.o eeprom.o
 extra-y += barebox.lds
diff --git a/arch/ppc/boards/pcm030/eeprom.c b/arch/ppc/boards/pcm030/eeprom.c
new file mode 100644
index 0000000..aa00f36
--- /dev/null
+++ b/arch/ppc/boards/pcm030/eeprom.c
@@ -0,0 +1,118 @@
+/*
+ * Copyright (C) 2015 Juergen Borleis <kernel@pengutronix.de>
+ *
+ * Based on code from:
+ * Copyright (C) 2013 Jan Luebbe <j.luebbe@pengutronix.de>
+ *
+ * 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.
+ */
+#include <common.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <fs.h>
+#include <globalvar.h>
+#include <xfuncs.h>
+#include <init.h>
+#include <net.h>
+
+#define PCM030_EEPROM_DEVICE "/dev/eeprom0"
+
+/*
+ * The first 2048 bytes contain the U-Boot environment shipped with the boards.
+ * After that an area begins where some board specific and partially unique data
+ * is stored. All of this data is plain test, string delimiter is the semicolon.
+ * the last string terminates with a '\0'.
+ * One example found in the 'product' area: PCM-030-02REI;017822;0050C2875974\0
+ * The first string seems to be the product type, the second string some kind
+ * of serial number and the last string the boards unique MAC.
+ */
+struct pcm030_eeprom {
+	char env[0x800]; /* u-boot environment */
+	char product[0x80]; /* <product>;<serno>;<mac>\0 */
+} __attribute__((packed));
+
+static void pcm030_read_factory_data(const struct pcm030_eeprom *buf)
+{
+	unsigned u, l;
+	char *board, *serial;
+	char *full_mac = "xx:xx:xx:xx:xx:xx";
+	u8 enetaddr[6];
+
+	u = 0;
+
+	for (l = 0; (l + u) < sizeof(buf->product); l++) {
+		if (buf->product[u + l] != ';')
+			continue;
+		board = xstrndup(&buf->product[u], l);
+		u += l + 1;
+		globalvar_add_simple("model.type", board);
+		free(board);
+	}
+
+	for (l = 0; (l + u) < sizeof(buf->product); l++) {
+		if (buf->product[u + l] != ';')
+			continue;
+		serial = xstrndup(&buf->product[u], l);
+		u += l + 1;
+		globalvar_add_simple("model.serial", serial);
+		free(serial);
+	}
+
+	/* for the MAC do a simple duck test */
+	if (buf->product[u] != ';' && buf->product[u + 12] == '\0') {
+		full_mac[0] = buf->product[u + 0];
+		full_mac[1] = buf->product[u + 1];
+		full_mac[3] = buf->product[u + 2];
+		full_mac[4] = buf->product[u + 3];
+		full_mac[6] = buf->product[u + 4];
+		full_mac[7] = buf->product[u + 5];
+		full_mac[9] = buf->product[u + 6];
+		full_mac[10] = buf->product[u + 7];
+		full_mac[12] = buf->product[u + 8];
+		full_mac[13] = buf->product[u + 9];
+		full_mac[15] = buf->product[u + 10];
+		full_mac[16] = buf->product[u + 11];
+		string_to_ethaddr(full_mac, enetaddr);
+		eth_register_ethaddr(0, enetaddr);
+		return;
+	}
+
+	printf("EEPROM contains no ethernet MAC\n");
+}
+
+static int pcm030_eeprom_read(void)
+{
+	int fd, ret;
+	struct pcm030_eeprom *buf;
+
+	fd = open(PCM030_EEPROM_DEVICE, O_RDONLY);
+	if (fd < 0) {
+		perror("failed to open " PCM030_EEPROM_DEVICE);
+		return fd;
+	}
+
+	buf = xmalloc(sizeof(struct pcm030_eeprom));
+
+	ret = pread(fd, buf, sizeof(struct pcm030_eeprom), 0);
+	if (ret < sizeof(struct pcm030_eeprom)) {
+		perror("failed to read " PCM030_EEPROM_DEVICE);
+		goto out;
+	}
+
+	pcm030_read_factory_data(buf);
+	ret = 0;
+out:
+	free(buf);
+	close(fd);
+
+	return ret;
+}
+late_initcall(pcm030_eeprom_read);
diff --git a/arch/ppc/boards/pcm030/pcm030.c b/arch/ppc/boards/pcm030/pcm030.c
index fe0f046..11b3beb 100644
--- a/arch/ppc/boards/pcm030/pcm030.c
+++ b/arch/ppc/boards/pcm030/pcm030.c
@@ -34,11 +34,21 @@
 #include <linux/stat.h>
 #include <asm/io.h>
 #include <fs.h>
+#include <i2c/i2c.h>
 
 static struct fec_platform_data fec_info = {
 	.xcv_type = PHY_INTERFACE_MODE_MII,
 };
 
+static struct i2c_board_info pcm030_i2c_devices[] = {
+	{ I2C_BOARD_INFO("pcf8563", 0x51), },
+	{ I2C_BOARD_INFO("24c32", 0x52), },
+};
+
+struct i2c_platform_data pcm030_i2c_plat = {
+	.bitrate = 100000,
+};
+
 static int devices_init (void)
 {
 	struct stat s;
@@ -53,6 +63,9 @@ static int devices_init (void)
 
 	add_generic_device("fec_mpc5xxx", DEVICE_ID_DYNAMIC, NULL, MPC5XXX_FEC, 0x200,
 			   IORESOURCE_MEM, &fec_info);
+	i2c_register_board_info(0, pcm030_i2c_devices, ARRAY_SIZE(pcm030_i2c_devices));
+	add_generic_device("i2c-fsl", DEVICE_ID_DYNAMIC, NULL, MPC5XXX_I2C2, 0x100,
+			IORESOURCE_MEM, &pcm030_i2c_plat);
 
 	ret = stat("/dev/nor0", &s);
 	if (ret)
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* fixup! PPC/PCM030: provide EEPROM support to read factory settings
  2015-07-31  9:03 ` [PATCH 6/6] PPC/PCM030: provide EEPROM support to read factory settings Juergen Borleis
@ 2015-07-31 11:17   ` Juergen Borleis
  0 siblings, 0 replies; 9+ messages in thread
From: Juergen Borleis @ 2015-07-31 11:17 UTC (permalink / raw)
  To: barebox

Forgotten to enable I2C and EEPROM support in the PCM030's default config.

diff --git a/arch/ppc/configs/pcm030_defconfig b/arch/ppc/configs/pcm030_defconfig
index 7b84e2f3b689..61380ac294e5 100644
--- a/arch/ppc/configs/pcm030_defconfig
+++ b/arch/ppc/configs/pcm030_defconfig
@@ -35,8 +35,11 @@ CONFIG_CMD_OFTREE=y
 CONFIG_CMD_TIME=y
 CONFIG_NET=y
 CONFIG_DRIVER_NET_MPC5200=y
+CONFIG_I2C=y
+CONFIG_I2C_IMX=y
 CONFIG_MTD=y
 CONFIG_DRIVER_CFI=y
 CONFIG_CFI_BUFFER_WRITE=y
+CONFIG_EEPROM_AT24=y
 CONFIG_FS_TFTP=y
 CONFIG_ZLIB=y

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] PowerPC/MPC5200
  2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
                   ` (5 preceding siblings ...)
  2015-07-31  9:03 ` [PATCH 6/6] PPC/PCM030: provide EEPROM support to read factory settings Juergen Borleis
@ 2015-08-03  6:56 ` Sascha Hauer
  6 siblings, 0 replies; 9+ messages in thread
From: Sascha Hauer @ 2015-08-03  6:56 UTC (permalink / raw)
  To: Juergen Borleis; +Cc: barebox

On Fri, Jul 31, 2015 at 11:03:46AM +0200, Juergen Borleis wrote:
> While at it, fix a few PCM030 related things and add USB, I2C and EEPROM
> support to this platform. The I2C/EEPROM support now allows to read and
> use the programmed unique MAC.
> 
> Comments are welcome.

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-08-03  6:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-31  9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
2015-07-31  9:03 ` [PATCH 1/6] PPC/PCM030: remove nowhere used definitions Juergen Borleis
2015-07-31  9:03 ` [PATCH 2/6] PPC/PCM030: fix reference clock Juergen Borleis
2015-07-31  9:03 ` [PATCH 3/6] PPC/PCM030: enable USB/OHCI pin support Juergen Borleis
2015-07-31  9:03 ` [PATCH 4/6] PPC/MPC52xx: unify header file name for clock API Juergen Borleis
2015-07-31  9:03 ` [PATCH 5/6] PPC/MPC5200: re-use the IMX I2C master driver for MPC5200 Juergen Borleis
2015-07-31  9:03 ` [PATCH 6/6] PPC/PCM030: provide EEPROM support to read factory settings Juergen Borleis
2015-07-31 11:17   ` fixup! " Juergen Borleis
2015-08-03  6:56 ` [PATCH] PowerPC/MPC5200 Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox