Skip to contentSkip to conversation

GEIP DA923RC board support

PATCH Applied Renaud Barbier 2 participants 7 messages Nov 5, 2013 – Nov 6, 2013

lore
Share & tools
lore
#0 lore raw

v3 cover GEIP DA923RC board support

This patch set addresses comments by using the GPIO API to set gpio out pins, using the I2C API where necessary but still allowing for early I2C access for future early configuration.

This patch set adds support to the GEIP DA923RC extending the CPU support to the MPC8544 and allowing the use of the DDR driver.

Renaud Barbier (5):
ppc: mpc85xx: mpc8544 support
ppc: mpc85xx: define Ethernet port count
ppc: mpc85xx: enable DDR driver
ppc: DA923RC: add board support
ppc: mpc85xx: build directives

 arch/ppc/Makefile                                  |    1 +
 arch/ppc/boards/geip-da923rc/Makefile              |    7 +
 arch/ppc/boards/geip-da923rc/barebox.lds.S         |  155 ++++++++++++++
 arch/ppc/boards/geip-da923rc/config.h              |   54 +++++
 arch/ppc/boards/geip-da923rc/da923rc.c             |  212 ++++++++++++++++++++
 arch/ppc/boards/geip-da923rc/ddr.c                 |  169 ++++++++++++++++
 arch/ppc/boards/geip-da923rc/env/bin/init          |    4 +
 arch/ppc/boards/geip-da923rc/env/config            |    4 +
 arch/ppc/boards/geip-da923rc/law.c                 |   24 +++
 arch/ppc/boards/geip-da923rc/nand.c                |   94 +++++++++
 arch/ppc/boards/geip-da923rc/product_data.c        |   66 ++++++
 arch/ppc/boards/geip-da923rc/product_data.h        |   62 ++++++
 arch/ppc/boards/geip-da923rc/tlb.c                 |   69 +++++++
 arch/ppc/configs/da923rc_defconfig                 |   57 ++++++
 arch/ppc/ddr-8xxx/Makefile                         |    2 +
 arch/ppc/include/asm/fsl_lbc.h                     |   12 +
 arch/ppc/include/asm/processor.h                   |    2 +
 arch/ppc/mach-mpc85xx/Kconfig                      |   32 +++-
 arch/ppc/mach-mpc85xx/Makefile                     |    3 +
 arch/ppc/mach-mpc85xx/cpu.c                        |    6 +-
 arch/ppc/mach-mpc85xx/cpuid.c                      |    2 +
 arch/ppc/mach-mpc85xx/eth-devices.c                |    2 +-
 arch/ppc/mach-mpc85xx/fsl_gpio.c                   |   47 +++++
 arch/ppc/mach-mpc85xx/include/mach/clock.h         |    1 +
 .../ppc/mach-mpc85xx/include/mach/config_mpc85xx.h |    7 +
 arch/ppc/mach-mpc85xx/include/mach/gpio.h          |   17 ++
 arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h    |   23 ++
 arch/ppc/mach-mpc85xx/speed.c                      |   18 ++
 28 files changed, 1142 insertions(+), 10 deletions(-)
 create mode 100644 arch/ppc/boards/geip-da923rc/Makefile
 create mode 100644 arch/ppc/boards/geip-da923rc/barebox.lds.S
 create mode 100644 arch/ppc/boards/geip-da923rc/config.h
 create mode 100644 arch/ppc/boards/geip-da923rc/da923rc.c
 create mode 100644 arch/ppc/boards/geip-da923rc/ddr.c
 create mode 100644 arch/ppc/boards/geip-da923rc/env/bin/init
 create mode 100644 arch/ppc/boards/geip-da923rc/env/config
 create mode 100644 arch/ppc/boards/geip-da923rc/law.c
 create mode 100644 arch/ppc/boards/geip-da923rc/nand.c
 create mode 100644 arch/ppc/boards/geip-da923rc/product_data.c
 create mode 100644 arch/ppc/boards/geip-da923rc/product_data.h
 create mode 100644 arch/ppc/boards/geip-da923rc/tlb.c
 create mode 100644 arch/ppc/configs/da923rc_defconfig
 create mode 100644 arch/ppc/ddr-8xxx/Makefile
 create mode 100644 arch/ppc/mach-mpc85xx/fsl_gpio.c
 create mode 100644 arch/ppc/mach-mpc85xx/include/mach/gpio.h

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

