block: partitions: add rockchip partition support
authorHuang, Tao <huangtao@rock-chips.com>
Wed, 25 Nov 2015 10:17:37 +0000 (18:17 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Thu, 26 Nov 2015 10:24:56 +0000 (18:24 +0800)
Change-Id: If6171d434c5cf27b3072e542a840ea60f181c255
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
block/partitions/Kconfig
block/partitions/Makefile
block/partitions/check.c

index 9b29a996c3114a3d09c41abdcaaa0f3f19abe3ff..66a5a35bfe2d966756ea8d7b06776e194f934419 100644 (file)
@@ -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
index 37a95270503c495ce74f793245b4c65f24b5562d..8cddc48e5d8918eb105d2af94582dfc2911320fb 100644 (file)
@@ -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
index 16118d11dbfc002cdc11463c3ee4024685615420..073ed042854af4c7c5f7cc4f1b714fba22155c51 100644 (file)
@@ -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