hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/of/Kconfig
....@@ -14,21 +14,22 @@
1414
1515 config DTC_SYMBOLS
1616 bool "Enable dtc generation of symbols for overlays support"
17
- depends on DTC
18
- default ANDROID
17
+ depends on DTC && ARCH_ROCKCHIP
1918 help
2019 Set DTC_FLAGS += -@
2120 Android OS must enable this option.
2221
2322 config DTC_OMIT_DISABLED
2423 bool "Fixup dtb by removing nodes with disabled status"
25
- depends on DTC
24
+ depends on DTC && ROCKCHIP_MINI_KERNEL
25
+ default ROCKCHIP_MINI_KERNEL
2626 help
2727 This option used for dtc to delete nodes with disabled status.
2828
2929 config DTC_OMIT_EMPTY
3030 bool "Fixup dtb by removing empty nodes"
31
- depends on DTC
31
+ depends on DTC && ROCKCHIP_MINI_KERNEL
32
+ default ROCKCHIP_MINI_KERNEL
3233 help
3334 This option used for dtc to delete empty nodes.
3435
....@@ -63,6 +64,7 @@
6364
6465 config OF_EARLY_FLATTREE
6566 bool
67
+ select DMA_DECLARE_COHERENT if HAS_DMA
6668 select OF_FLATTREE
6769
6870 config OF_PROMTREE
....@@ -93,18 +95,10 @@
9395 depends on NETDEVICES
9496 def_bool y
9597
96
-config OF_MDIO
97
- def_tristate PHYLIB
98
- depends on PHYLIB
99
- select FIXED_PHY
100
- help
101
- OpenFirmware MDIO bus (Ethernet PHY) accessors
102
-
10398 config OF_RESERVED_MEM
104
- depends on OF_EARLY_FLATTREE
10599 bool
106
- help
107
- Helpers to allow for reservation of memory regions
100
+ depends on OF_EARLY_FLATTREE
101
+ default y if DMA_DECLARE_COHERENT || DMA_CMA
108102
109103 config OF_RESOLVE
110104 bool