Browse Source

!543 [Kernel] Change RT_USING_DM description
* [GPT] remove the gpt log print
* [Kernel] Change RT_USING_DM description

bernard 3 years ago
parent
commit
c5792f5b30
2 changed files with 16 additions and 6 deletions
  1. 0 1
      components/drivers/Kconfig
  2. 16 5
      src/Kconfig

+ 0 - 1
components/drivers/Kconfig

@@ -433,7 +433,6 @@ static int find_valid_gpt(struct rt_mmcsd_card *card, gpt_header **gpt,
     }
 
     lastlba = last_lba(card);
-    rt_kprintf("total_sectors:%d, lastlba:%d\n", total_sectors, lastlba);
     if (!force_gpt)
     {
         /* This will be added to the EFI Spec. per Intel after v1.02. */

+ 16 - 5
src/Kconfig

@@ -71,7 +71,7 @@ config RT_TICK_PER_SECOND
     range 10 1000
     default 100
     help
-        System's tick frequency, Hz.
+        Tick frequency, Hz of system.
 
 config RT_USING_OVERFLOW_CHECK
     bool "Using stack overflow checking"
@@ -319,6 +319,21 @@ menu "Kernel Device Object"
         bool "Using ops for each device object"
         default n
 
+    config RT_USING_DM
+        bool "Enable device driver model with device tree"
+        default n
+        help
+            Enable device driver model with device tree (FDT). It will use more memory
+            to parse and support device tree feature.
+
+    config RT_USING_DM_FDT
+        bool "Enablie builtin libfdt"
+        depends on RT_USING_DM
+        default y
+        help
+            libfdt - Flat Device Tree manipulation. If your code already contains the
+            libfdt, you can cancel this built-in libfdt to avoid link issue.
+
     config RT_USING_INTERRUPT_INFO
         bool "Enable additional interrupt trace information"
         default n
@@ -347,8 +362,4 @@ config RT_VER_NUM
     help
         RT-Thread version number
 
-config RT_USING_DM
-    bool "Enable rt device driver model"
-    default n
- 
 endmenu