summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsss22213 <n0404.n0404@gmail.com>2021-05-18 22:30:36 +0800
committerAndrei Gherzan <andrei@gherzan.com>2021-05-19 20:00:02 +0100
commit11209a4981f03db9988de84752da0076ff6b8f17 (patch)
tree289d19fb97782e8230cc12dc17acb41aea973d01
parentb6018183015228dcf50af382736ffbdea4a85635 (diff)
downloadmeta-raspberrypi-11209a4981f03db9988de84752da0076ff6b8f17.tar.gz
recipes-bsp: Add support for Raspberry Pi HD quality camera
Signed-off-by: Bohung-Nian <n0404.n0404@gmail.com>
-rw-r--r--conf/machine/include/rpi-base.inc1
-rw-r--r--recipes-bsp/bootfiles/rpi-cmdline.bb2
-rw-r--r--recipes-bsp/bootfiles/rpi-config_git.bb8
3 files changed, 10 insertions, 1 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index 77cada7..a800078 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -31,6 +31,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
31 overlays/justboom-digi.dtbo \ 31 overlays/justboom-digi.dtbo \
32 overlays/i2c-rtc.dtbo \ 32 overlays/i2c-rtc.dtbo \
33 overlays/imx219.dtbo \ 33 overlays/imx219.dtbo \
34 overlays/imx477.dtbo \
34 overlays/iqaudio-dac.dtbo \ 35 overlays/iqaudio-dac.dtbo \
35 overlays/iqaudio-dacplus.dtbo \ 36 overlays/iqaudio-dacplus.dtbo \
36 overlays/mcp2515-can0.dtbo \ 37 overlays/mcp2515-can0.dtbo \
diff --git a/recipes-bsp/bootfiles/rpi-cmdline.bb b/recipes-bsp/bootfiles/rpi-cmdline.bb
index 40a9949..3ebd1e6 100644
--- a/recipes-bsp/bootfiles/rpi-cmdline.bb
+++ b/recipes-bsp/bootfiles/rpi-cmdline.bb
@@ -13,6 +13,8 @@ CMDLINE_SERIAL ?= "${@oe.utils.conditional("ENABLE_UART", "1", "console=serial0,
13 13
14CMDLINE_CMA ?= "${@oe.utils.conditional("RASPBERRYPI_CAMERA_V2", "1", "cma=64M", "", d)}" 14CMDLINE_CMA ?= "${@oe.utils.conditional("RASPBERRYPI_CAMERA_V2", "1", "cma=64M", "", d)}"
15 15
16CMDLINE_CMA ?= "${@oe.utils.conditional("RASPBERRYPI_HD_CAMERA", "1", "cma=64M", "", d)}"
17
16CMDLINE_PITFT ?= "${@bb.utils.contains("MACHINE_FEATURES", "pitft", "fbcon=map:10 fbcon=font:VGA8x8", "", d)}" 18CMDLINE_PITFT ?= "${@bb.utils.contains("MACHINE_FEATURES", "pitft", "fbcon=map:10 fbcon=font:VGA8x8", "", d)}"
17 19
18# Add the kernel debugger over console kernel command line option if enabled 20# Add the kernel debugger over console kernel command line option if enabled
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
index c4b4411..052206a 100644
--- a/recipes-bsp/bootfiles/rpi-config_git.bb
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -189,10 +189,16 @@ do_deploy() {
189 189
190 # Choose Camera Sensor to be used, default imx219 sensor 190 # Choose Camera Sensor to be used, default imx219 sensor
191 if [ "${RASPBERRYPI_CAMERA_V2}" = "1" ]; then 191 if [ "${RASPBERRYPI_CAMERA_V2}" = "1" ]; then
192 echo "# Enable Sony RaspberryPi Camera" >> $CONFIG 192 echo "# Enable Sony RaspberryPi Camera(imx219)" >> $CONFIG
193 echo "dtoverlay=imx219" >> $CONFIG 193 echo "dtoverlay=imx219" >> $CONFIG
194 fi 194 fi
195 195
196 # Choose Camera Sensor to be used, default imx477 sensor
197 #if [ "${RASPBERRYPI_HD_CAMERA}" = "1" ]; then
198 # echo "# Enable Sony RaspberryPi Camera(imx477)" >> $CONFIG
199 # echo "dtoverlay=imx477" >> $CONFIG
200 #fi
201
196 # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (http://www.waveshare.com/7inch-HDMI-LCD-C.htm) 202 # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (http://www.waveshare.com/7inch-HDMI-LCD-C.htm)
197 if [ "${WAVESHARE_1024X600_C_2_1}" = "1" ]; then 203 if [ "${WAVESHARE_1024X600_C_2_1}" = "1" ]; then
198 echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPS capacitive touch screen" >> $CONFIG 204 echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPS capacitive touch screen" >> $CONFIG