From 3762c32d709e43968082a2c4725585b786d8ebd3 Mon Sep 17 00:00:00 2001 From: "Huang, Tao" Date: Wed, 25 Nov 2015 18:17:37 +0800 Subject: [PATCH] block: partitions: add rockchip partition support Change-Id: If6171d434c5cf27b3072e542a840ea60f181c255 Signed-off-by: Huang, Tao --- block/partitions/Kconfig | 10 ++++++++++ block/partitions/Makefile | 1 + block/partitions/check.c | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/block/partitions/Kconfig b/block/partitions/Kconfig index 9b29a996c311..66a5a35bfe2d 100644 --- a/block/partitions/Kconfig +++ b/block/partitions/Kconfig @@ -261,6 +261,16 @@ config SYSV68_PARTITION sysv68). Otherwise, say N. +config RK_PARTITION + bool "Rockchip partition table support" if PARTITION_ADVANCED + default y if ARCH_ROCKCHIP + ---help--- + Like most systems, Rockchip use its own hard disk partition table + format, incompatible with all others. Say Y here if you would like + to be able to read the hard disk partition table format used by + Rockchip SoCs inside machines with eMMC as main storage disk. + Otherwise, say N. + config CMDLINE_PARTITION bool "Command line partition support" if PARTITION_ADVANCED select BLK_CMDLINE_PARSER diff --git a/block/partitions/Makefile b/block/partitions/Makefile index 37a95270503c..8cddc48e5d89 100644 --- a/block/partitions/Makefile +++ b/block/partitions/Makefile @@ -8,6 +8,7 @@ obj-$(CONFIG_ACORN_PARTITION) += acorn.o obj-$(CONFIG_AMIGA_PARTITION) += amiga.o obj-$(CONFIG_ATARI_PARTITION) += atari.o obj-$(CONFIG_AIX_PARTITION) += aix.o +obj-$(CONFIG_RK_PARTITION) += rk.o obj-$(CONFIG_CMDLINE_PARTITION) += cmdline.o obj-$(CONFIG_MAC_PARTITION) += mac.o obj-$(CONFIG_LDM_PARTITION) += ldm.o diff --git a/block/partitions/check.c b/block/partitions/check.c index 16118d11dbfc..073ed042854a 100644 --- a/block/partitions/check.c +++ b/block/partitions/check.c @@ -20,6 +20,7 @@ #include "check.h" +#include "rk.h" #include "acorn.h" #include "amiga.h" #include "atari.h" @@ -66,6 +67,9 @@ static int (*check_part[])(struct parsed_partitions *) = { adfspart_check_ADFS, #endif +#ifdef CONFIG_RK_PARTITION + rkpart_partition, +#endif #ifdef CONFIG_CMDLINE_PARTITION cmdline_partition, #endif -- 2.34.1