PATCH v3 1/5 ppc: mpc85xx: mpc8544 support

Definitions are added to support the mpc8544 sOC.

The function returning the I2C bus frequency is updated to take into account the mpc8544 specific clock ratio. A mininal GPIO API is added to enable and set the GPIO out pins.

---
 arch/ppc/include/asm/fsl_lbc.h                     |   12 +++++
 arch/ppc/include/asm/processor.h                   |    2 +
 arch/ppc/mach-mpc85xx/cpuid.c                      |    2 +
 arch/ppc/mach-mpc85xx/fsl_gpio.c                   |   47 ++++++++++++++++++++
 .../ppc/mach-mpc85xx/include/mach/config_mpc85xx.h |    5 ++
 arch/ppc/mach-mpc85xx/include/mach/gpio.h          |   17 +++++++
 arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h    |   23 ++++++++++
 arch/ppc/mach-mpc85xx/speed.c                      |    9 ++++
 8 files changed, 117 insertions(+), 0 deletions(-)
 create mode 100644 arch/ppc/mach-mpc85xx/fsl_gpio.c
 create mode 100644 arch/ppc/mach-mpc85xx/include/mach/gpio.h
arch/ppc/include/asm/fsl_lbc.h +12 -0
index 58cd080..a59725c 100644
@@ -27,6 +27,7 @@
 #define BR_PS_32			0x00001800	/* Port Size 32 bit */
 #define BR_V				0x00000001
 #define BR_V_SHIFT			0
+#define BR_MS_UPMA			0x00000080
 
 /* Convert an address into the right format for the BR registers */
 #define BR_PHYS_ADDR(x) ((x) & 0xffff8000)
@@ -55,5 +56,16 @@
 #define fsl_set_lbc_br(x, v) (out_be32((LBC_BASE_ADDR + FSL_LBC_BRX(x)), v))
 #define fsl_set_lbc_or(x, v) (out_be32((LBC_BASE_ADDR + FSL_LBC_ORX(x)), v))
 
+#define FSL_LBC_MAR_OFFSET	0x68
+#define FSL_LBC_MAMR_OFFSET	0x70
+#define FSL_LBC_MDR_OFFSET	0x88
+#define FSL_LBC_LTESR_OFFSET	0xB0
+#define FSL_LBC_LTEIR_OFFSET	0xB8
+
+#define MxMR_MAD_MSK		0x0000003f /* Machine Address Mask         */
+#define MxMR_GPL_x4DIS		0x00040000 /* GPL_A4 Ouput Line Disable    */
+#define MxMR_OP_NORM		0x00000000 /* Normal Operation             */
+#define MxMR_OP_WARR		0x10000000 /* Write to Array               */
+
 #endif /* __ASSEMBLY__ */
 #endif /* __ASM_PPC_FSL_LBC_H */
arch/ppc/include/asm/processor.h +2 -0
index 9145257..19530b0 100644
@@ -858,6 +858,8 @@
 #define SVR_8548	0x8031
 #define SVR_8548_E	0x8039
 #define SVR_8641	0x8090
+#define SVR_8544	0x803401
+#define SVR_8544_E	0x803C01
 #define SVR_P2020	0x80E200
 #define SVR_P2020_E	0x80EA00
 
arch/ppc/mach-mpc85xx/cpuid.c +2 -0
index de56d37..8094978 100644
@@ -27,6 +27,8 @@
 #include <mach/immap_85xx.h>
 
 struct cpu_type cpu_type_list[] = {
+	CPU_TYPE_ENTRY(8544, 8544, 1),
+	CPU_TYPE_ENTRY(8544, 8544_E, 1),
 	CPU_TYPE_ENTRY(P2020, P2020, 2),
 	CPU_TYPE_ENTRY(P2020, P2020_E, 2),
 };
