mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] i.MX6 xload and Utilite support
@ 2015-07-16  8:50 Sascha Hauer
  2015-07-16  8:50 ` [PATCH 01/11] ARM: i.MX6: Add i.MX6 entry function Sascha Hauer
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Sascha Hauer @ 2015-07-16  8:50 UTC (permalink / raw)
  To: Barebox List

This series adds support for the Utilite Mini Computer. Like several
other i.MX6 based boards this one also wants to setup the SDRAM from
code rather than from a DCD table. This has previously limited the
barebox image size to the internal SRAM size. This series overcomes
this limitation. We now create the i.MX image from the pblx image
instead of the complete image including payload. With this the ROM
code only loads the initial portion to SRAM and we can setup the
SDRAM there. Afterwards we have to load the remaining image ourselves,
but it turned out require only very little code to load an image
from the SPI NOR flash. This series implements this mechanism for
i.MX6 on SPI NOR flash only, support for other SoCs and other devices
needs to be added to get this working in other cases.

Sascha

----------------------------------------------------------------
Sascha Hauer (11):
      ARM: i.MX6: Add i.MX6 entry function
      ARM: i.MX6: remove unnecessary includes
      ARM: i.MX6: add function to get bootsource in pbl
      memsize: Compile for PBL aswell
      ARM: i.MX: compile boot.c for pbl aswell
      ARM: i.MX6: create cpu_is() functions for use in PBL
      images: i.MX: Create target for SRAM images
      spi: i.MX: move register defines to include/
      ARM: i.MX: Add SPI xload code
      ARM: i.MX6: Add DDR setup code from U-Boot
      ARM: initial cm-fx6 support

 arch/arm/boards/Makefile                           |   1 +
 arch/arm/boards/cm-fx6/Makefile                    |   3 +
 arch/arm/boards/cm-fx6/board.c                     |  74 +++
 .../boards/cm-fx6/flash-header-mx6-cm-fx6.imxcfg   |   3 +
 arch/arm/boards/cm-fx6/lowlevel.c                  | 363 ++++++++++++++
 arch/arm/boards/datamodul-edm-qmx6/board.c         |   1 -
 arch/arm/boards/dfi-fs700-m60/lowlevel.c           |   1 -
 arch/arm/boards/embest-riotboard/lowlevel.c        |   1 -
 arch/arm/boards/phytec-phycard-imx6/lowlevel.c     |   1 -
 arch/arm/boards/phytec-phyflex-imx6/lowlevel.c     |   1 -
 arch/arm/boards/tqma6x/board.c                     |   1 -
 arch/arm/boards/tqma6x/lowlevel.c                  |   1 -
 arch/arm/boards/variscite-mx6/lowlevel.c           |   1 -
 arch/arm/configs/imx_v7_defconfig                  |   1 +
 arch/arm/dts/Makefile                              |   1 +
 arch/arm/dts/imx6q-cm-fx6.dts                      |  29 ++
 arch/arm/dts/imx6q-cm-fx6.dtsi                     |  99 ++++
 arch/arm/dts/imx6q-utilite.dts                     |  42 ++
 arch/arm/dts/imx6qdl-cm-fx6.dtsi                   | 463 ++++++++++++++++++
 arch/arm/mach-imx/Kconfig                          |   4 +
 arch/arm/mach-imx/Makefile                         |   6 +-
 arch/arm/mach-imx/boot.c                           |  38 +-
 arch/arm/mach-imx/esdctl.c                         |  11 +
 arch/arm/mach-imx/imx6-mmdc.c                      | 544 +++++++++++++++++++++
 arch/arm/mach-imx/include/mach/esdctl.h            |   2 +-
 arch/arm/mach-imx/include/mach/generic.h           |   2 +
 arch/arm/mach-imx/include/mach/imx6-mmdc.h         | 274 +++++++++++
 arch/arm/mach-imx/include/mach/imx6.h              |  41 +-
 arch/arm/mach-imx/include/mach/xload.h             |   7 +
 arch/arm/mach-imx/xload-spi.c                      | 160 ++++++
 common/Makefile                                    |   2 +-
 drivers/spi/imx_spi.c                              |  80 +--
 images/Makefile.imx                                |  21 +
 include/spi/imx-spi.h                              |  83 ++++
 34 files changed, 2230 insertions(+), 132 deletions(-)
 create mode 100644 arch/arm/boards/cm-fx6/Makefile
 create mode 100644 arch/arm/boards/cm-fx6/board.c
 create mode 100644 arch/arm/boards/cm-fx6/flash-header-mx6-cm-fx6.imxcfg
 create mode 100644 arch/arm/boards/cm-fx6/lowlevel.c
 create mode 100644 arch/arm/dts/imx6q-cm-fx6.dts
 create mode 100644 arch/arm/dts/imx6q-cm-fx6.dtsi
 create mode 100644 arch/arm/dts/imx6q-utilite.dts
 create mode 100644 arch/arm/dts/imx6qdl-cm-fx6.dtsi
 create mode 100644 arch/arm/mach-imx/include/mach/xload.h
 create mode 100644 arch/arm/mach-imx/xload-spi.c
 create mode 100644 include/spi/imx-spi.h

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

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

end of thread, other threads:[~2015-07-16  8:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-16  8:50 [PATCH] i.MX6 xload and Utilite support Sascha Hauer
2015-07-16  8:50 ` [PATCH 01/11] ARM: i.MX6: Add i.MX6 entry function Sascha Hauer
2015-07-16  8:50 ` [PATCH 02/11] ARM: i.MX6: remove unnecessary includes Sascha Hauer
2015-07-16  8:50 ` [PATCH 03/11] ARM: i.MX6: add function to get bootsource in pbl Sascha Hauer
2015-07-16  8:50 ` [PATCH 04/11] memsize: Compile for PBL aswell Sascha Hauer
2015-07-16  8:50 ` [PATCH 05/11] ARM: i.MX: compile boot.c for pbl aswell Sascha Hauer
2015-07-16  8:50 ` [PATCH 06/11] ARM: i.MX6: create cpu_is() functions for use in PBL Sascha Hauer
2015-07-16  8:50 ` [PATCH 07/11] images: i.MX: Create target for SRAM images Sascha Hauer
2015-07-16  8:50 ` [PATCH 08/11] spi: i.MX: move register defines to include/ Sascha Hauer
2015-07-16  8:50 ` [PATCH 09/11] ARM: i.MX: Add SPI xload code Sascha Hauer
2015-07-16  8:50 ` [PATCH 10/11] ARM: i.MX6: Add DDR setup code from U-Boot Sascha Hauer
2015-07-16  8:50 ` [PATCH 11/11] ARM: initial cm-fx6 support Sascha Hauer

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