mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] Add support for Voipac X53-DMM-668 module
@ 2013-10-01 21:35 Rostislav Lisovy
  2013-10-01 21:35 ` [PATCH 1/4] i.mx53: voipac: Change machine type identifier Rostislav Lisovy
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Rostislav Lisovy @ 2013-10-01 21:35 UTC (permalink / raw)
  To: barebox; +Cc: Rostislav Lisovy, pisa

This patchset adds support for Voipac X53-DMM-668 module equipped
with i.mx53 CPU. More info about the module may be found at:
http://www.voipac.com/#X53-DMM-668

The board specific code enables UART0, NAND flash, Ethernet.
The flash_header.c containing DCD configuration data is almost
the same (except for one line) as the one in freescale-mx53-smd.


Rostislav Lisovy (4):
  i.mx53: voipac: Change machine type identifier
  i.mx53: voipac: Add board specific + flash header constructing code
  i.mx53: voipac: Add barebox environment configuration file
  i.mx53: voipac: Modify Make- and config-files to enable building of
    mx53-voipac

 arch/arm/boards/Makefile                           |    1 +
 arch/arm/boards/freescale-mx53-voipac/Makefile     |    3 +
 arch/arm/boards/freescale-mx53-voipac/board.c      |  168 ++++++++++++++++++++
 arch/arm/boards/freescale-mx53-voipac/env/config   |   46 ++++++
 .../boards/freescale-mx53-voipac/flash_header.c    |  102 ++++++++++++
 arch/arm/boards/freescale-mx53-voipac/lowlevel.c   |    9 ++
 arch/arm/mach-imx/Kconfig                          |   10 ++
 arch/arm/tools/mach-types                          |    2 +-
 8 files changed, 340 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/Makefile
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/board.c
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/env/config
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/flash_header.c
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/lowlevel.c

-- 
1.7.10.4


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

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

* [PATCH 1/4] i.mx53: voipac: Change machine type identifier
  2013-10-01 21:35 [PATCH 0/4] Add support for Voipac X53-DMM-668 module Rostislav Lisovy
@ 2013-10-01 21:35 ` Rostislav Lisovy
  2013-10-02  4:31   ` Jean-Christophe PLAGNIOL-VILLARD
  2013-10-02  7:22   ` Sascha Hauer
  2013-10-01 21:35 ` [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code Rostislav Lisovy
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 13+ messages in thread
From: Rostislav Lisovy @ 2013-10-01 21:35 UTC (permalink / raw)
  To: barebox; +Cc: Rostislav Lisovy, pisa

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>


diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types
index 325513f..b4c8228 100644
--- a/arch/arm/tools/mach-types
+++ b/arch/arm/tools/mach-types
@@ -3314,7 +3314,7 @@ dimm_imx28		MACH_DIMM_IMX28		DIMM_IMX28		3355
 amk_a4			MACH_AMK_A4		AMK_A4			3356
 gnet_sgme		MACH_GNET_SGME		GNET_SGME		3357
 shooter_u		MACH_SHOOTER_U		SHOOTER_U		3358
-vmx53			MACH_VMX53		VMX53			3359
+voipac			MACH_MX53_VOIPAC	MX53_VOIPAC		3359
 rhino			MACH_RHINO		RHINO			3360
 armlex4210		MACH_ARMLEX4210		ARMLEX4210		3361
 swarcoextmodem		MACH_SWARCOEXTMODEM	SWARCOEXTMODEM		3362
-- 
1.7.10.4


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

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

* [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code
  2013-10-01 21:35 [PATCH 0/4] Add support for Voipac X53-DMM-668 module Rostislav Lisovy
  2013-10-01 21:35 ` [PATCH 1/4] i.mx53: voipac: Change machine type identifier Rostislav Lisovy
@ 2013-10-01 21:35 ` Rostislav Lisovy
  2013-10-02  4:30   ` Jean-Christophe PLAGNIOL-VILLARD
  2013-10-02  6:15   ` Antony Pavlov
  2013-10-01 21:35 ` [PATCH 3/4] i.mx53: voipac: Add barebox environment configuration file Rostislav Lisovy
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 13+ messages in thread
From: Rostislav Lisovy @ 2013-10-01 21:35 UTC (permalink / raw)
  To: barebox; +Cc: Rostislav Lisovy, pisa

In board.c enable UART0, NAND flash, Ethernet.
The DCD in flash_header.c is very similar (except for one line)
to that from freescale-mx53-smd

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
---
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/Makefile
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/board.c
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/flash_header.c
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/lowlevel.c

