summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-06-27 13:32:37 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-27 13:32:37 (GMT)
commit821560fd8e43eecc208c1c52ad24faadb6b52703 (patch)
treeefb56bc170674d3a6680ca4d343888e9e84403c7 /board/freescale
parentb8a238f1376f16c387765107b9d7f62e4358dd48 (diff)
parent65496a34835cb4c9547bd02dd15b018c333add9d (diff)
downloadu-boot-821560fd8e43eecc208c1c52ad24faadb6b52703.tar.xz
Merge git://www.denx.de/git/u-boot-imx
Signed-off-by: Tom Rini <trini@konsulko.com> Conflicts: include/configs/imx6qdl_icore_rqs.h include/configs/imx6ul_geam.h include/configs/imx6ul_isiot.h
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx25pdk/mx25pdk.c6
-rw-r--r--board/freescale/mx6sabresd/MAINTAINERS4
-rw-r--r--board/freescale/mx6sabresd/README84
3 files changed, 35 insertions, 59 deletions
diff --git a/board/freescale/mx25pdk/mx25pdk.c b/board/freescale/mx25pdk/mx25pdk.c
index 788d3c3..cab769c 100644
--- a/board/freescale/mx25pdk/mx25pdk.c
+++ b/board/freescale/mx25pdk/mx25pdk.c
@@ -175,6 +175,12 @@ int board_mmc_init(bd_t *bis)
imx_iomux_v3_setup_multiple_pads(sdhc1_pads, ARRAY_SIZE(sdhc1_pads));
+ /*
+ * Set the eSDHC1 PER clock to the maximum frequency lower than or equal
+ * to 50 MHz that can be obtained, which requires to use UPLL as the
+ * clock source. This actually gives 48 MHz.
+ */
+ imx_set_perclk(MXC_ESDHC1_CLK, true, 50000000);
esdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC1_CLK);
return fsl_esdhc_initialize(bis, &esdhc_cfg[0]);
}
diff --git a/board/freescale/mx6sabresd/MAINTAINERS b/board/freescale/mx6sabresd/MAINTAINERS
index add2314..9575261 100644
--- a/board/freescale/mx6sabresd/MAINTAINERS
+++ b/board/freescale/mx6sabresd/MAINTAINERS
@@ -3,6 +3,4 @@ M: Fabio Estevam <fabio.estevam@nxp.com>
S: Maintained
F: board/freescale/mx6sabresd/
F: include/configs/mx6sabresd.h
-F: configs/mx6dlsabresd_defconfig
-F: configs/mx6qsabresd_defconfig
-F: configs/mx6sabresd_spl_defconfig
+F: configs/mx6sabresd_defconfig
diff --git a/board/freescale/mx6sabresd/README b/board/freescale/mx6sabresd/README
index bc0c0d0..4b4df06 100644
--- a/board/freescale/mx6sabresd/README
+++ b/board/freescale/mx6sabresd/README
@@ -1,56 +1,47 @@
-How to use and build U-Boot on mx6sabresd:
-----------------------------------
-
-Currently there are four methods for booting mx6sabresd boards:
+How to use and build U-Boot on mx6sabresd
+-----------------------------------------
-1. Booting from SD card via normal U-Boot (u-boot.imx)
+The following methods can be used for booting mx6sabresd boards:
-2. Booting from eMMC via normal U-Boot
+1. Booting from SD card
-3. Booting via SPL (SPL and u-boot.img)
+2. Booting from eMMC
-4. Booting via Falcon mode (SPL launches the kernel directly)
+3. Booting via Falcon mode (SPL launches the kernel directly)
-1. Booting from SD card via normal U-Boot
------------------------------------------
+1. Booting from SD card via SPL
+-------------------------------
-$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd)
+mx6sabresd_defconfig target supports mx6q/mx6dl/mx6qp sabresd variants.
-or
+In order to build it:
-$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd)
+$ make mx6sabresd_defconfig
$ make
-This will generate the image called u-boot.imx.
+This will generate the SPL and u-boot.img binaries.
-- Flash the u-boot.imx binary into the SD card:
+- Flash the SPL binary into the SD card:
-$ sudo dd if=u-boot.imx of=/dev/sdb bs=1K seek=1 && sync
+$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync
+- Flash the u-boot.img binary into the SD card:
-2. Booting from eMMC via normal U-Boot
---------------------------------------
+$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync
-$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd)
-or
+2. Booting from eMMC
+--------------------
-$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd)
+$ make mx6sabresd_defconfig
$ make
-This will generate the image called u-boot.imx.
-
-- Flash the u-boot.imx binary into the eMMC:
-
-Set SW6 to download mode: 00001100
+This will generate the SPL and u-boot.img binaries.
-Plug a usb cable to USB-OTG and load the u-boot image using the imx_usb_loader
-tool (https://github.com/boundarydevices/imx_usb_loader):
-
-$ sudo ./imx_usb u-boot.imx
+- Boot first from SD card as shown in the previous section
In U-boot change the eMMC partition config:
@@ -60,48 +51,29 @@ Mount the eMMC in the host PC:
=> ums 0 mmc 2
-Flash the u-boot.imx binary
+- Flash SPL and u-boot.img binaries into the eMMC:
-$ sudo dd if=u-boot.imx of=/dev/sdX bs=1K seek=1 && sync
+$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync
+$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync
Set SW6 to eMMC 8-bit boot: 11010110
-3. Booting via SPL
-------------------
-
-Other method for building U-Boot on mx6qsabresd and mx6qpsabresd is
-through SPL. In order to do so:
-
-$ make mx6sabresd_spl_defconfig
-$ make
-
-This will generate the SPL image called SPL and the u-boot.img.
-
-- Flash the SPL image into the SD card:
-
-$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 && sync
-
-- Flash the u-boot.img image into the SD card:
-
-$ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 && sync
-
-
-4. Booting via Falcon mode
+3. Booting via Falcon mode
--------------------------
-$ make mx6sabresd_spl_defconfig
+$ make mx6sabresd_defconfig
$ make
This will generate the SPL image called SPL and the u-boot.img.
- Flash the SPL image into the SD card:
-$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 oflag=sync status=none && sync
+$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 oflag=sync status=none && sync
- Flash the u-boot.img image into the SD card:
-$ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 oflag=sync status=none && sync
+$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 oflag=sync status=none && sync
Create a partition for root file system and extract it there: