diff options
| author | Petter Mabäcker <petter@technux.se> | 2016-02-28 14:46:13 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-03-01 21:56:56 +0100 |
| commit | a42a1706de91ed03ae8798c7f9e70c30cebcf7de (patch) | |
| tree | 507887a5f4c0a856713bc3df22a6d407609333b9 /recipes-bsp | |
| parent | 249cb544e0630645e6ed7267e3ea4aa91fff1471 (diff) | |
| download | meta-raspberrypi-a42a1706de91ed03ae8798c7f9e70c30cebcf7de.tar.gz | |
pitft: Add PiTFT22 support
- Add support to build overlays for PiTFT22 in the kernel.
- Setup a basic configuration for the driver
The PiTFT22 support is optional and can be enabled by adding below in
local.conf:
MACHINE_FEATURES += "pitft pitft22"
This patch also includes restructuring of kernel patches per kernel version
specific directories.
[Support #70]
Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'recipes-bsp')
| -rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index bfe00d1..4d41723 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -16,6 +16,7 @@ S = "${WORKDIR}/git" | |||
| 16 | PR = "r4" | 16 | PR = "r4" |
| 17 | 17 | ||
| 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
| 19 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" | ||
| 19 | 20 | ||
| 20 | inherit deploy | 21 | inherit deploy |
| 21 | 22 | ||
| @@ -83,6 +84,12 @@ do_deploy() { | |||
| 83 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 84 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 84 | echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 85 | echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 85 | fi | 86 | fi |
| 87 | |||
| 88 | # PiTFT22 display support | ||
| 89 | if [ "${PITFT22}" = "1" ]; then | ||
| 90 | echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 91 | echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 92 | fi | ||
| 86 | } | 93 | } |
| 87 | 94 | ||
| 88 | addtask deploy before do_package after do_install | 95 | addtask deploy before do_package after do_install |
