History log of /rk3399_rockchip-uboot/common/spl/spl_mmc.c (Results 1 – 25 of 121)
Revision Date Author Comments
# e12b5efd 28-Mar-2022 Joseph Chen <chenjh@rock-chips.com>

env: envf: refactor code to read env partition table directly

The partition table list should not depend on other procedure,
eg. pre-init or env variables, etc. Otherwise:

- The "part list mmc 1" i

env: envf: refactor code to read env partition table directly

The partition table list should not depend on other procedure,
eg. pre-init or env variables, etc. Otherwise:

- The "part list mmc 1" is wrong which uses part list from mmc 0;
- SPL may use sdmmc part list but not eMMC when try boot.
- Maybe ...

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I311a42a5c2122dcc5fad76ad2ff7b951543b46f9

show more ...


# 7a38549f 08-Feb-2022 Joseph Chen <chenjh@rock-chips.com>

env: envf: optimise/update

- Rename "bootargs_envf" to "sys_bootargs"
- Use CONFIG_ENV_OFFSET to find ENVF data
- Hashtable: don't remove variables which were not considered
- Split envf and nowhere

env: envf: optimise/update

- Rename "bootargs_envf" to "sys_bootargs"
- Use CONFIG_ENV_OFFSET to find ENVF data
- Hashtable: don't remove variables which were not considered
- Split envf and nowhere
- Add SPL support
- Init partition table before any partition query.

Important: Must call part_init() to reinit system partition tables
after mtdparts/blkdevparts parsed.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I89623b2067108040eca1ee0f5e6f7519ebc3c42a

show more ...


# a786ab7a 14-Dec-2021 Jason Zhu <jason.zhu@rock-chips.com>

spl: mmc: extern spl_mmc_find_device()

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I27dc7a5332c10f637325d8d7225e79a7018cec7d


# 835c5a4c 03-Dec-2021 Jason Zhu <jason.zhu@rock-chips.com>

spl: mmc: correct the mmc_load_image_raw_partition()

Since we use this function to load image as gpt partition but
not mmc partition by mistake, and rockcjip do not use mmc boot 1 & 2
partitions to

spl: mmc: correct the mmc_load_image_raw_partition()

Since we use this function to load image as gpt partition but
not mmc partition by mistake, and rockcjip do not use mmc boot 1 & 2
partitions to store firmwares anymore. So correct this function
usage.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I4600c137c7dea0e295731372d5ce086d1be0e355

show more ...


# 8b16d676 22-Jun-2020 Joseph Chen <chenjh@rock-chips.com>

spl: mmc: always load U-Boot partition

On the view of spl_xxx.c, it only cares about loading
U-Boot by spl_load_simple_fit().

Other partitions is better to be loaded in the
spl_load_simple_fit().

spl: mmc: always load U-Boot partition

On the view of spl_xxx.c, it only cares about loading
U-Boot by spl_load_simple_fit().

Other partitions is better to be loaded in the
spl_load_simple_fit().

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I15625f7ebdb3aaee5491fddabf544951723b00a9

show more ...


# 602b8060 08-Jun-2020 Jason Zhu <jason.zhu@rock-chips.com>

spl: mmc: support load image depend on parameter next_stage

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I215cc0095d875fe8f4d58b27d49e30cb615e8167


# 2e93c98a 08-Jun-2020 Jason Zhu <jason.zhu@rock-chips.com>

spl: mmc: fix partition error

The part_get_info_by_name() return number that is greater than
zero when called successfully.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ib3127f903

spl: mmc: fix partition error

The part_get_info_by_name() return number that is greater than
zero when called successfully.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ib3127f90368e7c2bfb9573c7d17e1e98dc67d9db

show more ...


# 85f134f5 22-May-2020 Joseph Chen <chenjh@rock-chips.com>

spl: mmc: add partition name to load image

Thus, the a/b system can be supported.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I8bceb3d56f50e5bb10de3ec7d4f7768aa7d61fe1


# 54581239 21-May-2020 Joseph Chen <chenjh@rock-chips.com>

spl: mmc: clean rkfw from mmc_load_image_raw_sector()

Don't mix rkfw in the mmc_load_image_raw_sector(), it's
not flexsible to add more feature for rkfw.

Pass blk desc to load.dev that the same as

spl: mmc: clean rkfw from mmc_load_image_raw_sector()

Don't mix rkfw in the mmc_load_image_raw_sector(), it's
not flexsible to add more feature for rkfw.

Pass blk desc to load.dev that the same as spl_mtd_blk.c

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I87ff776362a667ea0e558749016ae3ba7049e053

show more ...


# ab6f8011 06-May-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 95616193 27-Apr-2020 Jason Zhu <jason.zhu@rock-chips.com>

common: spl: mmc: delete ab system support in rkfw process

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I9cafffa266fbbe2c18c4300fdddb89944430cc0c


# c637f232 16-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot

