diff options
author | sss22213 <n0404.n0404@gmail.com> | 2021-05-18 22:30:36 +0800 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2021-05-19 20:00:02 +0100 |
commit | 11209a4981f03db9988de84752da0076ff6b8f17 (patch) | |
tree | 289d19fb97782e8230cc12dc17acb41aea973d01 | |
parent | b6018183015228dcf50af382736ffbdea4a85635 (diff) | |
download | meta-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.inc | 1 | ||||
-rw-r--r-- | recipes-bsp/bootfiles/rpi-cmdline.bb | 2 | ||||
-rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 8 |
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 | ||
14 | CMDLINE_CMA ?= "${@oe.utils.conditional("RASPBERRYPI_CAMERA_V2", "1", "cma=64M", "", d)}" | 14 | CMDLINE_CMA ?= "${@oe.utils.conditional("RASPBERRYPI_CAMERA_V2", "1", "cma=64M", "", d)}" |
15 | 15 | ||
16 | CMDLINE_CMA ?= "${@oe.utils.conditional("RASPBERRYPI_HD_CAMERA", "1", "cma=64M", "", d)}" | ||
17 | |||
16 | CMDLINE_PITFT ?= "${@bb.utils.contains("MACHINE_FEATURES", "pitft", "fbcon=map:10 fbcon=font:VGA8x8", "", d)}" | 18 | CMDLINE_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 |