From 1b3785bc92a0caeacb4253e56b406f3bce4a591c Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 05 Jun 2022 17:35:40 +0800
Subject: [PATCH] Add dtoverlay config file in boot partition

---
 bsp/images/boot/config-nolcd.txt |   14 ++++++++++++++
 bsp/images/boot/config-lcd.txt   |   14 ++++++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/bsp/images/boot/config-lcd.txt b/bsp/images/boot/config-lcd.txt
new file mode 100644
index 0000000..e867cef
--- /dev/null
+++ b/bsp/images/boot/config-lcd.txt
@@ -0,0 +1,14 @@
+# Enable LCD overlay
+dtoverlay_lcd=yes
+
+# Enable I2C overlay
+dtoverlay_i2c1=yes
+
+# Can not enable SPI overlay here for conflict with LCD
+#dtoverlay_spi1=yes
+
+# Can not enable UART7 overlay here for conflict with LCD
+dtoverlay_uart=2 3 4
+
+# Enable CAN overlay
+dtoverlay_can=1 2
diff --git a/bsp/images/boot/config-nolcd.txt b/bsp/images/boot/config-nolcd.txt
new file mode 100644
index 0000000..677df33
--- /dev/null
+++ b/bsp/images/boot/config-nolcd.txt
@@ -0,0 +1,14 @@
+# Enable LCD overlay
+dtoverlay_lcd=no
+
+# Enable I2C overlay
+dtoverlay_i2c1=yes
+
+# Enable SPI overlay, SPI1 conflict with LCD
+dtoverlay_spi1=yes
+
+# Enable UART overlay, UART7 conflict with LCD
+dtoverlay_uart=2 3 4 7
+
+# Enable CAN overlay
+dtoverlay_can=1 2

--
Gitblit v1.9.1