set lpddr2 detect max row = 15 to match lpddr2 inc file
Change-Id: I8fd57984331d35bafaf263829760204c582d120d
Signed-off-by: YouMin Chen <cym@rock-chips.com>
We should clear that the purpose is enter maskrom and get into USB boot:
1. set the bootmode reg to bootrom mode in U-Boot/Kernel by cmd or Tool;
2. Get back to bootrom with non-zero return value if not boot from USB;
3. Clean the tag if already enter USB boot.
Change-Id: I1127357c3b2f499519387880830b2b382f46af10
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The macro BROM_BOOTSOURCE_ID_ADDR does not belong to sdram_common.h
Change-Id: I0490ff10b08287d71e3231baa999d3f096068c7c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Include rk1808, rk3036, rk3308 and rk3326/px30 use this common
rockchip_sdram.c
Change-Id: Iee3e100992b07027c05f132fa536504ecc02f11f
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
This patch adds driver support for rockchip simple card.
Change-Id: If6b0e2c8d5bbe5dff268d2b5abbdce5f3528282b
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This patch adds driver support for rockchip rk809/rk817.
Change-Id: I0e8355fa6dffb23d8413c0b3a198757aa2d2360c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This patch add driver support for rockchip i2s bus.
Change-Id: I2c7f2b46d628706fa000055f7962ba6b4ff6d0b6
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
the 16KB size is used for SPL code, it fixes compile issue:
section .bss VMA [00000000ff8e0000,00000000ff8e01bf] overlaps
section .u_boot_list VMA [00000000ff8df450,00000000ff8e0bf7]
Change-Id: I05b5b9c8b05825835d7d80f843c590d390abe482
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
For some TPL with TINY mode didn't define LIBGENERIC_SUPPORT,
need to realize memset/memcpy for rk_atags whit TPL.
Change-Id: I9c7a343836592aa03fcee910404fb2f1e37a4989
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
- set text base to 2MB offset;
- set init sp to 4MB offset;
Change-Id: I3d1ad775b5d3de2af50276dd93c233220e692408
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- set text base to 2MB offset;
- set init sp to 4MB offset;
Change-Id: I6e2e164ea9f77a7955a935b1a9f6aee7dd248768
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- set text base to 2MB offset;
- set init sp to 4MB offset;
Change-Id: I4a482d854bc00e1592f5877cf7f3217b8752c81c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- set text base to 2MB offset;
- set init sp to 4MB offset;
Change-Id: I9f250c3561cbe8c0b4ee1c9da625766f7306c2f2
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This indicates the RK1808 is working as a coprocessor for
another more powerful SoC.
Change-Id: Id843495de2acfa03508b9a378e9a48eedc3a7c62
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- Use ram as a disk which appears as block devices.
- Provide a read only ramdisk driver.
Change-Id: Ie6dc1a036c8a2841cacd0d467599c11b74b4ad77
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- for some platform without storage, pre-loader passes partition info by atags.
- search order: mmc/nand -> atags
Change-Id: Ie2699e217999e4772168c96de3b16c084241891e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Maybe there is no flash storage for some SoC which is used
as coprocessor, preloader will load images for U-Boot and
pass partition info by atags.
Change-Id: Ieb6efff80cb615b3b5a7bcd51c672649f3c97115
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Amend the maximum request length equate to the maximum transfer
size of endpoind.
Change-Id: I926c23ddf347f33cf166c51c80d099441978ca7e
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
The maximum transfer size supported should be 2^19 bytes
from Table 5-79 (P372) of the DWC OTG Databook V3.10.
Change-Id: I258b6c2119270fa2f31453af86f7eb179359e171
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
BUG: If erase is set as MMC_ERASE_ARG, the erase command
perform an erase on erase group(s). If so, when the start
address is close to the next partition address and the
blkcnt is less than erase group size, the mmc_berase()
will recalculate the end address and may exceed the next
partition start address. This will erase the other partition
useful data.
Solve: Set erase mode as trim, the erase command perform an
erase on the sector(s).
The erase command of SD card perform an erase on the sector(s).
We can just send the start and end address to erase SD card
and send CMD38 with argument MMC_ERASE_ARG.
Change-Id: Ic4251b77e9f9feb6a087324c0241625ff013a0a0
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
On FPGA, PLL is fake and can't give a lock state which causes
dead waiting, so that adding a debug message to easily notice
this situation.
Change-Id: Ic7dccedb3d7e5c7588da85bb4c4552b924f60e43
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.
Change-Id: I971c4fd63175137968430b130c25da03709d26e4
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.
Change-Id: Ib137428bb5fa10ee5b30b79a2623a016ecfc19e3
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.
Change-Id: I572e5edb26e2f7430c89fd057761ddc9abf077c6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.
Change-Id: I4e17b934dc3dd19f66bda374263dcb674c53b057
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.
Change-Id: Ie3bdadd58da954bff3de182725d28cfb6877e672
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.
Change-Id: Ia310eda1317ae65aa374dca9294114813a645315
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.
Change-Id: I0209a4294f9b85e89ce22a3a5c1e1b79a0ff37aa
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>