Searched hist:b95c8f6caece637d742719c07d80b56f80c89caa (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/ |
| H A D | mtd_uboot.c | b95c8f6caece637d742719c07d80b56f80c89caa Tue Nov 13 11:43:09 UTC 2018 Boris Brezillon <boris.brezillon@bootlin.com> UPSTREAM: mtd: Use default mtdparts/mtids when not defined in the environment
U-boot provides a mean to define default values for mtdids and mtdparts when they're not defined in the environment. Patch mtd_probe_devices() to use those default values when env_get("mtdparts") or env_get("mtdids") return NULL.
This implementation is based on the logic found in cmd/mtdparts.c.
Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Change-Id: Ic10873631a58981860f95584efc0b0b03b753a98 Reported-by: Stefan Roese <sr@denx.de> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Stefan Roese <sr@denx.de> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Jagan Teki <jagan@openedev.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit 5ffcd50612f6e716ea9479bea0edfdc89f7a0f0b)
|