arch/ppc/mach-mpc85xx/fsl_gpio.c new file +47 -0

47 lines not on this page · raw message

arch/ppc/mach-mpc85xx/include/mach/config_mpc85xx.h +5 -0
index 9a5598f..7cdb37f 100644
@@ -28,6 +28,11 @@
 #define MAX_CPUS	2
 #define FSL_NUM_LAWS	12
 #define FSL_SEC_COMPAT	2
+
+#elif defined(CONFIG_MPC8544)
+#define MAX_CPUS	1
+#define FSL_NUM_LAWS	10
+
 #else
 #error Processor type not defined for this platform
 #endif
arch/ppc/mach-mpc85xx/include/mach/gpio.h new file +17 -0
new file mode 100644
index 0000000..61f6349
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2013 GE Intelligent Platforms, Inc.
+ *
+ * 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.
+ */
+
+#ifndef _MACH_PPC_GPIO_H
+#define _MACH_PPC_GPIO_H
+
+#include <asm-generic/gpio.h>
+
+extern void fsl_enable_gpiout(void);
+
+#endif /* _MACH_PPC_GPIO_H */
arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h +23 -0
index bef4e29..ff3a312 100644
@@ -32,6 +32,7 @@
 #define MPC85xx_ECM_OFFSET	0x1000
 #define MPC85xx_DDR_OFFSET	0x2000
 #define MPC85xx_LBC_OFFSET	0x5000
+#define MPC85xx_PCI1_OFFSET	0x8000
 
 #define MPC85xx_GPIO_OFFSET	0xf000
 #define MPC85xx_L2_OFFSET	0x20000
@@ -58,6 +59,8 @@
 
 /* ECM Registers */
 #define MPC85xx_ECM_EEBPCR_OFFSET	0x00 /* ECM CCB Port Configuration */
+#define MPC85xx_ECM_EEDR_OFFSET		0xE00 /* ECM error detect register  */
+#define MPC85xx_ECM_EEER_OFFSET		0xE08 /* ECM error enable register  */
 
 /*
  * DDR Memory Controller Register Offsets
@@ -94,6 +97,9 @@
 /* training init and extended addr */
 #define MPC85xx_DDR_SDRAM_INIT_ADDR_OFFSET	0x148
 #define MPC85xx_DDR_SDRAM_INIT_ADDR_EXT_OFFSET	0x14c
+/* DDR IP block revision */
+#define MPC85xx_DDR_IP_REV1_OFFSET	0xbf8
+#define MPC85xx_DDR_IP_REV2_OFFSET	0xbfc
 
 #define DDR_OFF(REGNAME)	(MPC85xx_DDR_##REGNAME##_OFFSET)
 
@@ -102,6 +108,20 @@
  */
 #define MPC85xx_GPIO_GPDIR	0x00
 #define MPC85xx_GPIO_GPDAT	0x08
