mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 03:58:18 -04:00
Merge branch 'master' of git://git.denx.de/u-boot-arm
* 'master' of git://git.denx.de/u-boot-arm: ARM1136: Fix cache range checks mx6: Make pad name macro consistent with the datasheet mx28: Fix elftosb source link in README.mx28_common doc: README.mx28_common: Add missing entry into Contents Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
commit
00d8f4cd82
@ -95,7 +95,7 @@ void flush_dcache_all(void)
|
|||||||
asm volatile("mcr p15, 0, %0, c7, c10, 4" : : "r" (0));
|
asm volatile("mcr p15, 0, %0, c7, c10, 4" : : "r" (0));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int bad_cache_range(unsigned long start, unsigned long stop)
|
static int check_cache_range(unsigned long start, unsigned long stop)
|
||||||
{
|
{
|
||||||
int ok = 1;
|
int ok = 1;
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ static inline int bad_cache_range(unsigned long start, unsigned long stop)
|
|||||||
|
|
||||||
void invalidate_dcache_range(unsigned long start, unsigned long stop)
|
void invalidate_dcache_range(unsigned long start, unsigned long stop)
|
||||||
{
|
{
|
||||||
if (bad_cache_range(start, stop))
|
if (!check_cache_range(start, stop))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (start < stop) {
|
while (start < stop) {
|
||||||
@ -125,7 +125,7 @@ void invalidate_dcache_range(unsigned long start, unsigned long stop)
|
|||||||
|
|
||||||
void flush_dcache_range(unsigned long start, unsigned long stop)
|
void flush_dcache_range(unsigned long start, unsigned long stop)
|
||||||
{
|
{
|
||||||
if (bad_cache_range(start, stop))
|
if (!check_cache_range(start, stop))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (start < stop) {
|
while (start < stop) {
|
||||||
|
@ -530,8 +530,8 @@ enum {
|
|||||||
MX6Q_PAD_EIM_BCLK__IPU1_DI1_PIN16 = IOMUX_PAD(0x046C, 0x0158, 1, 0x0000, 0, 0),
|
MX6Q_PAD_EIM_BCLK__IPU1_DI1_PIN16 = IOMUX_PAD(0x046C, 0x0158, 1, 0x0000, 0, 0),
|
||||||
MX6Q_PAD_EIM_BCLK__GPIO_6_31 = IOMUX_PAD(0x046C, 0x0158, 5, 0x0000, 0, 0),
|
MX6Q_PAD_EIM_BCLK__GPIO_6_31 = IOMUX_PAD(0x046C, 0x0158, 5, 0x0000, 0, 0),
|
||||||
MX6Q_PAD_EIM_BCLK__TPSMP_HDATA_31 = IOMUX_PAD(0x046C, 0x0158, 6, 0x0000, 0, 0),
|
MX6Q_PAD_EIM_BCLK__TPSMP_HDATA_31 = IOMUX_PAD(0x046C, 0x0158, 6, 0x0000, 0, 0),
|
||||||
MX6Q_PAD_DI0_DISP_CLK__IPU1_DI0_DSP_CLK = IOMUX_PAD(0x0470, 0x015C, 0, 0x0000, 0, 0),
|
MX6Q_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK = IOMUX_PAD(0x0470, 0x015C, 0, 0x0000, 0, 0),
|
||||||
MX6Q_PAD_DI0_DISP_CLK__IPU2_DI0_DSP_CLK = IOMUX_PAD(0x0470, 0x015C, 1, 0x0000, 0, 0),
|
MX6Q_PAD_DI0_DISP_CLK__IPU2_DI0_DISP_CLK = IOMUX_PAD(0x0470, 0x015C, 1, 0x0000, 0, 0),
|
||||||
MX6Q_PAD_DI0_DISP_CLK__MIPI_CR_DPY_OT28 = IOMUX_PAD(0x0470, 0x015C, 3, 0x0000, 0, 0),
|
MX6Q_PAD_DI0_DISP_CLK__MIPI_CR_DPY_OT28 = IOMUX_PAD(0x0470, 0x015C, 3, 0x0000, 0, 0),
|
||||||
MX6Q_PAD_DI0_DISP_CLK__SDMA_DBG_CR_STA0 = IOMUX_PAD(0x0470, 0x015C, 4, 0x0000, 0, 0),
|
MX6Q_PAD_DI0_DISP_CLK__SDMA_DBG_CR_STA0 = IOMUX_PAD(0x0470, 0x015C, 4, 0x0000, 0, 0),
|
||||||
MX6Q_PAD_DI0_DISP_CLK__GPIO_4_16 = IOMUX_PAD(0x0470, 0x015C, 5, 0x0000, 0, 0),
|
MX6Q_PAD_DI0_DISP_CLK__GPIO_4_16 = IOMUX_PAD(0x0470, 0x015C, 5, 0x0000, 0, 0),
|
||||||
|
@ -19,6 +19,7 @@ Contents
|
|||||||
1) Prerequisites
|
1) Prerequisites
|
||||||
2) Compiling U-Boot for a MX28 based board
|
2) Compiling U-Boot for a MX28 based board
|
||||||
3) Installation of U-Boot for a MX28 based board to SD card
|
3) Installation of U-Boot for a MX28 based board to SD card
|
||||||
|
4) Installation of U-Boot into NAND flash
|
||||||
|
|
||||||
1) Prerequisites
|
1) Prerequisites
|
||||||
----------------
|
----------------
|
||||||
@ -29,14 +30,14 @@ is the "mxsboot" tool found in U-Boot source tree.
|
|||||||
|
|
||||||
Firstly, obtain the elftosb archive from the following location:
|
Firstly, obtain the elftosb archive from the following location:
|
||||||
|
|
||||||
http://foss.doredevelopment.dk/mirrors/imx/elftosb-10.12.01.tar.gz
|
ftp://ftp.denx.de/pub/tools/elftosb-10.12.01.tar.gz
|
||||||
|
|
||||||
We use a $VER variable here to denote the current version. At the time of
|
We use a $VER variable here to denote the current version. At the time of
|
||||||
writing of this document, that is "10.12.01". To obtain the file from command
|
writing of this document, that is "10.12.01". To obtain the file from command
|
||||||
line, use:
|
line, use:
|
||||||
|
|
||||||
$ VER="10.12.01"
|
$ VER="10.12.01"
|
||||||
$ wget http://foss.doredevelopment.dk/mirrors/imx/elftosb-${VER}.tar.gz
|
$ wget ftp://ftp.denx.de/pub/tools/elftosb-${VER}.tar.gz
|
||||||
|
|
||||||
Extract the file:
|
Extract the file:
|
||||||
|
|
||||||
@ -146,8 +147,8 @@ NOTE: If the user needs to adjust the start sector, the "mxsboot" tool contains
|
|||||||
a "-p" switch for that purpose. The "-p" switch takes the sector number as
|
a "-p" switch for that purpose. The "-p" switch takes the sector number as
|
||||||
an argument.
|
an argument.
|
||||||
|
|
||||||
4) Installation of U-Boot for NAND flash
|
4) Installation of U-Boot into NAND flash
|
||||||
-----------------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
To boot a MX28 based board from NAND, set the boot mode DIP switches according to i.MX28
|
To boot a MX28 based board from NAND, set the boot mode DIP switches according to i.MX28
|
||||||
manual chapter 12.2.1 (Table 12-2), PORT=GPMI, NAND 1.8 V.
|
manual chapter 12.2.1 (Table 12-2), PORT=GPMI, NAND 1.8 V.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user