part: rkparm: add RKPARAM_ENTRY_NUMBERS definition

rkparam shouldn't depends on GPT partition.

Change-Id: Ifc235c4166facadfc2fe0eb6b08ce7fd8850738b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-08-07 14:27:34 +08:00
parent d156c9ff6f
commit 19f6a16924
2 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,7 @@ static int part_test_rkparm(struct blk_desc *dev_desc)
U_BOOT_PART_TYPE(b_rkparm) = { U_BOOT_PART_TYPE(b_rkparm) = {
.name = "RKPARM", .name = "RKPARM",
.part_type = PART_TYPE_RKPARM, .part_type = PART_TYPE_RKPARM,
.max_entries = GPT_ENTRY_NUMBERS, .max_entries = RKPARM_ENTRY_NUMBERS,
.get_info = part_get_info_ptr(part_get_info_rkparm), .get_info = part_get_info_ptr(part_get_info_rkparm),
.print = part_print_ptr(part_print_rkparm), .print = part_print_ptr(part_print_rkparm),
.test = part_test_rkparm, .test = part_test_rkparm,

View File

@ -36,6 +36,7 @@ struct block_drvr {
#define ISO_ENTRY_NUMBERS 64 #define ISO_ENTRY_NUMBERS 64
#define MAC_ENTRY_NUMBERS 64 #define MAC_ENTRY_NUMBERS 64
#define AMIGA_ENTRY_NUMBERS 8 #define AMIGA_ENTRY_NUMBERS 8
#define RKPARM_ENTRY_NUMBERS 128
/* /*
* Type string for U-Boot bootable partitions * Type string for U-Boot bootable partitions
*/ */