diff options
| author | Petter Mabäcker <petter@technux.se> | 2016-02-28 14:46:12 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-03-01 14:38:03 +0100 |
| commit | 0d5aff5161d0fb6f91bc9021f86065248cd8cd1b (patch) | |
| tree | 001df2131591ac7916acda8cebbb4646cb2e25a0 /recipes-bsp | |
| parent | 52671faf4fd26db008a77f9815fb29c088b29cea (diff) | |
| download | meta-raspberrypi-0d5aff5161d0fb6f91bc9021f86065248cd8cd1b.tar.gz | |
pitft: Add basic support for PiTFT
Add basic support for PiTFT display by using device-trees.
In order get it working below configurations must be active in
local.conf:
MACHINE_FEATURES += "pitft"
- This will enable SPI bus and i2c device-trees, it will also setup
framebuffer for console and x server on PiTFT.
[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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index 138cb37..bfe00d1 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -15,6 +15,8 @@ S = "${WORKDIR}/git" | |||
| 15 | 15 | ||
| 16 | PR = "r4" | 16 | PR = "r4" |
| 17 | 17 | ||
| 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | ||
| 19 | |||
| 18 | inherit deploy | 20 | inherit deploy |
| 19 | 21 | ||
| 20 | do_deploy() { | 22 | do_deploy() { |
| @@ -71,12 +73,12 @@ do_deploy() { | |||
| 71 | fi | 73 | fi |
| 72 | 74 | ||
| 73 | # SPI bus support | 75 | # SPI bus support |
| 74 | if [ -n "${ENABLE_SPI_BUS}" ]; then | 76 | if [ -n "${ENABLE_SPI_BUS}" ] || [ "${PITFT}" = "1" ]; then |
| 75 | echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 77 | echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 76 | echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 78 | echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 77 | fi | 79 | fi |
| 78 | 80 | ||
| 79 | if [ -n "${ENABLE_I2C}" ]; then | 81 | if [ -n "${ENABLE_I2C}" ] || [ "${PITFT}" = "1" ]; then |
| 80 | echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 82 | echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 81 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 83 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 82 | echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 84 | echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