diff --git a/arch/arm/boards/freescale-mx53-voipac/Makefile b/arch/arm/boards/freescale-mx53-voipac/Makefile
new file mode 100644
index 0000000..d44f697
--- /dev/null
+++ b/arch/arm/boards/freescale-mx53-voipac/Makefile
@@ -0,0 +1,3 @@
+obj-y += board.o
+lwl-y += flash_header.o
+lwl-y += lowlevel.o
diff --git a/arch/arm/boards/freescale-mx53-voipac/board.c b/arch/arm/boards/freescale-mx53-voipac/board.c
new file mode 100644
index 0000000..997aa28
--- /dev/null
+++ b/arch/arm/boards/freescale-mx53-voipac/board.c
@@ -0,0 +1,168 @@
+/*
+ * Copyright (C) 2007 Sascha Hauer, Pengutronix
+ * Copyright (C) 2011 Marc Kleine-Budde <mkl@pengutronix.de>
+ * Copyright (C) 2013 Rostislav Lisovy <lisovy@gmail.com>, PiKRON s.r.o.
+ *
+ * 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 <environment.h>
+#include <fcntl.h>
+#include <fec.h>
+#include <fs.h>
+#include <init.h>
+#include <nand.h>
+#include <net.h>
+#include <partition.h>
+#include <sizes.h>
+
+#include <generated/mach-types.h>
+
+#include <mach/imx53-regs.h>
+#include <mach/iomux-mx53.h>
+#include <mach/devices-imx53.h>
+#include <mach/generic.h>
+#include <mach/gpio.h>
+#include <mach/imx-nand.h>
+#include <mach/iim.h>
+#include <mach/imx5.h>
+
+#include <asm/armlinux.h>
+#include <io.h>
+#include <asm/mmu.h>
+
+#ifdef CONFIG_DRIVER_NET_FEC_IMX
+static struct fec_platform_data fec_info = {
+	.xcv_type = PHY_INTERFACE_MODE_RMII,
+	.phy_addr = 0x1F,
+};
+#endif
+
+#ifdef CONFIG_NAND_IMX
+struct imx_nand_platform_data nand_info = {
+        .width          = 1,
+        .hw_ecc         = 1,
+        .flash_bbt      = 1,
+};
+#endif
+
+static iomux_v3_cfg_t voipac_pads[] = {
+	/* UART1 */
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
+	MX53_PAD_PATA_IORDY__UART1_RTS,
+	MX53_PAD_PATA_RESET_B__UART1_CTS,
+
+	/* NAND */
+#ifdef CONFIG_NAND_IMX
+	MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B,
+	MX53_PAD_NANDF_RE_B__EMI_NANDF_RE_B,
+	MX53_PAD_NANDF_ALE__EMI_NANDF_ALE,
+	MX53_PAD_NANDF_CLE__EMI_NANDF_CLE,
+	MX53_PAD_NANDF_WP_B__EMI_NANDF_WP_B,
+	MX53_PAD_NANDF_RB0__EMI_NANDF_RB_0,
+	MX53_PAD_NANDF_CS0__EMI_NANDF_CS_0,
+	MX53_PAD_PATA_DATA0__EMI_NANDF_D_0,
+	MX53_PAD_PATA_DATA1__EMI_NANDF_D_1,
+	MX53_PAD_PATA_DATA2__EMI_NANDF_D_2,
+	MX53_PAD_PATA_DATA3__EMI_NANDF_D_3,
+	MX53_PAD_PATA_DATA4__EMI_NANDF_D_4,
+	MX53_PAD_PATA_DATA5__EMI_NANDF_D_5,
+	MX53_PAD_PATA_DATA6__EMI_NANDF_D_6,
+	MX53_PAD_PATA_DATA7__EMI_NANDF_D_7,
+#endif
+
+	/* FEC */
+#ifdef CONFIG_DRIVER_NET_FEC_IMX
+	MX53_PAD_FEC_MDC__FEC_MDC,
+	MX53_PAD_FEC_MDIO__FEC_MDIO,
+	MX53_PAD_FEC_REF_CLK__FEC_TX_CLK,
+	MX53_PAD_FEC_RX_ER__FEC_RX_ER,
+	MX53_PAD_FEC_CRS_DV__FEC_RX_DV,
+	MX53_PAD_FEC_RXD1__FEC_RDATA_1,
+	MX53_PAD_FEC_RXD0__FEC_RDATA_0,
+	MX53_PAD_FEC_TX_EN__FEC_TX_EN,
+	MX53_PAD_FEC_TXD1__FEC_TDATA_1,
+	MX53_PAD_FEC_TXD0__FEC_TDATA_0,
+	MX53_PAD_GPIO_11__GPIO4_1,	/* FEC_PEN */
+	MX53_PAD_GPIO_12__GPIO4_2,	/* FEC_RST */
+#endif
+
+	MX53_PAD_EIM_A24__GPIO5_4,	/* PSAVE */
+	MX53_PAD_GPIO_17__GPIO7_12,	/* RESET_OUT */
+};
+
+#ifdef CONFIG_DRIVER_NET_FEC_IMX
+
+#define VMX53_FEC_PEN				IMX_GPIO_NR(4, 1)
+#define VMX53_FEC_RST				IMX_GPIO_NR(4, 2)
+
+static void voipac_fec_reset(void)
+{
+	gpio_direction_output(VMX53_FEC_RST, 0);	/* assert resset */
+	gpio_direction_output(VMX53_FEC_PEN, 1);	/* enable 50MHz oscilator */
+	mdelay(1);
+	gpio_set_value(VMX53_FEC_RST, 1);		/* deassert reset */
+}
+#endif
+
+#define PSAVE					IMX_GPIO_NR(5, 4)
+#define RESET_OUT				IMX_GPIO_NR(7, 12)
+
+static int voipac_devices_init(void)
+{
+	gpio_direction_output(RESET_OUT, 0);	/* assert RESET_OUT */
+
+#ifdef CONFIG_DRIVER_NET_FEC_IMX
+        imx53_iim_register_fec_ethaddr();
+        imx53_add_fec(&fec_info);
+	voipac_fec_reset();
+#endif
+
+#ifdef CONFIG_NAND_IMX
+	imx53_add_nand(&nand_info);
+#endif
+
+	armlinux_set_bootparams((void *)0x70000100);
+	armlinux_set_architecture(MACH_TYPE_MX53_VOIPAC);
+
+	gpio_direction_output(RESET_OUT, 1);	/* deassert RESET_OUT */
+
+	return 0;
+}
+device_initcall(voipac_devices_init);
+
+static int voipac_part_init(void)
+{
+#ifdef CONFIG_NAND_IMX
+	devfs_add_partition("nand0", 0x00000, 0x60000, DEVFS_PARTITION_FIXED, "self_raw");
+	dev_add_bb_dev("self_raw", "self0");
+
+	devfs_add_partition("nand0", 0x60000, 0xA0000, DEVFS_PARTITION_FIXED, "env_raw");
+	dev_add_bb_dev("env_raw", "env0");
+#endif
+
+	return 0;
+}
+late_initcall(voipac_part_init);
+
+static int voipac_console_init(void)
+{
+	mxc_iomux_v3_setup_multiple_pads(voipac_pads, ARRAY_SIZE(voipac_pads));
+
+	imx53_init_lowlevel(800);
+	imx53_add_uart0();
+
+	return 0;
+}
+console_initcall(voipac_console_init);
diff --git a/arch/arm/boards/freescale-mx53-voipac/flash_header.c b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
new file mode 100644
index 0000000..c9ae06c
--- /dev/null
+++ b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
@@ -0,0 +1,102 @@
+/*
+ * Copyright (C) 2011 Marc Kleine-Budde <mkl@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 <asm/byteorder.h>
+#include <mach/imx-flash-header.h>
+#include <asm/barebox-arm-head.h>
+
+void __naked __flash_header_start go(void)
+{
+	barebox_arm_imx_fcb_head();
+}
+
+struct imx_dcd_v2_entry __dcd_entry_section dcd_entry[] = {
+	{ .addr = cpu_to_be32(0x53fa8554), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8558), .val = cpu_to_be32(0x00300040), },
+	{ .addr = cpu_to_be32(0x53fa8560), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8564), .val = cpu_to_be32(0x00300040), },
+	{ .addr = cpu_to_be32(0x53fa8568), .val = cpu_to_be32(0x00300040), },
+	{ .addr = cpu_to_be32(0x53fa8570), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8574), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8578), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa857c), .val = cpu_to_be32(0x00300040), },
+	{ .addr = cpu_to_be32(0x53fa8580), .val = cpu_to_be32(0x00300040), },
+	{ .addr = cpu_to_be32(0x53fa8584), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8588), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8590), .val = cpu_to_be32(0x00300040), },
+	{ .addr = cpu_to_be32(0x53fa8594), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa86f0), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa86f4), .val = cpu_to_be32(0x00000000), },
+	{ .addr = cpu_to_be32(0x53fa86fc), .val = cpu_to_be32(0x00000000), },
+	{ .addr = cpu_to_be32(0x53fa8714), .val = cpu_to_be32(0x00000000), },
+	{ .addr = cpu_to_be32(0x53fa8718), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa871c), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8720), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa8724), .val = cpu_to_be32(0x04000000), },
+	{ .addr = cpu_to_be32(0x53fa8728), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x53fa872c), .val = cpu_to_be32(0x00300000), },
+	{ .addr = cpu_to_be32(0x63fd9088), .val = cpu_to_be32(0x35343535), },
+	{ .addr = cpu_to_be32(0x63fd9090), .val = cpu_to_be32(0x4d444c44), },
+	{ .addr = cpu_to_be32(0x63fd907c), .val = cpu_to_be32(0x01370138), },
+	{ .addr = cpu_to_be32(0x63fd9080), .val = cpu_to_be32(0x013b013c), },
+	{ .addr = cpu_to_be32(0x63fd9018), .val = cpu_to_be32(0x00011740), },
+	{ .addr = cpu_to_be32(0x63fd9000), .val = cpu_to_be32(0xc4190000), },
+	{ .addr = cpu_to_be32(0x63fd900c), .val = cpu_to_be32(0x9f5152e3), },
+	{ .addr = cpu_to_be32(0x63fd9010), .val = cpu_to_be32(0xb68e8a63), },
+	{ .addr = cpu_to_be32(0x63fd9014), .val = cpu_to_be32(0x01ff00db), },
+	{ .addr = cpu_to_be32(0x63fd902c), .val = cpu_to_be32(0x000026d2), },
+	{ .addr = cpu_to_be32(0x63fd9030), .val = cpu_to_be32(0x009f0e21), },
+	{ .addr = cpu_to_be32(0x63fd9008), .val = cpu_to_be32(0x12273030), },
+	{ .addr = cpu_to_be32(0x63fd9004), .val = cpu_to_be32(0x0002002d), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00008032), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00008033), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00028031), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x052080b0), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x04008040), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x0000803a), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x0000803b), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00028039), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x05208138), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x04008048), },
+	{ .addr = cpu_to_be32(0x63fd9020), .val = cpu_to_be32(0x00005800), },
+	{ .addr = cpu_to_be32(0x63fd9040), .val = cpu_to_be32(0x04b80003), },
+	{ .addr = cpu_to_be32(0x63fd9058), .val = cpu_to_be32(0x00022227), },
+	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00000000), },
+};
+
+#define APP_DEST	0x70000000
+
+struct imx_flash_header_v2 __flash_header_section flash_header = {
+	.header.tag		= IVT_HEADER_TAG,
+	.header.length		= cpu_to_be16(32),
+	.header.version		= IVT_VERSION,
+
+	.entry			= APP_DEST + 0x1000,
+	.dcd_ptr		= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2, dcd),
+	.boot_data_ptr		= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2, boot_data),
+	.self			= APP_DEST + 0x400,
+
+	.boot_data.start	= APP_DEST,
+	.boot_data.size		= DCD_BAREBOX_SIZE,
+
+	.dcd.header.tag		= DCD_HEADER_TAG,
+	.dcd.header.length	= cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),
+	.dcd.header.version	= DCD_VERSION,
+
+	.dcd.command.tag	= DCD_COMMAND_WRITE_TAG,
+	.dcd.command.length	= cpu_to_be16(sizeof(struct imx_dcd_command) + sizeof(dcd_entry)),
+	.dcd.command.param	= DCD_COMMAND_WRITE_PARAM,
+};
diff --git a/arch/arm/boards/freescale-mx53-voipac/lowlevel.c b/arch/arm/boards/freescale-mx53-voipac/lowlevel.c
new file mode 100644
index 0000000..60c28f7
--- /dev/null
+++ b/arch/arm/boards/freescale-mx53-voipac/lowlevel.c
@@ -0,0 +1,9 @@
+#include <common.h>
+#include <mach/esdctl.h>
+#include <asm/barebox-arm-head.h>
+
+void __naked barebox_arm_reset_vector(void)
+{
+	arm_cpu_lowlevel_init();
+	imx53_barebox_entry(0);
+}
-- 
1.7.10.4


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

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

* [PATCH 3/4] i.mx53: voipac: Add barebox environment configuration file
  2013-10-01 21:35 [PATCH 0/4] Add support for Voipac X53-DMM-668 module Rostislav Lisovy
  2013-10-01 21:35 ` [PATCH 1/4] i.mx53: voipac: Change machine type identifier Rostislav Lisovy
  2013-10-01 21:35 ` [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code Rostislav Lisovy
@ 2013-10-01 21:35 ` Rostislav Lisovy
  2013-10-01 21:35 ` [PATCH 4/4] i.mx53: voipac: Modify Make- and config-files to enable building of mx53-voipac Rostislav Lisovy
  2013-10-02  4:31 ` [PATCH 0/4] Add support for Voipac X53-DMM-668 module Jean-Christophe PLAGNIOL-VILLARD
  4 siblings, 0 replies; 13+ messages in thread
From: Rostislav Lisovy @ 2013-10-01 21:35 UTC (permalink / raw)
  To: barebox; +Cc: Rostislav Lisovy, pisa

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
---
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/env/config

diff --git a/arch/arm/boards/freescale-mx53-voipac/env/config b/arch/arm/boards/freescale-mx53-voipac/env/config
new file mode 100644
index 0000000..59432d7
--- /dev/null
+++ b/arch/arm/boards/freescale-mx53-voipac/env/config
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+global.hostname=imx53-voipac
+eth0.serverip=
+user=
+
+# use 'dhcp' to do dhcp in barebox and in kernel
+# use 'none' if you want to skip kernel ip autoconfiguration
+ip=dhcp
+
+# or set your networking parameters here
+#eth0.ipaddr=a.b.c.d
+#eth0.netmask=a.b.c.d
+#eth0.gateway=a.b.c.d
+#eth0.serverip=a.b.c.d
+
+# can be either 'nfs', 'tftp', 'nor' or 'nand'
+kernel_loc=tftp
+# can be either 'net', 'nor', 'nand' or 'initrd'
+rootfs_loc=net
+
+# can be either 'jffs2' or 'ubifs'
+rootfs_type=ubifs
+rootfsimage=root-${global.hostname}.$rootfs_type
+
+kernelimage=zImage-${global.hostname}
+#kernelimage=uImage-${global.hostname}
+#kernelimage=Image-${global.hostname}
+#kernelimage=Image-${global.hostname}.lzo
+
+if [ -n $user ]; then
+	kernelimage="$user"-"$kernelimage"
+	nfsroot="$eth0.serverip:/home/$user/nfsroot/${global.hostname}"
+	rootfsimage="$user"-"$rootfsimage"
+else
+	nfsroot="$eth0.serverip:/path/to/nfs/root"
+fi
+
+autoboot_timeout=3
+
+bootargs="console=ttymxc0,115200"
+
+disk_parts="256k(barebox)ro,128k(bareboxenv),4M(kernel),-(root)"
+
+# set a fancy prompt (if support is compiled in)
+PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
-- 
1.7.10.4


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

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

* [PATCH 4/4] i.mx53: voipac: Modify Make- and config-files to enable building of mx53-voipac
  2013-10-01 21:35 [PATCH 0/4] Add support for Voipac X53-DMM-668 module Rostislav Lisovy
                   ` (2 preceding siblings ...)
  2013-10-01 21:35 ` [PATCH 3/4] i.mx53: voipac: Add barebox environment configuration file Rostislav Lisovy
@ 2013-10-01 21:35 ` Rostislav Lisovy
  2013-10-02  4:31 ` [PATCH 0/4] Add support for Voipac X53-DMM-668 module Jean-Christophe PLAGNIOL-VILLARD
  4 siblings, 0 replies; 13+ messages in thread
From: Rostislav Lisovy @ 2013-10-01 21:35 UTC (permalink / raw)
  To: barebox; +Cc: Rostislav Lisovy, pisa

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>


diff --git a/arch/arm/boards/Makefile b/arch/arm/boards/Makefile
index 2e924fd..8070de9 100644
--- a/arch/arm/boards/Makefile
+++ b/arch/arm/boards/Makefile
@@ -35,6 +35,7 @@ obj-$(CONFIG_MACH_FREESCALE_MX35_3STACK)	+= freescale-mx35-3-stack/
 obj-$(CONFIG_MACH_FREESCALE_MX51_PDK)		+= freescale-mx51-pdk/
 obj-$(CONFIG_MACH_FREESCALE_MX53_LOCO)		+= freescale-mx53-loco/
 obj-$(CONFIG_MACH_FREESCALE_MX53_SMD)		+= freescale-mx53-smd/
+obj-$(CONFIG_MACH_FREESCALE_MX53_VOIPAC)	+= freescale-mx53-voipac/
 obj-$(CONFIG_MACH_GE863)			+= telit-evk-pro3/
 obj-$(CONFIG_MACH_GK802)			+= gk802/
 obj-$(CONFIG_MACH_GLOBALSCALE_GURUPLUG)		+= globalscale-guruplug/
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index e087e11..fb9d05c 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -20,6 +20,7 @@ config ARCH_TEXT_BASE
 	default 0x97f00000 if MACH_FREESCALE_MX51_PDK
 	default 0x7ff00000 if MACH_FREESCALE_MX53_LOCO
 	default 0x7ff00000 if MACH_FREESCALE_MX53_SMD
+	default 0x7ff00000 if MACH_FREESCALE_MX53_VOIPAC
 	default 0x87f00000 if MACH_GUF_CUPID
 	default 0x93d00000 if MACH_TX25
 	default 0x7ff00000 if MACH_TQMA53
@@ -52,6 +53,7 @@ config BOARDINFO
 	default "Synertronixx scb9328" if MACH_SCB9328
 	default "Garz+Fricke Neso" if MACH_NESO
 	default "Freescale i.MX53 SMD" if MACH_FREESCALE_MX53_SMD
+	default "Voipac i.MX53" if MACH_FREESCALE_MX53_VOIPAC
 	default "Efika MX smartbook" if MACH_EFIKA_MX_SMARTBOOK
 	default "Garz+Fricke Cupid" if MACH_GUF_CUPID
 	default "Ka-Ro tx25" if MACH_TX25
@@ -452,6 +454,14 @@ config MACH_FREESCALE_MX53_SMD
 	bool "Freescale i.MX53 SMD"
 	select ARCH_IMX53
 
+config MACH_FREESCALE_MX53_VOIPAC
+	bool "Voipac i.MX53"
+	select ARCH_IMX53
+	select HAVE_DEFAULT_ENVIRONMENT_NEW
+	help
+	  Say Y here if you are using the Voipac Technologies X53-DMM-668
+	  module equipped with a Freescale i.MX53 Processor
+
 config MACH_TQMA53
 	bool "TQ i.MX53 TQMa53"
 	select ARCH_IMX53
-- 
1.7.10.4


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

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

* Re: [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code
  2013-10-01 21:35 ` [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code Rostislav Lisovy
@ 2013-10-02  4:30   ` Jean-Christophe PLAGNIOL-VILLARD
  2013-10-02  6:15   ` Antony Pavlov
  1 sibling, 0 replies; 13+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-10-02  4:30 UTC (permalink / raw)
  To: Rostislav Lisovy; +Cc: barebox, pisa

On 23:35 Tue 01 Oct     , Rostislav Lisovy wrote:
> In board.c enable UART0, NAND flash, Ethernet.
> The DCD in flash_header.c is very similar (except for one line)
> to that from freescale-mx53-smd
> 
> Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> ---
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/Makefile
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/board.c
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/flash_header.c
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> 
> diff --git a/arch/arm/boards/freescale-mx53-voipac/Makefile b/arch/arm/boards/freescale-mx53-voipac/Makefile
> new file mode 100644
> index 0000000..d44f697
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/Makefile
> @@ -0,0 +1,3 @@
> +obj-y += board.o
> +lwl-y += flash_header.o
> +lwl-y += lowlevel.o
> diff --git a/arch/arm/boards/freescale-mx53-voipac/board.c b/arch/arm/boards/freescale-mx53-voipac/board.c
> new file mode 100644
> index 0000000..997aa28
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/board.c
> @@ -0,0 +1,168 @@
> +/*
> + * Copyright (C) 2007 Sascha Hauer, Pengutronix
> + * Copyright (C) 2011 Marc Kleine-Budde <mkl@pengutronix.de>
> + * Copyright (C) 2013 Rostislav Lisovy <lisovy@gmail.com>, PiKRON s.r.o.
> + *
> + * 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 <environment.h>
> +#include <fcntl.h>
> +#include <fec.h>
> +#include <fs.h>
> +#include <init.h>
> +#include <nand.h>
> +#include <net.h>
> +#include <partition.h>
> +#include <sizes.h>
> +
> +#include <generated/mach-types.h>
> +
> +#include <mach/imx53-regs.h>
> +#include <mach/iomux-mx53.h>
> +#include <mach/devices-imx53.h>
> +#include <mach/generic.h>
> +#include <mach/gpio.h>
> +#include <mach/imx-nand.h>
> +#include <mach/iim.h>
> +#include <mach/imx5.h>
> +
> +#include <asm/armlinux.h>
> +#include <io.h>
> +#include <asm/mmu.h>
> +
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +static struct fec_platform_data fec_info = {
> +	.xcv_type = PHY_INTERFACE_MODE_RMII,
> +	.phy_addr = 0x1F,
> +};
> +#endif
> +
> +#ifdef CONFIG_NAND_IMX
> +struct imx_nand_platform_data nand_info = {
> +        .width          = 1,
> +        .hw_ecc         = 1,
> +        .flash_bbt      = 1,
> +};
> +#endif
> +
> +static iomux_v3_cfg_t voipac_pads[] = {
> +	/* UART1 */
> +	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
> +	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
> +	MX53_PAD_PATA_IORDY__UART1_RTS,
> +	MX53_PAD_PATA_RESET_B__UART1_CTS,
> +
> +	/* NAND */
> +#ifdef CONFIG_NAND_IMX
> +	MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B,
> +	MX53_PAD_NANDF_RE_B__EMI_NANDF_RE_B,
> +	MX53_PAD_NANDF_ALE__EMI_NANDF_ALE,
> +	MX53_PAD_NANDF_CLE__EMI_NANDF_CLE,
> +	MX53_PAD_NANDF_WP_B__EMI_NANDF_WP_B,
> +	MX53_PAD_NANDF_RB0__EMI_NANDF_RB_0,
> +	MX53_PAD_NANDF_CS0__EMI_NANDF_CS_0,
> +	MX53_PAD_PATA_DATA0__EMI_NANDF_D_0,
> +	MX53_PAD_PATA_DATA1__EMI_NANDF_D_1,
> +	MX53_PAD_PATA_DATA2__EMI_NANDF_D_2,
> +	MX53_PAD_PATA_DATA3__EMI_NANDF_D_3,
> +	MX53_PAD_PATA_DATA4__EMI_NANDF_D_4,
> +	MX53_PAD_PATA_DATA5__EMI_NANDF_D_5,
> +	MX53_PAD_PATA_DATA6__EMI_NANDF_D_6,
> +	MX53_PAD_PATA_DATA7__EMI_NANDF_D_7,
> +#endif
> +
> +	/* FEC */
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +	MX53_PAD_FEC_MDC__FEC_MDC,
> +	MX53_PAD_FEC_MDIO__FEC_MDIO,
> +	MX53_PAD_FEC_REF_CLK__FEC_TX_CLK,
> +	MX53_PAD_FEC_RX_ER__FEC_RX_ER,
> +	MX53_PAD_FEC_CRS_DV__FEC_RX_DV,
> +	MX53_PAD_FEC_RXD1__FEC_RDATA_1,
> +	MX53_PAD_FEC_RXD0__FEC_RDATA_0,
> +	MX53_PAD_FEC_TX_EN__FEC_TX_EN,
> +	MX53_PAD_FEC_TXD1__FEC_TDATA_1,
> +	MX53_PAD_FEC_TXD0__FEC_TDATA_0,
> +	MX53_PAD_GPIO_11__GPIO4_1,	/* FEC_PEN */
> +	MX53_PAD_GPIO_12__GPIO4_2,	/* FEC_RST */
> +#endif
> +
> +	MX53_PAD_EIM_A24__GPIO5_4,	/* PSAVE */
> +	MX53_PAD_GPIO_17__GPIO7_12,	/* RESET_OUT */
> +};
> +
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +
> +#define VMX53_FEC_PEN				IMX_GPIO_NR(4, 1)
> +#define VMX53_FEC_RST				IMX_GPIO_NR(4, 2)
> +
> +static void voipac_fec_reset(void)
> +{
> +	gpio_direction_output(VMX53_FEC_RST, 0);	/* assert resset */
> +	gpio_direction_output(VMX53_FEC_PEN, 1);	/* enable 50MHz oscilator */
> +	mdelay(1);
> +	gpio_set_value(VMX53_FEC_RST, 1);		/* deassert reset */

you need to request the gpio first

so we can track it with the proper label in gpiolib
> +}
> +#endif
> +
> +#define PSAVE					IMX_GPIO_NR(5, 4)
> +#define RESET_OUT				IMX_GPIO_NR(7, 12)
> +
> +static int voipac_devices_init(void)
> +{
> +	gpio_direction_output(RESET_OUT, 0);	/* assert RESET_OUT */
why?
> +
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +        imx53_iim_register_fec_ethaddr();
> +        imx53_add_fec(&fec_info);
tab for indeteation

and use IS_ENABLED not ifdef
> +	voipac_fec_reset();
> +#endif
> +
> +#ifdef CONFIG_NAND_IMX
> +	imx53_add_nand(&nand_info);
> +#endif
> +
> +	armlinux_set_bootparams((void *)0x70000100);
> +	armlinux_set_architecture(MACH_TYPE_MX53_VOIPAC);
> +
> +	gpio_direction_output(RESET_OUT, 1);	/* deassert RESET_OUT */
> +
> +	return 0;
> +}
> +device_initcall(voipac_devices_init);
> +
> +static int voipac_part_init(void)
> +{
> +#ifdef CONFIG_NAND_IMX
> +	devfs_add_partition("nand0", 0x00000, 0x60000, DEVFS_PARTITION_FIXED, "self_raw");
> +	dev_add_bb_dev("self_raw", "self0");
> +
> +	devfs_add_partition("nand0", 0x60000, 0xA0000, DEVFS_PARTITION_FIXED, "env_raw");
> +	dev_add_bb_dev("env_raw", "env0");
> +#endif
do this in devices_init
> +
> +	return 0;
> +}
> +late_initcall(voipac_part_init);
> +
> +static int voipac_console_init(void)
> +{
> +	mxc_iomux_v3_setup_multiple_pads(voipac_pads, ARRAY_SIZE(voipac_pads));
> +
> +	imx53_init_lowlevel(800);
> +	imx53_add_uart0();
> +
> +	return 0;
> +}
> +console_initcall(voipac_console_init);
> diff --git a/arch/arm/boards/freescale-mx53-voipac/flash_header.c b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
> new file mode 100644
> index 0000000..c9ae06c
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
> @@ -0,0 +1,102 @@
> +/*
> + * Copyright (C) 2011 Marc Kleine-Budde <mkl@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 <asm/byteorder.h>
> +#include <mach/imx-flash-header.h>
> +#include <asm/barebox-arm-head.h>
> +
> +void __naked __flash_header_start go(void)
> +{
> +	barebox_arm_imx_fcb_head();
> +}
> +
> +struct imx_dcd_v2_entry __dcd_entry_section dcd_entry[] = {
> +	{ .addr = cpu_to_be32(0x53fa8554), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8558), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8560), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8564), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8568), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8570), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8574), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8578), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa857c), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8580), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8584), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8588), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8590), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8594), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa86f0), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa86f4), .val = cpu_to_be32(0x00000000), },
> +	{ .addr = cpu_to_be32(0x53fa86fc), .val = cpu_to_be32(0x00000000), },
> +	{ .addr = cpu_to_be32(0x53fa8714), .val = cpu_to_be32(0x00000000), },
> +	{ .addr = cpu_to_be32(0x53fa8718), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa871c), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8720), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8724), .val = cpu_to_be32(0x04000000), },
> +	{ .addr = cpu_to_be32(0x53fa8728), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa872c), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x63fd9088), .val = cpu_to_be32(0x35343535), },
> +	{ .addr = cpu_to_be32(0x63fd9090), .val = cpu_to_be32(0x4d444c44), },
> +	{ .addr = cpu_to_be32(0x63fd907c), .val = cpu_to_be32(0x01370138), },
> +	{ .addr = cpu_to_be32(0x63fd9080), .val = cpu_to_be32(0x013b013c), },
> +	{ .addr = cpu_to_be32(0x63fd9018), .val = cpu_to_be32(0x00011740), },
> +	{ .addr = cpu_to_be32(0x63fd9000), .val = cpu_to_be32(0xc4190000), },
> +	{ .addr = cpu_to_be32(0x63fd900c), .val = cpu_to_be32(0x9f5152e3), },
> +	{ .addr = cpu_to_be32(0x63fd9010), .val = cpu_to_be32(0xb68e8a63), },
> +	{ .addr = cpu_to_be32(0x63fd9014), .val = cpu_to_be32(0x01ff00db), },
> +	{ .addr = cpu_to_be32(0x63fd902c), .val = cpu_to_be32(0x000026d2), },
> +	{ .addr = cpu_to_be32(0x63fd9030), .val = cpu_to_be32(0x009f0e21), },
> +	{ .addr = cpu_to_be32(0x63fd9008), .val = cpu_to_be32(0x12273030), },
> +	{ .addr = cpu_to_be32(0x63fd9004), .val = cpu_to_be32(0x0002002d), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00008032), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00008033), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00028031), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x052080b0), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x04008040), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x0000803a), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x0000803b), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00028039), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x05208138), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x04008048), },
> +	{ .addr = cpu_to_be32(0x63fd9020), .val = cpu_to_be32(0x00005800), },
> +	{ .addr = cpu_to_be32(0x63fd9040), .val = cpu_to_be32(0x04b80003), },
> +	{ .addr = cpu_to_be32(0x63fd9058), .val = cpu_to_be32(0x00022227), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00000000), },
> +};
> +
> +#define APP_DEST	0x70000000
> +
> +struct imx_flash_header_v2 __flash_header_section flash_header = {
> +	.header.tag		= IVT_HEADER_TAG,
> +	.header.length		= cpu_to_be16(32),
> +	.header.version		= IVT_VERSION,
> +
> +	.entry			= APP_DEST + 0x1000,
> +	.dcd_ptr		= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2, dcd),
> +	.boot_data_ptr		= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2, boot_data),
> +	.self			= APP_DEST + 0x400,
> +
> +	.boot_data.start	= APP_DEST,
> +	.boot_data.size		= DCD_BAREBOX_SIZE,
> +
> +	.dcd.header.tag		= DCD_HEADER_TAG,
> +	.dcd.header.length	= cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),
> +	.dcd.header.version	= DCD_VERSION,
> +
> +	.dcd.command.tag	= DCD_COMMAND_WRITE_TAG,
> +	.dcd.command.length	= cpu_to_be16(sizeof(struct imx_dcd_command) + sizeof(dcd_entry)),
> +	.dcd.command.param	= DCD_COMMAND_WRITE_PARAM,
> +};
> diff --git a/arch/arm/boards/freescale-mx53-voipac/lowlevel.c b/arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> new file mode 100644
> index 0000000..60c28f7
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> @@ -0,0 +1,9 @@
> +#include <common.h>
> +#include <mach/esdctl.h>
> +#include <asm/barebox-arm-head.h>
> +
> +void __naked barebox_arm_reset_vector(void)
> +{
> +	arm_cpu_lowlevel_init();
> +	imx53_barebox_entry(0);
> +}
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

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

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

* Re: [PATCH 0/4] Add support for Voipac X53-DMM-668 module
  2013-10-01 21:35 [PATCH 0/4] Add support for Voipac X53-DMM-668 module Rostislav Lisovy
                   ` (3 preceding siblings ...)
  2013-10-01 21:35 ` [PATCH 4/4] i.mx53: voipac: Modify Make- and config-files to enable building of mx53-voipac Rostislav Lisovy
@ 2013-10-02  4:31 ` Jean-Christophe PLAGNIOL-VILLARD
  2013-10-02  4:54   ` Jean-Christophe PLAGNIOL-VILLARD
  4 siblings, 1 reply; 13+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-10-02  4:31 UTC (permalink / raw)
  To: Rostislav Lisovy; +Cc: barebox, pisa

On 23:35 Tue 01 Oct     , Rostislav Lisovy wrote:
> This patchset adds support for Voipac X53-DMM-668 module equipped
> with i.mx53 CPU. More info about the module may be found at:
> http://www.voipac.com/#X53-DMM-668
> 
> The board specific code enables UART0, NAND flash, Ethernet.
> The flash_header.c containing DCD configuration data is almost
> the same (except for one line) as the one in freescale-mx53-smd.
> 
> 

squash the 4 patch in one please

> Rostislav Lisovy (4):
>   i.mx53: voipac: Change machine type identifier
>   i.mx53: voipac: Add board specific + flash header constructing code
>   i.mx53: voipac: Add barebox environment configuration file
>   i.mx53: voipac: Modify Make- and config-files to enable building of
>     mx53-voipac
> 
>  arch/arm/boards/Makefile                           |    1 +
>  arch/arm/boards/freescale-mx53-voipac/Makefile     |    3 +
>  arch/arm/boards/freescale-mx53-voipac/board.c      |  168 ++++++++++++++++++++
>  arch/arm/boards/freescale-mx53-voipac/env/config   |   46 ++++++
>  .../boards/freescale-mx53-voipac/flash_header.c    |  102 ++++++++++++
>  arch/arm/boards/freescale-mx53-voipac/lowlevel.c   |    9 ++
>  arch/arm/mach-imx/Kconfig                          |   10 ++
>  arch/arm/tools/mach-types                          |    2 +-
>  8 files changed, 340 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/Makefile
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/board.c
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/env/config
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/flash_header.c
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> 
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

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

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

* Re: [PATCH 1/4] i.mx53: voipac: Change machine type identifier
  2013-10-01 21:35 ` [PATCH 1/4] i.mx53: voipac: Change machine type identifier Rostislav Lisovy
@ 2013-10-02  4:31   ` Jean-Christophe PLAGNIOL-VILLARD
  2013-10-02  7:22   ` Sascha Hauer
  1 sibling, 0 replies; 13+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-10-02  4:31 UTC (permalink / raw)
  To: Rostislav Lisovy; +Cc: barebox, pisa

On 23:35 Tue 01 Oct     , Rostislav Lisovy wrote:
> Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> 
> 
> diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types
> index 325513f..b4c8228 100644
> --- a/arch/arm/tools/mach-types
> +++ b/arch/arm/tools/mach-types
> @@ -3314,7 +3314,7 @@ dimm_imx28		MACH_DIMM_IMX28		DIMM_IMX28		3355
>  amk_a4			MACH_AMK_A4		AMK_A4			3356
>  gnet_sgme		MACH_GNET_SGME		GNET_SGME		3357
>  shooter_u		MACH_SHOOTER_U		SHOOTER_U		3358
> -vmx53			MACH_VMX53		VMX53			3359
> +voipac			MACH_MX53_VOIPAC	MX53_VOIPAC		3359
>  rhino			MACH_RHINO		RHINO			3360
>  armlex4210		MACH_ARMLEX4210		ARMLEX4210		3361
>  swarcoextmodem		MACH_SWARCOEXTMODEM	SWARCOEXTMODEM		3362

why that?

Best Regards,
J.

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

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

* Re: [PATCH 0/4] Add support for Voipac X53-DMM-668 module
  2013-10-02  4:31 ` [PATCH 0/4] Add support for Voipac X53-DMM-668 module Jean-Christophe PLAGNIOL-VILLARD
@ 2013-10-02  4:54   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 13+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-10-02  4:54 UTC (permalink / raw)
  To: Rostislav Lisovy; +Cc: barebox, pisa

On 06:31 Wed 02 Oct     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 23:35 Tue 01 Oct     , Rostislav Lisovy wrote:
> > This patchset adds support for Voipac X53-DMM-668 module equipped
> > with i.mx53 CPU. More info about the module may be found at:
> > http://www.voipac.com/#X53-DMM-668
> > 
> > The board specific code enables UART0, NAND flash, Ethernet.
> > The flash_header.c containing DCD configuration data is almost
> > the same (except for one line) as the one in freescale-mx53-smd.
> > 
> > 
> 
> squash the 4 patch in one please

I mean the 3 board adding patch into one
> 
> > Rostislav Lisovy (4):
> >   i.mx53: voipac: Change machine type identifier
> >   i.mx53: voipac: Add board specific + flash header constructing code
> >   i.mx53: voipac: Add barebox environment configuration file
> >   i.mx53: voipac: Modify Make- and config-files to enable building of
> >     mx53-voipac
> > 
> >  arch/arm/boards/Makefile                           |    1 +
> >  arch/arm/boards/freescale-mx53-voipac/Makefile     |    3 +
> >  arch/arm/boards/freescale-mx53-voipac/board.c      |  168 ++++++++++++++++++++
> >  arch/arm/boards/freescale-mx53-voipac/env/config   |   46 ++++++
> >  .../boards/freescale-mx53-voipac/flash_header.c    |  102 ++++++++++++
> >  arch/arm/boards/freescale-mx53-voipac/lowlevel.c   |    9 ++
> >  arch/arm/mach-imx/Kconfig                          |   10 ++
> >  arch/arm/tools/mach-types                          |    2 +-
> >  8 files changed, 340 insertions(+), 1 deletion(-)
> >  create mode 100644 arch/arm/boards/freescale-mx53-voipac/Makefile
> >  create mode 100644 arch/arm/boards/freescale-mx53-voipac/board.c
> >  create mode 100644 arch/arm/boards/freescale-mx53-voipac/env/config
> >  create mode 100644 arch/arm/boards/freescale-mx53-voipac/flash_header.c
> >  create mode 100644 arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> > 
> > -- 
> > 1.7.10.4
> > 
> > 
> > _______________________________________________
> > barebox mailing list
> > barebox@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/barebox
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

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

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

* Re: [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code
  2013-10-01 21:35 ` [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code Rostislav Lisovy
  2013-10-02  4:30   ` Jean-Christophe PLAGNIOL-VILLARD
@ 2013-10-02  6:15   ` Antony Pavlov
  2013-10-02 14:01     ` Rostislav Lisovy
  1 sibling, 1 reply; 13+ messages in thread
From: Antony Pavlov @ 2013-10-02  6:15 UTC (permalink / raw)
  To: Rostislav Lisovy; +Cc: barebox, pisa

On Tue,  1 Oct 2013 23:35:20 +0200
Rostislav Lisovy <lisovy@gmail.com> wrote:

> In board.c enable UART0, NAND flash, Ethernet.
> The DCD in flash_header.c is very similar (except for one line)
> to that from freescale-mx53-smd
> 
> Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> ---
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/Makefile
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/board.c
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/flash_header.c
>  create mode 100644 arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> 
> diff --git a/arch/arm/boards/freescale-mx53-voipac/Makefile b/arch/arm/boards/freescale-mx53-voipac/Makefile
> new file mode 100644
> index 0000000..d44f697
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/Makefile
> @@ -0,0 +1,3 @@
> +obj-y += board.o
> +lwl-y += flash_header.o
> +lwl-y += lowlevel.o
> diff --git a/arch/arm/boards/freescale-mx53-voipac/board.c b/arch/arm/boards/freescale-mx53-voipac/board.c
> new file mode 100644
> index 0000000..997aa28
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/board.c
> @@ -0,0 +1,168 @@
> +/*
> + * Copyright (C) 2007 Sascha Hauer, Pengutronix
> + * Copyright (C) 2011 Marc Kleine-Budde <mkl@pengutronix.de>
> + * Copyright (C) 2013 Rostislav Lisovy <lisovy@gmail.com>, PiKRON s.r.o.
> + *
> + * 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 <environment.h>
> +#include <fcntl.h>
> +#include <fec.h>
> +#include <fs.h>
> +#include <init.h>
> +#include <nand.h>
> +#include <net.h>
> +#include <partition.h>
> +#include <sizes.h>
> +
> +#include <generated/mach-types.h>
> +
> +#include <mach/imx53-regs.h>
> +#include <mach/iomux-mx53.h>
> +#include <mach/devices-imx53.h>
> +#include <mach/generic.h>
> +#include <mach/gpio.h>
> +#include <mach/imx-nand.h>
> +#include <mach/iim.h>
> +#include <mach/imx5.h>
> +
> +#include <asm/armlinux.h>
> +#include <io.h>
> +#include <asm/mmu.h>
> +
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +static struct fec_platform_data fec_info = {
> +	.xcv_type = PHY_INTERFACE_MODE_RMII,
> +	.phy_addr = 0x1F,
> +};
> +#endif
> +
> +#ifdef CONFIG_NAND_IMX
> +struct imx_nand_platform_data nand_info = {
> +        .width          = 1,
> +        .hw_ecc         = 1,
> +        .flash_bbt      = 1,
> +};
> +#endif
> +
> +static iomux_v3_cfg_t voipac_pads[] = {
> +	/* UART1 */
> +	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
> +	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
> +	MX53_PAD_PATA_IORDY__UART1_RTS,
> +	MX53_PAD_PATA_RESET_B__UART1_CTS,
> +
> +	/* NAND */
> +#ifdef CONFIG_NAND_IMX
> +	MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B,
> +	MX53_PAD_NANDF_RE_B__EMI_NANDF_RE_B,
> +	MX53_PAD_NANDF_ALE__EMI_NANDF_ALE,
> +	MX53_PAD_NANDF_CLE__EMI_NANDF_CLE,
> +	MX53_PAD_NANDF_WP_B__EMI_NANDF_WP_B,
> +	MX53_PAD_NANDF_RB0__EMI_NANDF_RB_0,
> +	MX53_PAD_NANDF_CS0__EMI_NANDF_CS_0,
> +	MX53_PAD_PATA_DATA0__EMI_NANDF_D_0,
> +	MX53_PAD_PATA_DATA1__EMI_NANDF_D_1,
> +	MX53_PAD_PATA_DATA2__EMI_NANDF_D_2,
> +	MX53_PAD_PATA_DATA3__EMI_NANDF_D_3,
> +	MX53_PAD_PATA_DATA4__EMI_NANDF_D_4,
> +	MX53_PAD_PATA_DATA5__EMI_NANDF_D_5,
> +	MX53_PAD_PATA_DATA6__EMI_NANDF_D_6,
> +	MX53_PAD_PATA_DATA7__EMI_NANDF_D_7,
> +#endif
> +
> +	/* FEC */
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +	MX53_PAD_FEC_MDC__FEC_MDC,
> +	MX53_PAD_FEC_MDIO__FEC_MDIO,
> +	MX53_PAD_FEC_REF_CLK__FEC_TX_CLK,
> +	MX53_PAD_FEC_RX_ER__FEC_RX_ER,
> +	MX53_PAD_FEC_CRS_DV__FEC_RX_DV,
> +	MX53_PAD_FEC_RXD1__FEC_RDATA_1,
> +	MX53_PAD_FEC_RXD0__FEC_RDATA_0,
> +	MX53_PAD_FEC_TX_EN__FEC_TX_EN,
> +	MX53_PAD_FEC_TXD1__FEC_TDATA_1,
> +	MX53_PAD_FEC_TXD0__FEC_TDATA_0,
> +	MX53_PAD_GPIO_11__GPIO4_1,	/* FEC_PEN */
> +	MX53_PAD_GPIO_12__GPIO4_2,	/* FEC_RST */
> +#endif
> +
> +	MX53_PAD_EIM_A24__GPIO5_4,	/* PSAVE */
> +	MX53_PAD_GPIO_17__GPIO7_12,	/* RESET_OUT */
> +};
> +
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +
> +#define VMX53_FEC_PEN				IMX_GPIO_NR(4, 1)
> +#define VMX53_FEC_RST				IMX_GPIO_NR(4, 2)
> +
> +static void voipac_fec_reset(void)
> +{
> +	gpio_direction_output(VMX53_FEC_RST, 0);	/* assert resset */
> +	gpio_direction_output(VMX53_FEC_PEN, 1);	/* enable 50MHz oscilator */
> +	mdelay(1);
> +	gpio_set_value(VMX53_FEC_RST, 1);		/* deassert reset */
> +}
> +#endif
> +
> +#define PSAVE					IMX_GPIO_NR(5, 4)
> +#define RESET_OUT				IMX_GPIO_NR(7, 12)
> +
> +static int voipac_devices_init(void)
> +{
> +	gpio_direction_output(RESET_OUT, 0);	/* assert RESET_OUT */
> +
> +#ifdef CONFIG_DRIVER_NET_FEC_IMX
> +        imx53_iim_register_fec_ethaddr();
> +        imx53_add_fec(&fec_info);
> +	voipac_fec_reset();
> +#endif
> +
> +#ifdef CONFIG_NAND_IMX
> +	imx53_add_nand(&nand_info);
> +#endif
> +
> +	armlinux_set_bootparams((void *)0x70000100);
> +	armlinux_set_architecture(MACH_TYPE_MX53_VOIPAC);
> +
> +	gpio_direction_output(RESET_OUT, 1);	/* deassert RESET_OUT */
> +
> +	return 0;
> +}
> +device_initcall(voipac_devices_init);
> +
> +static int voipac_part_init(void)
> +{
> +#ifdef CONFIG_NAND_IMX
> +	devfs_add_partition("nand0", 0x00000, 0x60000, DEVFS_PARTITION_FIXED, "self_raw");
> +	dev_add_bb_dev("self_raw", "self0");
> +
> +	devfs_add_partition("nand0", 0x60000, 0xA0000, DEVFS_PARTITION_FIXED, "env_raw");
> +	dev_add_bb_dev("env_raw", "env0");
> +#endif
> +
> +	return 0;
> +}
> +late_initcall(voipac_part_init);
> +
> +static int voipac_console_init(void)
> +{
> +	mxc_iomux_v3_setup_multiple_pads(voipac_pads, ARRAY_SIZE(voipac_pads));
> +
> +	imx53_init_lowlevel(800);
> +	imx53_add_uart0();
> +
> +	return 0;
> +}
> +console_initcall(voipac_console_init);
> diff --git a/arch/arm/boards/freescale-mx53-voipac/flash_header.c b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
> new file mode 100644
> index 0000000..c9ae06c
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
> @@ -0,0 +1,102 @@
> +/*
> + * Copyright (C) 2011 Marc Kleine-Budde <mkl@pengutronix.de>

This file is rather like freescale-mx53-smd/flash_header.c,
but please change copyright header.

> + *
> + * 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/byteorder.h>
> +#include <mach/imx-flash-header.h>
> +#include <asm/barebox-arm-head.h>
> +
> +void __naked __flash_header_start go(void)
> +{
> +	barebox_arm_imx_fcb_head();
> +}
> +
> +struct imx_dcd_v2_entry __dcd_entry_section dcd_entry[] = {
> +	{ .addr = cpu_to_be32(0x53fa8554), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8558), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8560), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8564), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8568), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8570), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8574), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8578), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa857c), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8580), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8584), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8588), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8590), .val = cpu_to_be32(0x00300040), },
> +	{ .addr = cpu_to_be32(0x53fa8594), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa86f0), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa86f4), .val = cpu_to_be32(0x00000000), },
> +	{ .addr = cpu_to_be32(0x53fa86fc), .val = cpu_to_be32(0x00000000), },
> +	{ .addr = cpu_to_be32(0x53fa8714), .val = cpu_to_be32(0x00000000), },
> +	{ .addr = cpu_to_be32(0x53fa8718), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa871c), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8720), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa8724), .val = cpu_to_be32(0x04000000), },
> +	{ .addr = cpu_to_be32(0x53fa8728), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x53fa872c), .val = cpu_to_be32(0x00300000), },
> +	{ .addr = cpu_to_be32(0x63fd9088), .val = cpu_to_be32(0x35343535), },
> +	{ .addr = cpu_to_be32(0x63fd9090), .val = cpu_to_be32(0x4d444c44), },
> +	{ .addr = cpu_to_be32(0x63fd907c), .val = cpu_to_be32(0x01370138), },
> +	{ .addr = cpu_to_be32(0x63fd9080), .val = cpu_to_be32(0x013b013c), },
> +	{ .addr = cpu_to_be32(0x63fd9018), .val = cpu_to_be32(0x00011740), },
> +	{ .addr = cpu_to_be32(0x63fd9000), .val = cpu_to_be32(0xc4190000), },
> +	{ .addr = cpu_to_be32(0x63fd900c), .val = cpu_to_be32(0x9f5152e3), },
> +	{ .addr = cpu_to_be32(0x63fd9010), .val = cpu_to_be32(0xb68e8a63), },
> +	{ .addr = cpu_to_be32(0x63fd9014), .val = cpu_to_be32(0x01ff00db), },
> +	{ .addr = cpu_to_be32(0x63fd902c), .val = cpu_to_be32(0x000026d2), },
> +	{ .addr = cpu_to_be32(0x63fd9030), .val = cpu_to_be32(0x009f0e21), },
> +	{ .addr = cpu_to_be32(0x63fd9008), .val = cpu_to_be32(0x12273030), },
> +	{ .addr = cpu_to_be32(0x63fd9004), .val = cpu_to_be32(0x0002002d), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00008032), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00008033), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00028031), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x052080b0), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x04008040), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x0000803a), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x0000803b), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00028039), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x05208138), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x04008048), },
> +	{ .addr = cpu_to_be32(0x63fd9020), .val = cpu_to_be32(0x00005800), },
> +	{ .addr = cpu_to_be32(0x63fd9040), .val = cpu_to_be32(0x04b80003), },
> +	{ .addr = cpu_to_be32(0x63fd9058), .val = cpu_to_be32(0x00022227), },
> +	{ .addr = cpu_to_be32(0x63fd901c), .val = cpu_to_be32(0x00000000), },
> +};
> +
> +#define APP_DEST	0x70000000
> +
> +struct imx_flash_header_v2 __flash_header_section flash_header = {
> +	.header.tag		= IVT_HEADER_TAG,
> +	.header.length		= cpu_to_be16(32),
> +	.header.version		= IVT_VERSION,
> +
> +	.entry			= APP_DEST + 0x1000,
> +	.dcd_ptr		= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2, dcd),
> +	.boot_data_ptr		= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2, boot_data),
> +	.self			= APP_DEST + 0x400,
> +
> +	.boot_data.start	= APP_DEST,
> +	.boot_data.size		= DCD_BAREBOX_SIZE,
> +
> +	.dcd.header.tag		= DCD_HEADER_TAG,
> +	.dcd.header.length	= cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),
> +	.dcd.header.version	= DCD_VERSION,
> +
> +	.dcd.command.tag	= DCD_COMMAND_WRITE_TAG,
> +	.dcd.command.length	= cpu_to_be16(sizeof(struct imx_dcd_command) + sizeof(dcd_entry)),
> +	.dcd.command.param	= DCD_COMMAND_WRITE_PARAM,
> +};
> diff --git a/arch/arm/boards/freescale-mx53-voipac/lowlevel.c b/arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> new file mode 100644
> index 0000000..60c28f7
> --- /dev/null
> +++ b/arch/arm/boards/freescale-mx53-voipac/lowlevel.c
> @@ -0,0 +1,9 @@
> +#include <common.h>
> +#include <mach/esdctl.h>
> +#include <asm/barebox-arm-head.h>
> +
> +void __naked barebox_arm_reset_vector(void)
> +{
> +	arm_cpu_lowlevel_init();
> +	imx53_barebox_entry(0);
> +}
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
-- 
Best regards,
  Antony Pavlov

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

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

* Re: [PATCH 1/4] i.mx53: voipac: Change machine type identifier
  2013-10-01 21:35 ` [PATCH 1/4] i.mx53: voipac: Change machine type identifier Rostislav Lisovy
  2013-10-02  4:31   ` Jean-Christophe PLAGNIOL-VILLARD
@ 2013-10-02  7:22   ` Sascha Hauer
  2013-10-02 13:57     ` Rostislav Lisovy
  1 sibling, 1 reply; 13+ messages in thread
From: Sascha Hauer @ 2013-10-02  7:22 UTC (permalink / raw)
  To: Rostislav Lisovy; +Cc: barebox, pisa

On Tue, Oct 01, 2013 at 11:35:19PM +0200, Rostislav Lisovy wrote:
> Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> 
> 
> diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types
> index 325513f..b4c8228 100644
> --- a/arch/arm/tools/mach-types
> +++ b/arch/arm/tools/mach-types
> @@ -3314,7 +3314,7 @@ dimm_imx28		MACH_DIMM_IMX28		DIMM_IMX28		3355
>  amk_a4			MACH_AMK_A4		AMK_A4			3356
>  gnet_sgme		MACH_GNET_SGME		GNET_SGME		3357
>  shooter_u		MACH_SHOOTER_U		SHOOTER_U		3358
> -vmx53			MACH_VMX53		VMX53			3359
> +voipac			MACH_MX53_VOIPAC	MX53_VOIPAC		3359

This file is autogenerated from http://www.arm.linux.org.uk/developer/machines/
and can only be updated from there. No manual changes are allowed since
they would be overwritten by the next update.

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] 13+ messages in thread

* Re: [PATCH 1/4] i.mx53: voipac: Change machine type identifier
  2013-10-02  7:22   ` Sascha Hauer
@ 2013-10-02 13:57     ` Rostislav Lisovy
  0 siblings, 0 replies; 13+ messages in thread
From: Rostislav Lisovy @ 2013-10-02 13:57 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, pisa

Hello Sascha;
Sorry for my mistake. I checked beforehand, if there is the
same record in mach-types in Linux kernel -- there is none,
so I thought this file is like 'Barebox specific copy'.
I find the name vmx53 confusing, however we have to stick
with it.

Regards;
Rostislav


On Wed, 2013-10-02 at 09:22 +0200, Sascha Hauer wrote:
> On Tue, Oct 01, 2013 at 11:35:19PM +0200, Rostislav Lisovy wrote:
> > Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> > 
> > 
> > diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types
> > index 325513f..b4c8228 100644
> > --- a/arch/arm/tools/mach-types
> > +++ b/arch/arm/tools/mach-types
> > @@ -3314,7 +3314,7 @@ dimm_imx28		MACH_DIMM_IMX28		DIMM_IMX28		3355
> >  amk_a4			MACH_AMK_A4		AMK_A4			3356
> >  gnet_sgme		MACH_GNET_SGME		GNET_SGME		3357
> >  shooter_u		MACH_SHOOTER_U		SHOOTER_U		3358
> > -vmx53			MACH_VMX53		VMX53			3359
> > +voipac			MACH_MX53_VOIPAC	MX53_VOIPAC		3359
> 
> This file is autogenerated from http://www.arm.linux.org.uk/developer/machines/
> and can only be updated from there. No manual changes are allowed since
> they would be overwritten by the next update.
> 
> Sascha
> 



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

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

* Re: [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code
  2013-10-02  6:15   ` Antony Pavlov
@ 2013-10-02 14:01     ` Rostislav Lisovy
  0 siblings, 0 replies; 13+ messages in thread
From: Rostislav Lisovy @ 2013-10-02 14:01 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox, pisa

Hello Antony;
OK -- I should probably add my name (even if I did not change
almost anything).

Regards;
Rostislav


On Wed, 2013-10-02 at 10:15 +0400, Antony Pavlov wrote:
> > diff --git a/arch/arm/boards/freescale-mx53-voipac/flash_header.c
> b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
> > new file mode 100644
> > index 0000000..c9ae06c
> > --- /dev/null
> > +++ b/arch/arm/boards/freescale-mx53-voipac/flash_header.c
> > @@ -0,0 +1,102 @@
> > +/*
> > + * Copyright (C) 2011 Marc Kleine-Budde <mkl@pengutronix.de>
> 
> This file is rather like freescale-mx53-smd/flash_header.c,
> but please change copyright header.



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

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

end of thread, other threads:[~2013-10-02 14:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-01 21:35 [PATCH 0/4] Add support for Voipac X53-DMM-668 module Rostislav Lisovy
2013-10-01 21:35 ` [PATCH 1/4] i.mx53: voipac: Change machine type identifier Rostislav Lisovy
2013-10-02  4:31   ` Jean-Christophe PLAGNIOL-VILLARD
2013-10-02  7:22   ` Sascha Hauer
2013-10-02 13:57     ` Rostislav Lisovy
2013-10-01 21:35 ` [PATCH 2/4] i.mx53: voipac: Add board specific + flash header constructing code Rostislav Lisovy
2013-10-02  4:30   ` Jean-Christophe PLAGNIOL-VILLARD
2013-10-02  6:15   ` Antony Pavlov
2013-10-02 14:01     ` Rostislav Lisovy
2013-10-01 21:35 ` [PATCH 3/4] i.mx53: voipac: Add barebox environment configuration file Rostislav Lisovy
2013-10-01 21:35 ` [PATCH 4/4] i.mx53: voipac: Modify Make- and config-files to enable building of mx53-voipac Rostislav Lisovy
2013-10-02  4:31 ` [PATCH 0/4] Add support for Voipac X53-DMM-668 module Jean-Christophe PLAGNIOL-VILLARD
2013-10-02  4:54   ` Jean-Christophe PLAGNIOL-VILLARD

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