Change-Id: I22ac688008080eac49169d752a94b66668f890fc

Conflicts:
drivers/phy/Kconfig
drivers/phy/Makefile


# 2996edba 15-Apr-2020 Jason Zhu <jason.zhu@rock-chips.com>

common: spl: mmc: clean up the useless log

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ibf588d918ce6471aeb540321118e51877ce6fea0


# f8f8bbc6 10-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 22c7c1a8 04-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

spl: fit: support load multiple backup of images

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I29bce60f1b958baedbd2b45e86a611b89547c0d8


# 41bb8b73 07-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot

Conflicts:
common/spl/spl_rkfw.c
drivers/pinctrl/pinctrl-rockchip.c
make.sh

Change-Id: I93f4dbe1e067c3b938bf64c4964bd5e7023b1daf
Signed-off-by: Joseph C

Merge branch 'next-dev' into thunder-boot

Conflicts:
common/spl/spl_rkfw.c
drivers/pinctrl/pinctrl-rockchip.c
make.sh

Change-Id: I93f4dbe1e067c3b938bf64c4964bd5e7023b1daf
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# aa415ed9 07-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

common: spl: fix cherry-pick sync conflict

fixes: (1cb393f common: spl: rkfw: support bing-up arm32 firmware)

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1b7f1a6269794ea9a4a50893

common: spl: fix cherry-pick sync conflict

fixes: (1cb393f common: spl: rkfw: support bing-up arm32 firmware)

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1b7f1a6269794ea9a4a508933381bbb8e3e7133b

show more ...


# 1cb393f1 09-Mar-2020 Jason Zhu <jason.zhu@rock-chips.com>

common: spl: rkfw: support bing-up arm32 firmware

1. the arm32 trust firmware is diffirent with arm64, support it.
2. add entry_point_os to indicate the uboot or kernel entry point.

Signed-off-by:

common: spl: rkfw: support bing-up arm32 firmware

1. the arm32 trust firmware is diffirent with arm64, support it.
2. add entry_point_os to indicate the uboot or kernel entry point.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I24d1601323e99f40e81d18f1937f762b2ecc137f
(cherry picked from commit a64fd729d49f96f99e0291b10a16307d306ebb09)

Change-Id: I3b1420989d158c52259365d90011524b047b5750

show more ...


# 440eb126 12-Mar-2020 Jason Zhu <jason.zhu@rock-chips.com>

spl: rkfw: add boot_sector to seperate uboot and boot load-address

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I04e2b00a8615fee24ee7722ab7bb9ad4931f4332


# 993f1e5c 29-Jul-2019 Jason Zhu <jason.zhu@rock-chips.com>

common: spl: mmc: support A/B system boot

Change-Id: I4b50a1daa2733c4926d90b4d489845b34a07eba3
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>


# 85bf7be3 26-Jul-2019 Jason Zhu <jason.zhu@rock-chips.com>

common: spl: mmc: use block interface to find mmc device

Use block interface to find mmc device if enable CONFIG_SPL_BLK.

Change-Id: Ide47190c0648627d9853296a59053bdff282e4f7
Signed-off-by: Jason Z

common: spl: mmc: use block interface to find mmc device

Use block interface to find mmc device if enable CONFIG_SPL_BLK.

Change-Id: Ide47190c0648627d9853296a59053bdff282e4f7
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...


# 4807f529 11-Jun-2019 Joseph Chen <chenjh@rock-chips.com>

common: spl: mmc: support load rockchip images

Change-Id: I200c052f61e8c3fdda91ed5447ca54452080d641
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>


# f8cd15a1 19-Sep-2017 Seung-Woo Kim <sw0312.kim@samsung.com>

UPSTREAM: spl: spl_mmc: add __maybe_unused to mmc_load_image_raw_sector()

If there are no CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION,
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR and CONFIG_SPL_O

UPSTREAM: spl: spl_mmc: add __maybe_unused to mmc_load_image_raw_sector()

If there are no CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION,
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR and CONFIG_SPL_OS_BOOT,
there is unused-function build warning. Add __maybe_unused macro
to remove the warning.

Change-Id: Ibd880ebc42fdb4610106a8f53645bfd61825dc9e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit b016b585425b66ea53eef6b8600aff78a4205b9e)

show more ...


# 9585dd3f 15-Aug-2017 Tom Rini <trini@konsulko.com>

spl: spl_mmc.c Correct blk_dread() return value check

The function blk_dread will return -ENOSYS on failure or on success the
number of blocks read, which must be the number asked to read (otherwise

spl: spl_mmc.c Correct blk_dread() return value check

The function blk_dread will return -ENOSYS on failure or on success the
number of blocks read, which must be the number asked to read (otherwise
it failed somewhere). Correct this check.

Signed-off-by: Tom Rini <trini@konsulko.com>

show more ...


# 5c6631be 01-Aug-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-mmc


12345