ARM: imx6dl: Add support for Phytec phyCORE-i.MX6 SOM
Subsystems (3)
PATCH v2 1/1 ARM: imx6dl: Add support for Phytec phyCORE-i.MX6 SOM
From: Christian Hemp <[email protected]>
Add Phytec phyCORE-i.MX6 SOM.
- imx6dl-phytec-phycore-som-nand
- 256GB RAM on 1 Bank with 32Bit
- 10/100MBit Ethernet
- NAND
- SD
- UART
Signed-off-by Stefan Christ <[email protected]>
Signed-off-by Christian Hemp <[email protected]>
---
v2: add '#include <arm/imx6dl.dtsi>' in dts to fix compile error
--- arch/arm/boards/phytec-som-imx6/board.c | 6 +- .../flash-header-phytec-pcm058dl-256mb.imxcfg | 8 ++ .../phytec-som-imx6/flash-header-phytec-pcm058dl.h | 98 ++++++++++++++++++++++ arch/arm/boards/phytec-som-imx6/lowlevel.c | 1 + arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 63 ++++++++++++++ images/Makefile.imx | 5 ++ 7 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg create mode 100644 arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl.h create mode 100644 arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
arch/arm/boards/phytec-som-imx6/board.c +4 -2
@@ -112,7 +112,8 @@ static int physom_imx6_devices_init(void) default_envdev ="NAND flash" ; }else if (of_machine_is_compatible ("phytec,imx6q-pcm058-nand" ) - ||of_machine_is_compatible ("phytec,imx6q-pcm058-emmc" )) { + ||of_machine_is_compatible ("phytec,imx6q-pcm058-emmc" ) + ||of_machine_is_compatible ("phytec,imx6dl-pcm058-nand" )) {barebox_set_hostname ("phyCORE-i.MX6" ); default_environment_path ="/chosen/environment-spinor" ;
@@ -157,7 +158,8 @@ static int physom_imx6_devices_init(void)/* Overwrite file /env/init/automount */ if (of_machine_is_compatible ("phytec,imx6q-pcm058-nand" ) - ||of_machine_is_compatible ("phytec,imx6q-pcm058-emmc" )) { + ||of_machine_is_compatible ("phytec,imx6q-pcm058-emmc" ) + ||of_machine_is_compatible ("phytec,imx6dl-pcm058-nand" )) {defaultenv_append_directory (defaultenv_physom_imx6_mira); }
arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg new file +8 -0
@@ -0,0 +1,8 @@ +#define SETUP_MDCFG0 \ + wm 32 0x021b000c 0x3c409b85 + +#define SETUP_MDASP_MDCTL \ + wm 32 0x021b0040 0x0000000F; \ + wm 32 0x021b0000 0x82190000 + +#include "flash-header-phytec-pcm058dl.h"
arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl.h new file +98 -0
98 lines not on this page · raw message
arch/arm/boards/phytec-som-imx6/lowlevel.c +1 -0
@@ -92,5 +92,6 @@ PHYTEC_ENTRY(start_phytec_pbab01s_512mb_1bank, imx6s_phytec_pbab01, SZ_512M, falPHYTEC_ENTRY (start_phytec_phyboard_alcor_1gib, imx6q_phytec_phyboard_alcor,SZ_1G , false);PHYTEC_ENTRY (start_phytec_phyboard_subra_512mb_1bank, imx6dl_phytec_phyboard_subra,SZ_512M , false); +PHYTEC_ENTRY (start_phytec_phycore_imx6dl_som_nand_256mb, imx6dl_phytec_phycore_som_nand,SZ_256M , true);PHYTEC_ENTRY (start_phytec_phycore_imx6q_som_nand_1gib, imx6q_phytec_phycore_som_nand,SZ_1G , true);PHYTEC_ENTRY (start_phytec_phycore_imx6q_som_emmc_1gib, imx6q_phytec_phycore_som_emmc,SZ_1G , true);
arch/arm/dts/Makefile +2 -1
@@ -45,7 +45,8 @@ pbl-dtb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += imx6q-phytec-pbaa03.dtb.o \ imx6q-phytec-phyboard-alcor.dtb.o \ imx6dl-phytec-phyboard-subra.dtb.o \ imx6q-phytec-phycore-som-nand.dtb.o \ - imx6q-phytec-phycore-som-emmc.dtb.o + imx6q-phytec-phycore-som-emmc.dtb.o \ + imx6dl-phytec-phycore-som-nand.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += armada-xp-openblocks-ax3-4-bb.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += kirkwood-openblocks_a6-bb.dtb.o pbl-dtb-$(CONFIG_MACH_RADXA_ROCK) += rk3188-radxarock.dtb.o
arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts new file +63 -0
63 lines not on this page · raw message
images/Makefile.imx +5 -0
@@ -312,6 +312,11 @@ CFG_start_phytec_phycore_imx6q_som_emmc_1gib.pblx.imximg = $(board)/phytec-som-i FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblx.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-1gib.img +pblx-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6dl_som_nand_256mb +CFG_start_phytec_phycore_imx6dl_som_nand_256mb.pblx.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg +FILE_barebox-phytec-phycore-imx6dl-som-nand-256mb.img = start_phytec_phycore_imx6dl_som_nand_256mb.pblx.imximg +image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-nand-256mb.img + pblx-$(CONFIG_MACH_GW_VENTANA) += start_imx6q_gw54xx_1gx64 CFG_start_imx6q_gw54xx_1gx64.pblx.imximg = $(board)/gateworks-ventana/flash-header-ventana-quad-1gx64.imxcfg FILE_barebox-gateworks-imx6q-ventana-1gx64.img = start_imx6q_gw54xx_1gx64.pblx.imximg
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 14 lines · Stefan Christ
From: Christian Hemp <[email protected]>
Add Phytec phyCORE-i.MX6 SOM.
- imx6dl-phytec-phycore-som-nand
- 256GB RAM on 1 Bank with 32Bit
- 10/100MBit Ethernet
- NAND
- SD
- UARTSigned-off-by Stefan Christ <[email protected]>Signed-off-by Christian Hemp <[email protected]>---
v2: add '#include <arm/imx6dl.dtsi>' in dts to fix compile error
Quoted 12 lines
--- arch/arm/boards/phytec-som-imx6/board.c | 6 +- .../flash-header-phytec-pcm058dl-256mb.imxcfg | 8 ++ .../phytec-som-imx6/flash-header-phytec-pcm058dl.h | 98 ++++++++++++++++++++++ arch/arm/boards/phytec-som-imx6/lowlevel.c | 1 + arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 63 ++++++++++++++ images/Makefile.imx | 5 ++ 7 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg create mode 100644 arch/arm/boards/phytec-som-imx6/flash-header-phytec-pcm058dl.h create mode 100644 arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
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