xref: /rk3399_rockchip-uboot/disk/Kconfig (revision 00ac81b92dd89dc8c8c8cf4b1942b53d97b6d2f4)
1e274ef6bSPatrick Delaunay
2e274ef6bSPatrick Delaunaymenu "Partition Types"
3e274ef6bSPatrick Delaunay
4e274ef6bSPatrick Delaunayconfig PARTITIONS
5e274ef6bSPatrick Delaunay	bool "Enable Partition Labels (disklabels) support"
6e274ef6bSPatrick Delaunay	default y
7e274ef6bSPatrick Delaunay	help
8e274ef6bSPatrick Delaunay	  Partition Labels (disklabels) Supported:
9e274ef6bSPatrick Delaunay	  Zero or more of the following:
10e274ef6bSPatrick Delaunay	  - CONFIG_MAC_PARTITION   Apple's MacOS partition table.
11e274ef6bSPatrick Delaunay	  - CONFIG_DOS_PARTITION   MS Dos partition table, traditional on the
12e274ef6bSPatrick Delaunay	                           Intel architecture, USB sticks, etc.
13e274ef6bSPatrick Delaunay	  - CONFIG_ISO_PARTITION   ISO partition table, used on CDROM etc.
14e274ef6bSPatrick Delaunay	  - CONFIG_EFI_PARTITION   GPT partition table, common when EFI is the
15e274ef6bSPatrick Delaunay	                           bootloader.  Note 2TB partition limit; see
16e274ef6bSPatrick Delaunay	                           disk/part_efi.c
17e274ef6bSPatrick Delaunay	  - CONFIG_MTD_PARTITIONS  Memory Technology Device partition table.
18e274ef6bSPatrick Delaunay	  If IDE or SCSI support is enabled (CONFIG_CMD_IDE or CONFIG_SCSI)
19e274ef6bSPatrick Delaunay	  you must configure support for at least one non-MTD partition type
20e274ef6bSPatrick Delaunay	  as well.
21e274ef6bSPatrick Delaunay
22f18fa31cSPatrick Delaunayconfig MAC_PARTITION
23f18fa31cSPatrick Delaunay	bool "Enable Apple's MacOS partition table"
24f18fa31cSPatrick Delaunay	depends on PARTITIONS
25f18fa31cSPatrick Delaunay	help
26f18fa31cSPatrick Delaunay	  Say Y here if you would like to use device under U-Boot which
27f18fa31cSPatrick Delaunay	  were partitioned on a Macintosh.
28f18fa31cSPatrick Delaunay
29f18fa31cSPatrick Delaunayconfig SPL_MAC_PARTITION
30f18fa31cSPatrick Delaunay	bool "Enable Apple's MacOS partition table for SPL"
31f18fa31cSPatrick Delaunay	depends on SPL && PARTITIONS
32f18fa31cSPatrick Delaunay	default y if MAC_PARTITION
33f18fa31cSPatrick Delaunay
34b0cf7339SPatrick Delaunayconfig DOS_PARTITION
35b0cf7339SPatrick Delaunay	bool "Enable MS Dos partition table"
36b0cf7339SPatrick Delaunay	depends on PARTITIONS
37b0cf7339SPatrick Delaunay	default y if DISTRO_DEFAULTS
38936478e7STom Rini	default y if x86 || CMD_FAT || USB_STORAGE
39b0cf7339SPatrick Delaunay	help
40b0cf7339SPatrick Delaunay	  traditional on the Intel architecture, USB sticks, etc.
41b0cf7339SPatrick Delaunay
42b0cf7339SPatrick Delaunayconfig SPL_DOS_PARTITION
43b0cf7339SPatrick Delaunay	bool "Enable MS Dos partition table for SPL"
44b0cf7339SPatrick Delaunay	depends on SPL && PARTITIONS
45b0cf7339SPatrick Delaunay	default y if DOS_PARTITION
46b0cf7339SPatrick Delaunay
471acc0087SPatrick Delaunayconfig ISO_PARTITION
481acc0087SPatrick Delaunay	bool "Enable ISO partition table"
491acc0087SPatrick Delaunay	depends on PARTITIONS
501acc0087SPatrick Delaunay	default y if DISTRO_DEFAULTS
51936478e7STom Rini	default y if MIPS || TEGRA
521acc0087SPatrick Delaunay
531acc0087SPatrick Delaunayconfig SPL_ISO_PARTITION
541acc0087SPatrick Delaunay	bool "Enable ISO partition table for SPL"
551acc0087SPatrick Delaunay	depends on SPL && PARTITIONS
561acc0087SPatrick Delaunay	default y if ISO_PARTITION
571acc0087SPatrick Delaunay
58863c5b6cSPatrick Delaunayconfig AMIGA_PARTITION
59863c5b6cSPatrick Delaunay	bool "Enable AMIGA partition table"
60863c5b6cSPatrick Delaunay	depends on PARTITIONS
61863c5b6cSPatrick Delaunay	help
62863c5b6cSPatrick Delaunay	  Say Y here if you would like to use device under U-Boot which
63863c5b6cSPatrick Delaunay	  were partitioned under AmigaOS.
64863c5b6cSPatrick Delaunay
65863c5b6cSPatrick Delaunayconfig SPL_AMIGA_PARTITION
66863c5b6cSPatrick Delaunay	bool "Enable AMIGA partition table for SPL"
67863c5b6cSPatrick Delaunay	depends on SPL && PARTITIONS
68863c5b6cSPatrick Delaunay	default y if AMIGA_PARTITION
69863c5b6cSPatrick Delaunay
70bd42a942SPatrick Delaunayconfig EFI_PARTITION
71bd42a942SPatrick Delaunay	bool "Enable EFI GPT partition table"
72bd42a942SPatrick Delaunay	depends on PARTITIONS
73bd42a942SPatrick Delaunay	default y if DISTRO_DEFAULTS
74bd42a942SPatrick Delaunay	default y if TEGRA
75bd42a942SPatrick Delaunay	help
76bd42a942SPatrick Delaunay	  Say Y here if you would like to use device under U-Boot which
77bd42a942SPatrick Delaunay	  were partitioned using EFI GPT.
78bd42a942SPatrick Delaunay	  common when EFI is the bootloader.  Note 2TB partition limit;
79bd42a942SPatrick Delaunay	  see disk/part_efi.c
80bd42a942SPatrick Delaunay
81025e2e5aSMaxime Ripardconfig EFI_PARTITION_ENTRIES_NUMBERS
82025e2e5aSMaxime Ripard	int "Number of the EFI partition entries"
83025e2e5aSMaxime Ripard	depends on EFI_PARTITION
84*00ac81b9SMaxime Ripard	default 56 if ARCH_SUNXI
85025e2e5aSMaxime Ripard	default 128
86025e2e5aSMaxime Ripard	help
87025e2e5aSMaxime Ripard	  Specify the number of partition entries in the GPT. This is
88025e2e5aSMaxime Ripard	  meant to allow less than the standard specifies for devices
89025e2e5aSMaxime Ripard	  that might need to place their first-stage bootloader in the
90025e2e5aSMaxime Ripard	  middle of a regular GPT.
91025e2e5aSMaxime Ripard
92025e2e5aSMaxime Ripard	  If unsure, leave at 128 entries, which is the standard
93025e2e5aSMaxime Ripard	  number.
94025e2e5aSMaxime Ripard
9502e43537SPhilipp Tomsichconfig EFI_PARTITION_ENTRIES_OFF
9602e43537SPhilipp Tomsich        int "Offset (in bytes) of the EFI partition entries"
9702e43537SPhilipp Tomsich	depends on EFI_PARTITION
9802e43537SPhilipp Tomsich	default 0
9902e43537SPhilipp Tomsich	help
10002e43537SPhilipp Tomsich	  Specify an earliest location (in bytes) where the partition
10102e43537SPhilipp Tomsich	  entries may be located. This is meant to allow "punching a
10202e43537SPhilipp Tomsich	  hole into a device" to create a gap for an SPL, its payload
10302e43537SPhilipp Tomsich	  and the U-Boot environment.
10402e43537SPhilipp Tomsich
10502e43537SPhilipp Tomsich	  If unsure, leave at 0 (which will locate the partition
10602e43537SPhilipp Tomsich	  entries at the first possible LBA following the GPT header).
10702e43537SPhilipp Tomsich
108bd42a942SPatrick Delaunayconfig SPL_EFI_PARTITION
109bd42a942SPatrick Delaunay	bool "Enable EFI GPT partition table for SPL"
110bd42a942SPatrick Delaunay	depends on  SPL && PARTITIONS
111bd42a942SPatrick Delaunay	default y if EFI_PARTITION
112bd42a942SPatrick Delaunay
113b331cd62SPatrick Delaunayconfig PARTITION_UUIDS
114b331cd62SPatrick Delaunay	bool "Enable support of UUID for partition"
115b331cd62SPatrick Delaunay	depends on PARTITIONS
116b331cd62SPatrick Delaunay	default y if DISTRO_DEFAULTS
117b331cd62SPatrick Delaunay	default y if EFI_PARTITION
118b331cd62SPatrick Delaunay	help
119b331cd62SPatrick Delaunay	  Activate the configuration of UUID for partition
120b331cd62SPatrick Delaunay
121b331cd62SPatrick Delaunayconfig SPL_PARTITION_UUIDS
122b331cd62SPatrick Delaunay	bool "Enable support of UUID for partition in SPL"
123b331cd62SPatrick Delaunay	depends on SPL && PARTITIONS
124b331cd62SPatrick Delaunay	default y if SPL_EFI_PARTITION
125b331cd62SPatrick Delaunay
126aed8fdaaSPatrick Delaunayconfig PARTITION_TYPE_GUID
127aed8fdaaSPatrick Delaunay	bool "Enable support of GUID for partition type"
128aed8fdaaSPatrick Delaunay	depends on PARTITIONS
129aed8fdaaSPatrick Delaunay	depends on EFI_PARTITION
130aed8fdaaSPatrick Delaunay	help
131aed8fdaaSPatrick Delaunay	  Activate the configuration of GUID type
132aed8fdaaSPatrick Delaunay	  for EFI partition
133aed8fdaaSPatrick Delaunay
13482198b5cSKever Yangconfig RKPARM_PARTITION
13582198b5cSKever Yang	bool "Enable Rockchip parameter partition table"
13682198b5cSKever Yang	depends on PARTITIONS
13782198b5cSKever Yang	help
13882198b5cSKever Yang	  Say Y here if you would like to use device under U-Boot which
13982198b5cSKever Yang	  were partitioned using Rockchip parameter.
14082198b5cSKever Yang
14182198b5cSKever Yangconfig SPL_ROCKCHIP_PARTITION
14282198b5cSKever Yang	bool "Enable Rockchip partition table for SPL"
14382198b5cSKever Yang
144e274ef6bSPatrick Delaunayendmenu
145