diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-03 08:08:23 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-03 08:08:23 +0200 |
commit | 14e04d019b70cb8711b005bc316ac6a52d61db39 (patch) | |
tree | 0ea694070006e8de3ab372a67cf7c51b6ce9b259 /arch/arm/boards | |
parent | 6a86c6d40468a04c94b859b8b497e6dcff6dcc83 (diff) | |
parent | 74102fdf730b89cbc6dd0fe34c0d9b5f86ed7d8c (diff) | |
download | barebox-14e04d019b70cb8711b005bc316ac6a52d61db39.tar.gz barebox-14e04d019b70cb8711b005bc316ac6a52d61db39.tar.xz |
Merge branch 'for-next/imx'
Diffstat (limited to 'arch/arm/boards')
-rw-r--r-- | arch/arm/boards/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x128mx16.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/1066mhz_4x128mx16.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x256mx16.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/1066mhz_4x256mx16.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x512mx16-qp.imxcfg | 67 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/800mhz_4x128mx16.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/800mhz_4x128mx16.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/800mhz_4x256mx16.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/800mhz_4x256mx16.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/Makefile (renamed from arch/arm/boards/boundarydevices-nitrogen6x/Makefile) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/board.c (renamed from arch/arm/boards/boundarydevices-nitrogen6x/board.c) | 15 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6dl-1g.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6dl-1g.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6dl-2g.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6dl-2g.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6q-1g.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6q-1g.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6q-2g.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6q-2g.imxcfg) | 0 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6qp-max.imxcfg | 10 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/lowlevel.c (renamed from arch/arm/boards/boundarydevices-nitrogen6x/lowlevel.c) | 24 | ||||
-rw-r--r-- | arch/arm/boards/boundarydevices-nitrogen6/ram-base.imxcfg (renamed from arch/arm/boards/boundarydevices-nitrogen6x/ram-base.imxcfg) | 4 | ||||
-rw-r--r-- | arch/arm/boards/embest-riotboard/board.c | 2 | ||||
-rw-r--r-- | arch/arm/boards/phytec-phycore-imx35/flash-header.imxcfg | 37 | ||||
-rw-r--r-- | arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/nand | 6 |
18 files changed, 150 insertions, 17 deletions
diff --git a/arch/arm/boards/Makefile b/arch/arm/boards/Makefile index e3dcc6a615..35b636f0cf 100644 --- a/arch/arm/boards/Makefile +++ b/arch/arm/boards/Makefile @@ -15,7 +15,7 @@ obj-$(CONFIG_MACH_BEAGLE) += beagle/ obj-$(CONFIG_MACH_BEAGLEBONE) += beaglebone/ obj-$(CONFIG_MACH_CANON_A1100) += canon-a1100/ obj-$(CONFIG_MACH_CM_FX6) += cm-fx6/ -obj-$(CONFIG_MACH_NITROGEN6X) += boundarydevices-nitrogen6x/ +obj-$(CONFIG_MACH_NITROGEN6) += boundarydevices-nitrogen6/ obj-$(CONFIG_MACH_CCMX51) += ccxmx51/ obj-$(CONFIG_MACH_CCMX53) += ccxmx53/ obj-$(CONFIG_MACH_CFA10036) += crystalfontz-cfa10036/ diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/1066mhz_4x128mx16.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x128mx16.imxcfg index c5a286b4e0..c5a286b4e0 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/1066mhz_4x128mx16.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x128mx16.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/1066mhz_4x256mx16.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x256mx16.imxcfg index 4d8a715150..4d8a715150 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/1066mhz_4x256mx16.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x256mx16.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x512mx16-qp.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x512mx16-qp.imxcfg new file mode 100644 index 0000000000..6409b745d7 --- /dev/null +++ b/arch/arm/boards/boundarydevices-nitrogen6/1066mhz_4x512mx16-qp.imxcfg @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2016 Boundary Devices + * + * 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. + */ + +/* NOC setup */ +wm 32 0x00bb0008 0x00000004 +wm 32 0x00bb000c 0x2891E41A +wm 32 0x00bb0038 0x00000564 +wm 32 0x00bb0014 0x00000040 +wm 32 0x00bb0028 0x00000020 +wm 32 0x00bb002c 0x00000020 + +/* Disable all MMDC arbitration and reordering controls */ +wm 32 0x021b0400 0x14420000 + +wm 32 MX6_MMDC_P0_MDPDC 0x00020036 +wm 32 MX6_MMDC_P0_MDSCR 0x00008000 +wm 32 MX6_MMDC_P0_MDCFG0 0x898E79A4 +wm 32 MX6_MMDC_P0_MDCFG1 0xDB538F64 +wm 32 MX6_MMDC_P0_MDCFG2 0x01FF00DD +wm 32 MX6_MMDC_P0_MDRWD 0x0f9f26d2 +wm 32 MX6_MMDC_P0_MDOR 0x008E1023 +wm 32 MX6_MMDC_P0_MDOTC 0x09444040 +wm 32 MX6_MMDC_P0_MDPDC 0x00025576 +wm 32 MX6_MMDC_P0_MDASP 0x00000047 +wm 32 MX6_MMDC_P0_MDCTL 0xC41A0000 +wm 32 MX6_MMDC_P0_MDSCR 0x04088032 +wm 32 MX6_MMDC_P0_MDSCR 0x0408803a +wm 32 MX6_MMDC_P0_MDSCR 0x00008033 +wm 32 MX6_MMDC_P0_MDSCR 0x0000803b +wm 32 MX6_MMDC_P0_MDSCR 0x00428031 +wm 32 MX6_MMDC_P0_MDSCR 0x00428039 +wm 32 MX6_MMDC_P0_MDSCR 0x19308030 +wm 32 MX6_MMDC_P0_MDSCR 0x19308038 +wm 32 MX6_MMDC_P0_MDSCR 0x04008040 +wm 32 MX6_MMDC_P0_MDSCR 0x04008048 +wm 32 MX6_MMDC_P0_MPZQHWCTRL 0xA1390003 +wm 32 MX6_MMDC_P1_MPZQHWCTRL 0xA1390003 +wm 32 MX6_MMDC_P0_MDREF 0x00007800 +wm 32 MX6_MMDC_P0_MPODTCTRL 0x00022227 +wm 32 MX6_MMDC_P1_MPODTCTRL 0x00022227 +wm 32 MX6_MMDC_P0_MPDGCTRL0 0x4327033b +wm 32 MX6_MMDC_P0_MPDGCTRL1 0x0324031a +wm 32 MX6_MMDC_P1_MPDGCTRL0 0x43240337 +wm 32 MX6_MMDC_P1_MPDGCTRL1 0x03210269 +wm 32 MX6_MMDC_P0_MPRDDLCTL 0x483c3e4a +wm 32 MX6_MMDC_P1_MPRDDLCTL 0x423a3848 +wm 32 MX6_MMDC_P0_MPWRDLCTL 0x33363a2c +wm 32 MX6_MMDC_P1_MPWRDLCTL 0x3e314137 +wm 32 MX6_MMDC_P0_MPWLDECTRL0 0x00200026 +wm 32 MX6_MMDC_P0_MPWLDECTRL1 0x00260021 +wm 32 MX6_MMDC_P1_MPWLDECTRL0 0x00180028 +wm 32 MX6_MMDC_P1_MPWLDECTRL1 0x000f001e +wm 32 MX6_MMDC_P0_MPMUR0 0x00000800 +wm 32 MX6_MMDC_P1_MPMUR0 0x00000800 +wm 32 MX6_MMDC_P0_MDSCR 0x00000000 +wm 32 MX6_MMDC_P0_MAPSR 0x00011006 diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/800mhz_4x128mx16.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/800mhz_4x128mx16.imxcfg index 936a2f54bf..936a2f54bf 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/800mhz_4x128mx16.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/800mhz_4x128mx16.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/800mhz_4x256mx16.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/800mhz_4x256mx16.imxcfg index 09c855544d..09c855544d 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/800mhz_4x256mx16.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/800mhz_4x256mx16.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/Makefile b/arch/arm/boards/boundarydevices-nitrogen6/Makefile index 0ec04ce898..0ec04ce898 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/Makefile +++ b/arch/arm/boards/boundarydevices-nitrogen6/Makefile diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/board.c b/arch/arm/boards/boundarydevices-nitrogen6/board.c index 347fd9128b..d9514d9d48 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/board.c +++ b/arch/arm/boards/boundarydevices-nitrogen6/board.c @@ -22,14 +22,18 @@ static int nitrogen6x_devices_init(void) { - if (!of_machine_is_compatible("fsl,imx6dl-nitrogen6x") && - !of_machine_is_compatible("fsl,imx6q-nitrogen6x")) + if (!of_machine_is_compatible("boundary,imx6dl-nitrogen6x") && + !of_machine_is_compatible("boundary,imx6q-nitrogen6x") && + !of_machine_is_compatible("boundary,imx6qp-nitrogen6_max")) return 0; imx6_bbu_internal_spi_i2c_register_handler("spiflash", "/dev/m25p0.barebox", BBU_HANDLER_FLAG_DEFAULT); - barebox_set_hostname("nitrogen6x"); + if (of_machine_is_compatible("boundary,imx6qp-nitrogen6_max")) + barebox_set_hostname("nitrogen6max"); + else + barebox_set_hostname("nitrogen6x"); return 0; } @@ -54,8 +58,9 @@ static int ksz9021rn_phy_fixup(struct phy_device *dev) static int nitrogen6x_coredevices_init(void) { - if (!of_machine_is_compatible("fsl,imx6dl-nitrogen6x") && - !of_machine_is_compatible("fsl,imx6q-nitrogen6x")) + if (!of_machine_is_compatible("boundary,imx6dl-nitrogen6x") && + !of_machine_is_compatible("boundary,imx6q-nitrogen6x") && + !of_machine_is_compatible("boundary,imx6qp-nitrogen6_max")) return 0; phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6dl-1g.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6dl-1g.imxcfg index 0773f4d276..0773f4d276 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6dl-1g.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6dl-1g.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6dl-2g.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6dl-2g.imxcfg index 6622c517fa..6622c517fa 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6dl-2g.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6dl-2g.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6q-1g.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6q-1g.imxcfg index bd4134f8a9..bd4134f8a9 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6q-1g.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6q-1g.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6q-2g.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6q-2g.imxcfg index 89aa21c300..89aa21c300 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/flash-header-nitrogen6q-2g.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6q-2g.imxcfg diff --git a/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6qp-max.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6qp-max.imxcfg new file mode 100644 index 0000000000..66f0e1a860 --- /dev/null +++ b/arch/arm/boards/boundarydevices-nitrogen6/flash-header-nitrogen6qp-max.imxcfg @@ -0,0 +1,10 @@ +soc imx6 +loadaddr 0x20000000 +dcdofs 0x400 + +#include <mach/imx6-ddr-regs.h> +#include <mach/imx6q-ddr-regs.h> +#include <mach/imx6-ccm-regs.h> + +#include "ram-base.imxcfg" +#include "1066mhz_4x512mx16-qp.imxcfg" diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/lowlevel.c b/arch/arm/boards/boundarydevices-nitrogen6/lowlevel.c index 7d859330f9..bee70a5af4 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/lowlevel.c +++ b/arch/arm/boards/boundarydevices-nitrogen6/lowlevel.c @@ -1,7 +1,6 @@ #include <common.h> -#include <linux/sizes.h> #include <mach/generic.h> -#include <asm/barebox-arm-head.h> +#include <mach/esdctl.h> #include <asm/barebox-arm.h> extern char __dtb_imx6q_nitrogen6x_start[]; @@ -14,7 +13,7 @@ ENTRY_FUNCTION(start_imx6q_nitrogen6x_1g, r0, r1, r2) fdt = __dtb_imx6q_nitrogen6x_start - get_runtime_offset(); - barebox_arm_entry(0x10000000, SZ_1G, fdt); + imx6q_barebox_entry(fdt); } ENTRY_FUNCTION(start_imx6q_nitrogen6x_2g, r0, r1, r2) @@ -25,7 +24,7 @@ ENTRY_FUNCTION(start_imx6q_nitrogen6x_2g, r0, r1, r2) fdt = __dtb_imx6q_nitrogen6x_start - get_runtime_offset(); - barebox_arm_entry(0x10000000, SZ_2G, fdt); + imx6q_barebox_entry(fdt); } extern char __dtb_imx6dl_nitrogen6x_start[]; @@ -38,7 +37,7 @@ ENTRY_FUNCTION(start_imx6dl_nitrogen6x_1g, r0, r1, r2) fdt = __dtb_imx6dl_nitrogen6x_start - get_runtime_offset(); - barebox_arm_entry(0x10000000, SZ_1G, fdt); + imx6q_barebox_entry(fdt); } ENTRY_FUNCTION(start_imx6dl_nitrogen6x_2g, r0, r1, r2) @@ -49,5 +48,18 @@ ENTRY_FUNCTION(start_imx6dl_nitrogen6x_2g, r0, r1, r2) fdt = __dtb_imx6dl_nitrogen6x_start - get_runtime_offset(); - barebox_arm_entry(0x10000000, SZ_2G, fdt); + imx6q_barebox_entry(fdt); +} + +extern char __dtb_imx6qp_nitrogen6_max_start[]; + +ENTRY_FUNCTION(start_imx6qp_nitrogen6_max, r0, r1, r2) +{ + void *fdt; + + imx6_cpu_lowlevel_init(); + + fdt = __dtb_imx6qp_nitrogen6_max_start - get_runtime_offset(); + + imx6q_barebox_entry(fdt); } diff --git a/arch/arm/boards/boundarydevices-nitrogen6x/ram-base.imxcfg b/arch/arm/boards/boundarydevices-nitrogen6/ram-base.imxcfg index 60c8fa2b51..5d675883fd 100644 --- a/arch/arm/boards/boundarydevices-nitrogen6x/ram-base.imxcfg +++ b/arch/arm/boards/boundarydevices-nitrogen6/ram-base.imxcfg @@ -60,8 +60,8 @@ wm 32 MX6_MMDC_P1_MPRDDQBY1DL 0x33333333 wm 32 MX6_MMDC_P1_MPRDDQBY2DL 0x33333333 wm 32 MX6_MMDC_P1_MPRDDQBY3DL 0x33333333 -/* MDMISC mirroring interleaved (row/bank/col) */ -wm 32 MX6_MMDC_P0_MDMISC 0x00081740 +/* MDMISC mirroring-off interleaved (row/bank/col) */ +wm 32 MX6_MMDC_P0_MDMISC 0x00001740 /* MDSCR con_req */ wm 32 MX6_MMDC_P0_MDSCR 0x00008000 diff --git a/arch/arm/boards/embest-riotboard/board.c b/arch/arm/boards/embest-riotboard/board.c index a885a08a70..eb956f1f50 100644 --- a/arch/arm/boards/embest-riotboard/board.c +++ b/arch/arm/boards/embest-riotboard/board.c @@ -64,7 +64,7 @@ static int ar8035_phy_fixup(struct phy_device *dev) static int riotboard_device_init(void) { - if (!of_machine_is_compatible("embest,riotboard")) + if (!of_machine_is_compatible("riot,imx6s-riotboard")) return 0; phy_register_fixup_for_uid(0x004dd072, 0xffffffef, ar8035_phy_fixup); diff --git a/arch/arm/boards/phytec-phycore-imx35/flash-header.imxcfg b/arch/arm/boards/phytec-phycore-imx35/flash-header.imxcfg new file mode 100644 index 0000000000..36b68cd7ee --- /dev/null +++ b/arch/arm/boards/phytec-phycore-imx35/flash-header.imxcfg @@ -0,0 +1,37 @@ +soc imx35 +dcdofs 0x400 +loadaddr 0x80000000 +wm 32 0x53f80004 0x00821000 +wm 32 0x53f80004 0x00821000 + +wm 32 0x43fac794 0x00000800 +wm 32 0x43fac798 0x00000800 +wm 32 0x43fac79c 0x00000800 +wm 32 0x43fac7a0 0x00000800 +wm 32 0x43fac7a4 0x00000800 + +wm 32 0xb8001010 0x00000304 +wm 32 0xb8001004 0x0025541f +wm 32 0xb8001000 0x92220000 +wm 32 0x80000400 0x12345678 + +wm 32 0xb8001000 0xb8001000 +wm 8 0x84000000 0xda +wm 8 0x86000000 0xda +wm 8 0x82000400 0xda +wm 8 0x80000333 0xda + +wm 32 0xb8001000 0x92220000 +wm 32 0x80000400 0x12345678 + +wm 32 0xb8001000 0xa2220000 +wm 32 0x80000000 0x12344321 +wm 32 0x80000000 0x12344321 +wm 32 0xb8001000 0xb2220000 +wm 8 0x80000233 0xda +wm 8 0x82000780 0xda +wm 8 0x82000400 0xda +wm 32 0xb8001000 0x82220080 +wm 32 0xb8001000 0x82228080 +wm 32 0xb8001008 0x00002000 + diff --git a/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/nand b/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/nand index b9b1bc6c38..ece44b70dc 100644 --- a/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/nand +++ b/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/nand @@ -1,6 +1,8 @@ #!/bin/sh -global.bootm.image="/dev/nand0.kernel.bb" -global.bootm.oftree="/dev/nand0.oftree.bb" +[ ! -e /dev/nand0.root.ubi ] && ubiattach /dev/nand0.root + +global.bootm.image="/dev/nand0.root.ubi.kernel" +global.bootm.oftree="/dev/nand0.root.ubi.oftree" global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=root rw rootfstype=ubifs" |