+#define MPC85xx_GPIO_GPDIR_OFFSET	0x00
+#define MPC85xx_GPIO_GPDAT_OFFSET	0x08
+
+/* Global Utilities Registers */
+#define MPC85xx_GPIOCR_OFFSET	0x30
+#define		MPC85xx_GPIOCR_GPOUT	0x00000200
+#define MPC85xx_GPOUTDR_OFFSET	0x40
+#define		MPC85xx_GPIOBIT(i)	(1 << (31 - i))
+#define MPC85xx_GPINDR_OFFSET	0x50
+
+#define MPC85xx_DEVDISR_OFFSET	0x70
+#define		MPC85xx_DEVDISR_TSEC1	0x00000080
+#define		MPC85xx_DEVDISR_TSEC2	0x00000040
+#define		MPC85xx_DEVDISR_TSEC3	0x00000020
 
 /*
  * L2 Cache Register Offsets
@@ -125,6 +145,8 @@
 #define MPC85xx_GUTS_PORPLLSR_OFFSET	0x0
 #define		MPC85xx_PORPLLSR_DDR_RATIO		0x00003e00
 #define		MPC85xx_PORPLLSR_DDR_RATIO_SHIFT	9
+#define MPC85xx_GUTS_PORDEVSR2_OFFSET	0x14
+#define		MPC85xx_PORDEVSR2_SEC_CFG		0x00000080
 #define MPC85xx_GUTS_DEVDISR_OFFSET	0x70
 #define		MPC85xx_DEVDISR_TB0	0x00004000
 #define		MPC85xx_DEVDISR_TB1	0x00001000
@@ -136,4 +158,5 @@
 #define I2C1_BASE_ADDR		(CFG_IMMR + 0x3000)
 #define I2C2_BASE_ADDR		(CFG_IMMR + 0x3100)
 
+#define PCI1_BASE_ADDR		(CFG_IMMR + MPC85xx_PCI1_OFFSET)
 #endif /*__IMMAP_85xx__*/
arch/ppc/mach-mpc85xx/speed.c +9 -0
index 8b447ea..64c10f9 100644
@@ -101,9 +101,18 @@ unsigned long fsl_get_timebase_clock(void)
 
 unsigned long fsl_get_i2c_freq(void)
 {
+	uint svr;
 	struct sys_info sysinfo;
+	void __iomem *gur = IOMEM(MPC85xx_GUTS_ADDR);
 
 	fsl_get_sys_info(&sysinfo);
 
+	svr = get_svr();
+	if ((svr == SVR_8544) || (svr == SVR_8544_E)) {
+		if (in_be32(gur + MPC85xx_GUTS_PORDEVSR2_OFFSET) &
+				MPC85xx_PORDEVSR2_SEC_CFG)
+			return sysinfo.freqSystemBus / 3;
+	}
+
 	return sysinfo.freqSystemBus / 2;
 }
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH v3 2/5 ppc: mpc85xx: define Ethernet port count

In reply to Renaud Barbier

Because the port count is different between the MPC8544 and existing CPU support, the Ethernet port count is defined on a per CPU basis.
Accordingly, the TBI PHY initialisation code is updated.

---
 arch/ppc/mach-mpc85xx/eth-devices.c                |    2 +-
 .../ppc/mach-mpc85xx/include/mach/config_mpc85xx.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/ppc/mach-mpc85xx/eth-devices.c +1 -1
index 611a578..efebe11 100644
@@ -40,7 +40,7 @@ static int fsl_phy_init(void)
 	add_generic_device("gfar-mdio", 0, NULL, MDIO_BASE_ADDR,
 			0x1000, IORESOURCE_MEM, NULL);
 
