mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
cmd_mmc.c: Add bootbus mmc sub-command
Add a bootbus sub-command to the mmc command to allow for setting the boot_bus_width, reset_boot_bus_width and boot_mode fields of BOOT_BUS_WIDTH (EXT_CSD[177]). Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Tom Rini <trini@ti.com> Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
This commit is contained in:
committed by
Pantelis Antoniou
parent
792970b0a3
commit
5a99b9de1a
@@ -187,6 +187,9 @@
|
||||
#define EXT_CSD_BOOT_PART_NUM(x) (x << 3)
|
||||
#define EXT_CSD_PARTITION_ACCESS(x) (x << 0)
|
||||
|
||||
#define EXT_CSD_BOOT_BUS_WIDTH_MODE(x) (x << 3)
|
||||
#define EXT_CSD_BOOT_BUS_WIDTH_RESET(x) (x << 2)
|
||||
#define EXT_CSD_BOOT_BUS_WIDTH_WIDTH(x) (x)
|
||||
|
||||
#define R1_ILLEGAL_COMMAND (1 << 22)
|
||||
#define R1_APP_CMD (1 << 5)
|
||||
@@ -314,6 +317,8 @@ int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize,
|
||||
int mmc_boot_part_access(struct mmc *mmc, u8 ack, u8 part_num, u8 access);
|
||||
/* Function to modify the PARTITION_CONFIG field of EXT_CSD */
|
||||
int mmc_set_part_conf(struct mmc *mmc, u8 ack, u8 part_num, u8 access);
|
||||
/* Function to modify the BOOT_BUS_WIDTH field of EXT_CSD */
|
||||
int mmc_set_boot_bus_width(struct mmc *mmc, u8 width, u8 reset, u8 mode);
|
||||
|
||||
/**
|
||||
* Start device initialization and return immediately; it does not block on
|
||||
|
||||
Reference in New Issue
Block a user