u-boot/board/wandboard
Fabio Estevam edf0093732 mx6: ddr: Allow changing REFSEL and REFR fields
Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
REFR fields of the MDREF register as 1 and 7, respectively for
DDR3 and 0 and 3 for LPDDR2.

Looking at the MDREF initialization done via DCD we see that
boards do need to initialize these fields differently:

$ git grep 0x021b0020 board/
board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x00000800 /* MMDC0_MDREF */
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4      0x021b0020 0x00005800
board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x00001800
board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00000800
board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x00000800
board/warp/imximage.cfg:DATA 4 0x021b0020 0x00001800

So introduce a mechanism for users to be able to configure
REFSEL and REFR fields as needed.

Keep all the mx6 SPL users in their current REF_SEL and REFR values,
so no functional changes for the existing users.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Eric Nelson <eric@nelint.com>
2016-09-06 18:22:48 +02:00
..
Kconfig mx6: remove SYS_SOC from board Kconfig 2015-09-13 10:37:29 +02:00
MAINTAINERS MAINTAINERS/mailmap: Update my email address 2016-01-11 11:22:43 -05:00
Makefile wandboard: Switch to SPL support 2015-05-21 18:08:37 +02:00
README Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
spl.c mx6: ddr: Allow changing REFSEL and REFR fields 2016-09-06 18:22:48 +02:00
wandboard.c wandboard: Replace is_cpu_type() for macro 2016-07-28 13:27:19 +02:00

README

U-Boot for Wandboard
--------------------

This file contains information for the port of U-Boot to the Wandboard.

Wandboard is a development board that has three variants based on the following
SoCs: mx6 quad, mx6 dual lite and mx6 solo.

For more details about Wandboard, please refer to:
http://www.wandboard.org/

Building U-Boot for Wandboard
-----------------------------

To build U-Boot for the Wandboard:

$ make wandboard_config
$ make

Flashing U-Boot into the SD card
--------------------------------

- After the 'make' command completes, the generated 'SPL' binary must be
flashed into the SD card;

$ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync

(Note - the SD card node may vary, so adjust this as needed).

- Flash the u-boot.img image into the SD card:

sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync

- Insert the SD card into the slot located in the bottom of the board (same side
as the mx6 processor)

- Connect the serial cable to the host PC

- Power up the board and U-Boot messages will appear in the serial console.