-	for (i = 1; i < 3; i++) {
+	for (i = 1; i < FSL_NUM_TSEC; i++) {
 		out_be32(base + (i * 0x1000), GFAR_TBIPA_END - i);
 		/* Use "gfar-tbiphy" devices to access internal PHY. */
 		add_generic_device("gfar-tbiphy", i, NULL,
arch/ppc/mach-mpc85xx/include/mach/config_mpc85xx.h +2 -0
index 7cdb37f..7d606d1 100644
@@ -28,10 +28,12 @@
 #define MAX_CPUS	2
 #define FSL_NUM_LAWS	12
 #define FSL_SEC_COMPAT	2
+#define FSL_NUM_TSEC	3
 
 #elif defined(CONFIG_MPC8544)
 #define MAX_CPUS	1
 #define FSL_NUM_LAWS	10
+#define FSL_NUM_TSEC	2
 
 #else
 #error Processor type not defined for this platform
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

PATCH v3 3/5 ppc: mpc85xx: enable DDR driver

In reply to Renaud Barbier

The use of the DDR driver as well as early I2C support is enabled for board initialising their memory through SPD EEPROM data.

A SOC specific function returning the DDR bus frequency is added for the DDR driver to translate DDR timings to register values.

---
 arch/ppc/ddr-8xxx/Makefile                 |    2 ++
 arch/ppc/mach-mpc85xx/Makefile             |    1 +
 arch/ppc/mach-mpc85xx/cpu.c                |    6 ++++--
 arch/ppc/mach-mpc85xx/include/mach/clock.h |    1 +
 arch/ppc/mach-mpc85xx/speed.c              |    9 +++++++++
 5 files changed, 17 insertions(+), 2 deletions(-)
 create mode 100644 arch/ppc/ddr-8xxx/Makefile
arch/ppc/ddr-8xxx/Makefile new file +2 -0
new file mode 100644
index 0000000..54cb7ce
@@ -0,0 +1,2 @@
+obj-y	+=  	main.o util.o ctrl_regs.o options.o lc_common_dimm_params.o
+obj-$(CONFIG_FSL_DDR2)	+= ddr2_dimm_params.o ddr2_setctrl.o
arch/ppc/mach-mpc85xx/Makefile +1 -0
index 81d6853..dba0550 100644
@@ -4,6 +4,7 @@ obj-y 			+= cpu_init.o
 obj-y			+= fsl_law.o
 obj-y			+= speed.o
 obj-y			+=time.o
+obj-y			+= fsl_i2c.o
 obj-$(CONFIG_MP)	+= mp.o
 obj-$(CONFIG_OFTREE)	+= fdt.o
 obj-$(CONFIG_DRIVER_NET_GIANFAR) += eth-devices.o
arch/ppc/mach-mpc85xx/cpu.c +4 -2
index 39343ff..17a1c4c 100644
@@ -44,8 +44,10 @@ long int initdram(int board_type)
 {
 	phys_size_t dram_size = 0;
 
-	dram_size = fixed_sdram();
-
+	if (IS_ENABLED(CONFIG_DDR_SPD))
+		dram_size = fsl_ddr_sdram();
+	else
+		dram_size = fixed_sdram();
 	dram_size = e500_setup_ddr_tlbs(dram_size / 0x100000);
 	dram_size *= 0x100000;
 
arch/ppc/mach-mpc85xx/include/mach/clock.h +1 -0
index e20d685..0e68cf6 100644
@@ -11,6 +11,7 @@ struct sys_info {
 };
 
 unsigned long fsl_get_bus_freq(ulong dummy);
+unsigned long fsl_get_ddr_freq(ulong dummy);
 unsigned long fsl_get_timebase_clock(void);
 unsigned long fsl_get_i2c_freq(void);
 void fsl_get_sys_info(struct sys_info *sysInfo);
arch/ppc/mach-mpc85xx/speed.c +9 -0
index 64c10f9..eb9d725 100644
@@ -90,6 +90,15 @@ unsigned long fsl_get_bus_freq(ulong dummy)
 	return sys_info.freqSystemBus;
 }
 
+unsigned long fsl_get_ddr_freq(ulong dummy)
+{
+	struct sys_info sys_info;
+
+	fsl_get_sys_info(&sys_info);
+
+	return sys_info.freqDDRBus;
+}
+
 unsigned long fsl_get_timebase_clock(void)
 {
 	struct sys_info sysinfo;
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw

PATCH v3 4/5 ppc: DA923RC: add board support

In reply to Renaud Barbier

Add the GEIP DA923RC board support. This includes core files as well as defconfig and make files.

---
 arch/ppc/boards/geip-da923rc/Makefile       |    7 +
 arch/ppc/boards/geip-da923rc/barebox.lds.S  |  155 +++++++++++++++++++
 arch/ppc/boards/geip-da923rc/config.h       |   54 +++++++
 arch/ppc/boards/geip-da923rc/da923rc.c      |  212 +++++++++++++++++++++++++++
 arch/ppc/boards/geip-da923rc/ddr.c          |  169 +++++++++++++++++++++
 arch/ppc/boards/geip-da923rc/env/bin/init   |    4 +
 arch/ppc/boards/geip-da923rc/env/config     |    4 +
 arch/ppc/boards/geip-da923rc/law.c          |   24 +++
 arch/ppc/boards/geip-da923rc/nand.c         |   94 ++++++++++++
 arch/ppc/boards/geip-da923rc/product_data.c |   66 +++++++++
 arch/ppc/boards/geip-da923rc/product_data.h |   62 ++++++++
 arch/ppc/boards/geip-da923rc/tlb.c          |   69 +++++++++
 arch/ppc/configs/da923rc_defconfig          |   57 +++++++
 13 files changed, 977 insertions(+), 0 deletions(-)
 create mode 100644 arch/ppc/boards/geip-da923rc/Makefile
 create mode 100644 arch/ppc/boards/geip-da923rc/barebox.lds.S
 create mode 100644 arch/ppc/boards/geip-da923rc/config.h
 create mode 100644 arch/ppc/boards/geip-da923rc/da923rc.c
 create mode 100644 arch/ppc/boards/geip-da923rc/ddr.c
 create mode 100644 arch/ppc/boards/geip-da923rc/env/bin/init
 create mode 100644 arch/ppc/boards/geip-da923rc/env/config
 create mode 100644 arch/ppc/boards/geip-da923rc/law.c
 create mode 100644 arch/ppc/boards/geip-da923rc/nand.c
 create mode 100644 arch/ppc/boards/geip-da923rc/product_data.c
 create mode 100644 arch/ppc/boards/geip-da923rc/product_data.h
 create mode 100644 arch/ppc/boards/geip-da923rc/tlb.c
 create mode 100644 arch/ppc/configs/da923rc_defconfig
arch/ppc/boards/geip-da923rc/Makefile new file +7 -0
new file mode 100644
index 0000000..0c28a79
@@ -0,0 +1,7 @@
+obj-y += da923rc.o
+obj-y += tlb.o
+obj-y += law.o
+obj-y += ddr.o
+obj-y += nand.o
+obj-y += product_data.o
+extra-y += barebox.lds
arch/ppc/boards/geip-da923rc/barebox.lds.S new file +155 -0

155 lines not on this page · raw message

arch/ppc/boards/geip-da923rc/config.h new file +54 -0

54 lines not on this page · raw message

arch/ppc/boards/geip-da923rc/da923rc.c new file +212 -0

212 lines not on this page · raw message

arch/ppc/boards/geip-da923rc/ddr.c new file +169 -0

169 lines not on this page · raw message

arch/ppc/boards/geip-da923rc/env/bin/init new file +4 -0
new file mode 100644
index 0000000..6308999
@@ -0,0 +1,4 @@
+#!/bin/sh
+export PATH=/env/bin
+
+source /env/config
arch/ppc/boards/geip-da923rc/env/config new file +4 -0
new file mode 100644
index 0000000..79e2606
@@ -0,0 +1,4 @@
+#!/bin/sh
+export bootargs="root=/dev/nfs rw ip=bootp"
+eth0.ipaddr=192.168.0.136
+eth0.serverip=192.168.0.102
arch/ppc/boards/geip-da923rc/law.c new file +24 -0
new file mode 100644
index 0000000..3d32c7e
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2013 GE Intelligent Platforms, Inc.
+ *
+ * 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 <asm/fsl_law.h>
+
+struct law_entry law_table[] = {
+	FSL_SET_LAW(0xf8000000, LAW_SIZE_128M, LAW_TRGT_IF_LBC),
+	FSL_SET_LAW(0xc0000000, LAW_SIZE_256M, LAW_TRGT_IF_PCI),
+	FSL_SET_LAW(0xe1000000, LAW_SIZE_64K, LAW_TRGT_IF_PCI),
+};
+
+int num_law_entries = ARRAY_SIZE(law_table);
arch/ppc/boards/geip-da923rc/nand.c new file +94 -0

94 lines not on this page · raw message

arch/ppc/boards/geip-da923rc/product_data.c new file +66 -0

66 lines not on this page · raw message

arch/ppc/boards/geip-da923rc/product_data.h new file +62 -0

62 lines not on this page · raw message

arch/ppc/boards/geip-da923rc/tlb.c new file +69 -0

69 lines not on this page · raw message

arch/ppc/configs/da923rc_defconfig new file +57 -0

57 lines not on this page · raw message

Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw

PATCH v3 5/5 ppc: mpc85xx: build directives

In reply to Renaud Barbier

Add the Kconfig and Makefile directives to build barebox for the GEIP DA923RC board.

---
 arch/ppc/Makefile              |    1 +
 arch/ppc/mach-mpc85xx/Kconfig  |   32 +++++++++++++++++++++++++-------
 arch/ppc/mach-mpc85xx/Makefile |    2 ++
 3 files changed, 28 insertions(+), 7 deletions(-)
arch/ppc/Makefile +1 -0
index f0322a2..aa00c96 100644
@@ -13,6 +13,7 @@ endif
 
 board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY)	:= pcm030
 board-$(CONFIG_P2020RDB)			:= freescale-p2020rdb
+board-$(CONFIG_DA923RC)				:= geip-da923rc
 
 machine-$(CONFIG_ARCH_MPC5200)			:= mpc5xxx
 machine-$(CONFIG_ARCH_MPC85XX)			:= mpc85xx
arch/ppc/mach-mpc85xx/Kconfig +25 -7
index 9af4af4..80cb0d9 100644
@@ -3,10 +3,19 @@ if ARCH_MPC85XX
 config TEXT_BASE
 	hex
 	default 0xeff80000 if P2020RDB
+	default 0xfff80000 if DA923RC
 
 config MPC85xx
 	bool
-	default y if P2020RDB
+	default y
+
+config BOOKE
+	bool
+	default y
+
+config E500
+	bool
+	default y
 
 choice
 	prompt "Select your board"
@@ -16,8 +25,11 @@ config P2020RDB
 	help
 	  Say Y here if you are using the Freescale P2020RDB
 
+config DA923RC
+	bool "DA923RC"
+	help
+	Say Y here if you are using the GE Intelligent Platforms DA923RC
 endchoice
-
 endif
 
 if P2020RDB
@@ -25,15 +37,21 @@ config P2020
 	bool
 	default y
 
-config BOOKE
+config FSL_ELBC
 	bool
 	default y
+endif
 
-config E500
+if DA923RC
+config MPC8544
 	bool
 	default y
 
-config FSL_ELBC
-	bool
-	default y
+config DDR_SPD
+    bool
+    default y
+
+config FSL_DDR2
+    bool
+    default y
 endif
arch/ppc/mach-mpc85xx/Makefile +2 -0
index dba0550..ce6c77a 100644
@@ -4,7 +4,9 @@ obj-y 			+= cpu_init.o
 obj-y			+= fsl_law.o
 obj-y			+= speed.o
 obj-y			+=time.o
+obj-y			+= fsl_gpio.o
 obj-y			+= fsl_i2c.o
 obj-$(CONFIG_MP)	+= mp.o
 obj-$(CONFIG_OFTREE)	+= fdt.o
 obj-$(CONFIG_DRIVER_NET_GIANFAR) += eth-devices.o
+obj-$(CONFIG_DDR_SPD)	+= ../ddr-8xxx/
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#6 lore raw
In reply to Renaud Barbier
Quoted 9 lines · Renaud Barbier

This patch set addresses comments by using the GPIO API to set gpio out pins, using the I2C API where necessary but still allowing for early I2C access for future early configuration.

This patch set adds support to the GEIP DA923RC extending the CPU support to the MPC8544 and allowing the use of the DDR driver.

Quoted 6 lines

Renaud Barbier (5):
ppc: mpc85xx: mpc8544 support
ppc: mpc85xx: define Ethernet port count
ppc: mpc85xx: enable DDR driver
ppc: DA923RC: add board support
ppc: mpc85xx: build directives

Applied, thanks

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox