Tim Harvey 150481e5ba mmc: allow use of hardware partition names for mmc partconf
eMMC v4+ devices have hardware partitions that are accessed via the
PARTITION_CONFIG (Extended CSD Register 179) PARTITION_ACCESS
and BOOT_PARTITION_ENABLE fields defined as:
bit 5:3: BOOT_PARTITION_ENABLE
  0x0: Device not boot enabled (default)
  0x1: Boot Area partition 1 enabled for boot
  0x2: Boot Area partition 2 enabled for boot
  0x3-0x6: Reserved
  0x7: User area enabled for boot
bit 2:0 PARTITION_ACCESS
  0x0: No access to boot partition (default)
  0x1: Boot Area partition 1
  0x2: Boot Area partition 2
  0x3: Replay Protected Memory Block (RPMB)
  0x4: Access to General Purpose partition 1
  0x5: Access to General Purpose partition 2
  0x6: Access to General Purpose partition 3
  0x7: Access to General Purpose partition 4

Add char arrays to provide names for these values.

Use these names which displaying or setting the PARTITION_CONFIG
register via the 'mmc partconf' command.

Before:
u-boot=> mmc partconf 2 1 1 0 && mmc partconf 2
EXT_CSD[179], PARTITION_CONFIG:
BOOT_ACK: 0x1
BOOT_PARTITION_ENABLE: 0x2
PARTITION_ACCESS: 0x0

After:
u-boot=> mmc partconf 2 1 1 0 && mmc partconf 2
EXT_CSD[179], PARTITION_CONFIG:
BOOT_ACK: 0x1
BOOT_PARTITION_ENABLE: 0x1 (boot0)
PARTITION_ACCESS: 0x0 (user)
u-boot=> mmc partconf 2 1 boot1 0 && mmc partconf 2
EXT_CSD[179], PARTITION_CONFIG:
BOOT_ACK: 0x1
BOOT_PARTITION_ENABLE: 0x2 (boot1)
PARTITION_ACCESS: 0x0 (user)

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2024-09-05 12:12:51 -06:00
..
2024-05-20 10:16:33 -06:00
2024-01-03 09:22:47 -05:00
2022-10-30 20:07:16 +01:00
2022-01-19 18:11:34 +01:00
2022-09-29 16:07:57 -04:00
2022-09-24 10:47:01 -04:00
2023-08-25 13:54:33 -04:00
2022-07-26 02:30:56 -06:00
2023-08-08 10:22:03 -04:00
2023-12-21 08:54:37 -05:00
2022-01-30 01:25:00 +00:00
2022-01-30 01:25:00 +00:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2024-02-13 15:38:49 -05:00
2024-01-29 22:35:02 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-11-02 08:42:03 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2024-04-21 09:07:00 +02:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-02-06 13:04:52 -05:00
2022-03-15 16:19:29 -04:00
2022-04-06 14:01:42 -04:00
2024-05-03 12:22:58 -06:00
2023-05-02 14:23:34 -04:00
2022-01-19 18:11:34 +01:00
2022-10-18 09:32:53 +08:00
2023-01-20 12:27:06 -05:00
2022-07-26 11:29:00 +02:00
2023-11-07 14:50:51 -05:00
2024-01-13 18:17:47 +01:00
2023-12-21 08:54:37 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-10-31 09:08:51 +01:00
2022-01-19 18:11:34 +01:00
2023-04-27 13:51:06 -04:00
2022-07-26 11:29:02 +02:00
2022-01-19 18:11:34 +01:00
2023-12-21 11:59:49 -05:00
2023-08-19 04:12:53 +02:00
2023-12-13 11:35:13 -05:00
2022-10-30 20:07:17 +01:00
2023-12-21 08:54:37 -05:00
2023-10-11 15:43:55 -04:00
2022-01-24 10:35:10 -05:00
2021-09-28 12:03:20 -04:00
2023-12-21 08:54:37 -05:00
2023-11-18 10:08:09 +02:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2024-03-26 19:58:26 -04:00
2022-01-19 18:11:34 +01:00
2024-03-26 19:58:26 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-01-16 18:01:10 +08:00
2023-12-21 08:54:37 -05:00
2022-01-19 18:11:34 +01:00
2022-04-01 15:03:13 -04:00
2024-03-27 09:23:30 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-11-16 13:49:14 -05:00
2022-04-06 14:03:17 -04:00
2023-10-09 15:24:31 -04:00
2022-09-24 10:47:01 -04:00
2023-02-10 07:41:40 -05:00
2022-01-19 18:11:34 +01:00
2023-10-27 13:14:47 +03:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-12-07 16:04:17 -05:00
2022-12-22 10:31:49 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-11-14 20:04:00 -07:00
2022-09-18 10:26:49 +02:00
2022-01-19 18:11:34 +01:00