Skip to content

[RFC] watchdog: bcm2835: Support setting reboot partition #1668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 118 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
0e4770d
Revert "SUNRPC: Make NFS swap work with multipath"
popcornmix Apr 27, 2016
f011a22
smsx95xx: fix crimes against truesize
Feb 19, 2015
cc45039
smsc95xx: Disable turbo mode by default
popcornmix Apr 17, 2015
4c8da8b
add smsc95xx packetsize module_param
samnazarko Apr 1, 2016
db99f37
Allow mac address to be set in smsc95xx
popcornmix Mar 26, 2013
6a5e377
smsc95xx: Experimental: Enable turbo_mode and packetsize=2560 by default
popcornmix Aug 9, 2016
7587ea1
serial: Take care starting a hung-up tty's port
Mar 9, 2016
a365740
Protect __release_resource against resources without parents
Mar 13, 2015
75750dc
mm: Remove the PFN busy warning
anholt Dec 19, 2014
f06f09b
BCM2835_DT: Fix I2S register map
rtiemann Jul 20, 2015
d3e2879
irq-bcm2836: Prevent spurious interrupts, and trap them early
Dec 4, 2015
a5f61b9
irqchip: bcm2835: Add FIQ support
notro Jun 12, 2015
d80347d
irqchip: irq-bcm2835: Add 2836 FIQ support
notro Oct 23, 2015
6a64833
spidev: Add "spidev" compatible string to silence warning
Jul 14, 2015
0efeaa9
serial: 8250: Don't crash when nr_uarts is 0
Jun 30, 2015
84d7906
pinctrl-bcm2835: Set base to 0 give expected gpio numbering
notro Jul 10, 2014
5f11780
pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53
Feb 24, 2015
18f969c
pinctrl-bcm2835: Only request the interrupts listed in the DTB
Feb 26, 2015
f2f8e68
pinctrl-bcm2835: Return pins to inputs when freed
May 6, 2016
c6c5794
spi-bcm2835: Support pin groups other than 7-11
Jun 24, 2015
cbabdc3
spi-bcm2835: Disable forced software CS
Jul 1, 2016
fc5e49b
ARM: bcm2835: Set Serial number and Revision
notro Jun 3, 2015
23b9b9c
dmaengine: bcm2835: Load driver early and support legacy API
notro Oct 3, 2015
4b194a3
bcm2835: Add support for uart1
notro Aug 15, 2015
43fee56
firmware: Updated mailbox header
popcornmix Jan 25, 2016
7b94273
clk: bcm2835: Mark the VPU clock as critical
anholt Apr 26, 2016
476597d
clk: bcm2835: Mark GPIO clocks enabled at boot as critical.
anholt May 10, 2016
af5f2a2
clk: bcm2835: Skip PLLC clocks when deciding on a new clock parent
anholt Apr 26, 2016
16de3c0
clk: bcm2835: Mark the CM SDRAM clock's parent as critical
anholt Jun 1, 2016
8a1bb98
Enable upstream BCM2835 auxiliar mini UART support
popcornmix Oct 3, 2016
9a4edcc
rtc: Add SPI alias for pcf2123 driver
Jun 15, 2016
f02ce9f
ARM: bcm2708: Enable building power domain driver.
anholt Apr 19, 2016
c305009
Main bcm2708/bcm2709 linux port
popcornmix May 12, 2013
2421e25
reboot: Use power off rather than busy spinning when halt is requested
popcornmix Apr 5, 2016
f831835
squash: include ARCH_BCM2708 / ARCH_BCM2709
popcornmix Nov 11, 2015
946a7ff
Add dwc_otg driver
popcornmix May 1, 2013
c52db45
bcm2708 framebuffer driver
popcornmix Jun 17, 2015
3185fa9
dmaengine: Add support for BCM2708
koalo Nov 22, 2013
755d23f
MMC: added alternative MMC driver
weiszg Aug 15, 2014
7db4e1b
Adding bcm2835-sdhost driver, and an overlay to enable it
Mar 25, 2015
ee90627
mmc: Add MMC_QUIRK_ERASE_BROKEN for some cards
May 11, 2016
ef3ac08
cma: Add vc_cma driver to enable use of CMA
popcornmix Jul 2, 2013
0bd5408
bcm2708: alsa sound driver
popcornmix Mar 26, 2012
b6d03ca
bcm2708 vchiq driver
popcornmix Jul 2, 2013
fbb2607
vc_mem: Add vc_mem driver
popcornmix Jun 17, 2015
0fc55ce
vcsm: VideoCore shared memory service for BCM2835
Jul 22, 2014
1d1ca9b
Add /dev/gpiomem device for rootless user GPIO access
Wren6991 Aug 21, 2015
0082f04
Add SMI driver
Wren6991 Sep 5, 2015
713419e
MISC: bcm2835: smi: use clock manager and fix reload issues
msperl Apr 26, 2016
3f7d9f7
Add SMI NAND driver
Wren6991 Sep 5, 2015
d6f4a06
lirc: added support for RaspberryPi GPIO
Jun 16, 2012
f70cbd5
Add cpufreq driver
popcornmix Jul 2, 2013
8811c2a
Added hwmon/thermal driver for reporting core temperature. Thanks Dorian
popcornmix Mar 26, 2013
536501b
Add Chris Boot's i2c driver
popcornmix Jun 17, 2015
9a9d5a7
char: broadcom: Add vcio module
notro Jun 26, 2015
d52b903
firmware: bcm2835: Support ARCH_BCM270x
notro Jun 26, 2015
7731a04
bcm2835: add v4l2 camera device
Jan 30, 2013
0395c4b
scripts: Add mkknlimg and knlinfo scripts from tools repo
May 11, 2015
0e03bed
scripts/dtc: Update to upstream version 1.4.1
Aug 10, 2015
c9340cb
BCM2708: Add core Device Tree support
notro Jul 9, 2014
395090b
kbuild: Ignore dtco targets when filtering symbols
Aug 24, 2016
111bd70
BCM270X_DT: Add a .dtbo target, use for overlays
Mar 13, 2015
3ab61b7
BCM270X_DT: Don't generate "linux,phandle" props
Apr 8, 2016
1c58afc
BCM270x_DT: Add pwr_led, and the required "input" trigger
Feb 6, 2015
1bd0132
fbdev: add FBIOCOPYAREA ioctl
ssvb Jun 17, 2013
e9b8bac
Speed up console framebuffer imageblit function
hglm Jun 20, 2013
b085bb2
enabling the realtime clock 1-wire chip DS1307 and 1-wire on GPIO4 (a…
popcornmix May 8, 2013
70adaca
Added Device IDs for August DVB-T 205
popcornmix Jul 2, 2013
8e78769
config: Enable CONFIG_MEMCG, but leave it disabled (due to memory cos…
popcornmix Dec 18, 2013
6c72f3f
hid: Reduce default mouse polling interval to 60Hz
popcornmix Jul 14, 2014
5f940b1
rpi-ft5406: Add touchscreen driver for pi LCD display
ghollingworth May 12, 2015
ccd9b05
Improve __copy_to_user and __copy_from_user performance
Oct 13, 2014
345fee2
gpio-poweroff: Allow it to work on Raspberry Pi
Jun 25, 2015
9a01a63
mfd: Add Raspberry Pi Sense HAT core driver
pelwell Jul 14, 2015
1bf420d
ASoC: Add support for HifiBerry DAC
koalo Nov 22, 2013
4ca5495
ASoC: Add support for Rpi-DAC
koalo Jan 25, 2016
4aef8b5
ASoC: wm8804: Implement MCLK configuration options, add 32bit support…
Jan 15, 2014
9e3c30a
ASoC: BCM:Add support for HiFiBerry Digi. Driver is based on the patc…
Jan 15, 2014
03cd05b
Add IQaudIO Sound Card support for Raspberry Pi
Mar 8, 2014
e4d8f7f
iqaudio-dac: Compile fix - untested
popcornmix Jul 25, 2016
cbc6f65
Added support for HiFiBerry DAC+
Aug 4, 2014
963cab2
Added driver for HiFiBerry Amp amplifier add-on board
Aug 4, 2014
f8ad24d
Added HiFiBerry Digi+ Pro driver
Jul 26, 2016
3bc5cb4
Update ds1307 driver for device-tree support
ryco-dev Feb 1, 2015
699b7c3
Add driver for rpi-proto
Mar 25, 2015
e09cc76
RaspiDAC3 support
Aug 24, 2015
1dbd08f
tpa6130a2: Add headphone switch control
popcornmix Aug 9, 2016
658ace5
Revert "tpa6130a2: Add headphone switch control"
popcornmix Aug 9, 2016
5cb20bd
Add Support for JustBoom Audio boards
shawaj Apr 7, 2016
576de25
ARM: adau1977-adc: Add basic machine driver for adau1977 codec driver.
andrey2805 May 4, 2016
1c980a6
New AudioInjector.net Pi soundcard with low jitter audio in and out.
flatmax May 16, 2016
4c7b311
Add IQAudIO Digi WM8804 board support
DigitalDreamtime Jun 30, 2016
665cec3
New driver for RRA DigiDAC1 soundcard using WM8741 + WM8804
escalator2015 May 24, 2016
8347646
Add support for Dion Audio LOCO DAC-AMP HAT
DigitalDreamtime Jul 2, 2016
aeb186d
Allo Piano DAC boards: Initial 2 channel (stereo) support (#1645)
clivem Sep 19, 2016
3b04cf9
rpi_display: add backlight driver and overlay
Oct 21, 2015
dd61ebb
bcm2835-virtgpio: Virtual GPIO driver
popcornmix Feb 23, 2016
c34db19
DRM_VC4: Allow to be built for ARCH_BCM270x
popcornmix Mar 4, 2016
2b324db
amba_pl011: Don't use DT aliases for numbering
Feb 23, 2016
d327ba4
net: Add non-mainline source for rtl8192cu wlan
popcornmix Sep 3, 2012
80fc661
net: Fix rtl8192cu build errors on other platforms
Mar 23, 2016
15123b7
OF: DT-Overlay configfs interface
pantoniou Dec 3, 2014
728c0ae
brcm: adds support for BCM43341 wifi
Cheong2K Feb 26, 2016
9953a23
brcmfmac: Disable power management
Mar 9, 2016
56e63a0
brcmfmac: Use original country code as a fallback
Apr 28, 2016
de9137a
brcmfmac: Plug memory leak in brcmf_fill_bss_param
May 19, 2016
057bfd6
brcmfmac: do not use internal roaming engine by default
popcornmix Sep 13, 2016
95a81ac
brcmfmac: Change stop_ap sequence
Aug 31, 2016
2cb6a87
hci_h5: Don't send conf_req when ACTIVE
Dec 17, 2015
fb65f56
drm/vc4: Add a debugfs node for tracking execution state.
anholt Jan 22, 2016
889ce11
drm/vc4: Include vc4_drm.h in uapi in downstream build.
anholt Jan 25, 2016
18bc2eb
drm/vc4: Force HDMI to connected.
anholt Oct 14, 2015
73dc91c
config: Add default configs
popcornmix Apr 13, 2015
d3d0a59
Add arm64 configuration and device tree differences.
Electron752 Aug 24, 2016
2fb843e
bcm2835-cpufreq: Only report a single frequency when max and min freq…
popcornmix Oct 5, 2016
ee19734
scripts/mkknlimg: Change string for DDT detection
Oct 7, 2016
aeb5fba
watchdog: bcm2835: Support setting reboot partition
notro Oct 7, 2016
edf66aa
bcm270x: Use watchdog for reboot/poweroff
notro Oct 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Example:

bcm2835_i2s: i2s@7e203000 {
compatible = "brcm,bcm2835-i2s";
reg = < 0x7e203000 0x20>,
< 0x7e101098 0x02>;
reg = < 0x7e203000 0x24>,
< 0x7e101098 0x08>;

dmas = <&dma 2>,
<&dma 3>;
Expand Down
17 changes: 17 additions & 0 deletions Documentation/devicetree/bindings/misc/brcm,bcm2835-smi-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
* Broadcom BCM2835 SMI character device driver.

SMI or secondary memory interface is a peripheral specific to certain Broadcom
SOCs, and is helpful for talking to things like parallel-interface displays
and NAND flashes (in fact, most things with a parallel register interface).

This driver adds a character device which provides a user-space interface to
an instance of the SMI driver.

Required properties:
- compatible: "brcm,bcm2835-smi-dev"
- smi_handle: a phandle to the smi node.

Optional properties:
- None.


48 changes: 48 additions & 0 deletions Documentation/devicetree/bindings/misc/brcm,bcm2835-smi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
* Broadcom BCM2835 SMI driver.

SMI or secondary memory interface is a peripheral specific to certain Broadcom
SOCs, and is helpful for talking to things like parallel-interface displays
and NAND flashes (in fact, most things with a parallel register interface).

Required properties:
- compatible: "brcm,bcm2835-smi"
- reg: Should contain location and length of SMI registers and SMI clkman regs
- interrupts: *the* SMI interrupt.
- pinctrl-names: should be "default".
- pinctrl-0: the phandle of the gpio pin node.
- brcm,smi-clock-source: the clock source for clkman
- brcm,smi-clock-divisor: the integer clock divisor for clkman
- dmas: the dma controller phandle and the DREQ number (4 on a 2835)
- dma-names: the name used by the driver to request its channel.
Should be "rx-tx".

Optional properties:
- None.

Examples:

8 data pin configuration:

smi: smi@7e600000 {
compatible = "brcm,bcm2835-smi";
reg = <0x7e600000 0x44>, <0x7e1010b0 0x8>;
interrupts = <2 16>;
pinctrl-names = "default";
pinctrl-0 = <&smi_pins>;
brcm,smi-clock-source = <6>;
brcm,smi-clock-divisor = <4>;
dmas = <&dma 4>;
dma-names = "rx-tx";

status = "okay";
};

smi_pins: smi_pins {
brcm,pins = <2 3 4 5 6 7 8 9 10 11 12 13 14 15>;
/* Alt 1: SMI */
brcm,function = <5 5 5 5 5 5 5 5 5 5 5 5 5 5>;
/* /CS, /WE and /OE are pulled high, as they are
generally active low signals */
brcm,pull = <2 2 2 2 2 2 0 0 0 0 0 0 0 0>;
};

42 changes: 42 additions & 0 deletions Documentation/devicetree/bindings/mtd/brcm,bcm2835-smi-nand.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
* BCM2835 SMI NAND flash

This driver is a shim between the BCM2835 SMI driver (SMI is a peripheral for
talking to parallel register interfaces) and Linux's MTD layer.

Required properties:
- compatible: "brcm,bcm2835-smi-nand"
- status: "okay"

Optional properties:
- partition@n, where n is an integer from a consecutive sequence starting at 0
- Difficult to store partition table on NAND device - normally put it
in the source code, kernel bootparams, or device tree (the best way!)
- Sub-properties:
- label: the partition name, as shown by mtdinfo /dev/mtd*
- reg: the size and offset of this partition.
- (optional) read-only: an empty property flagging as read only

Example:

nand: flash@0 {
compatible = "brcm,bcm2835-smi-nand";
status = "okay";

partition@0 {
label = "stage2";
// 128k
reg = <0 0x20000>;
read-only;
};
partition@1 {
label = "firmware";
// 16M
reg = <0x20000 0x1000000>;
read-only;
};
partition@2 {
label = "root";
// 2G
reg = <0x1020000 0x80000000>;
};
};
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/sound/brcm,bcm2835-i2s.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Example:

bcm2835_i2s: i2s@7e203000 {
compatible = "brcm,bcm2835-i2s";
reg = <0x7e203000 0x20>,
<0x7e101098 0x02>;
reg = <0x7e203000 0x24>,
<0x7e101098 0x08>;

dmas = <&dma 2>,
<&dma 3>;
Expand Down
31 changes: 31 additions & 0 deletions Documentation/devicetree/configfs-overlays.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Howto use the configfs overlay interface.

A device-tree configfs entry is created in /config/device-tree/overlays
and and it is manipulated using standard file system I/O.
Note that this is a debug level interface, for use by developers and
not necessarily something accessed by normal users due to the
security implications of having direct access to the kernel's device tree.

* To create an overlay you mkdir the directory:

# mkdir /config/device-tree/overlays/foo

* Either you echo the overlay firmware file to the path property file.

# echo foo.dtbo >/config/device-tree/overlays/foo/path

* Or you cat the contents of the overlay to the dtbo file

# cat foo.dtbo >/config/device-tree/overlays/foo/dtbo

The overlay file will be applied, and devices will be created/destroyed
as required.

To remove it simply rmdir the directory.

# rmdir /config/device-tree/overlays/foo

The rationalle of the dual interface (firmware & direct copy) is that each is
better suited to different use patterns. The firmware interface is what's
intended to be used by hardware managers in the kernel, while the copy interface
make sense for developers (since it avoids problems with namespaces).
60 changes: 60 additions & 0 deletions Documentation/video4linux/bcm2835-v4l2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

BCM2835 (aka Raspberry Pi) V4L2 driver
======================================

1. Copyright
============

Copyright © 2013 Raspberry Pi (Trading) Ltd.

2. License
==========

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

3. Quick Start
==============

You need a version 1.0 or later of v4l2-ctl, available from:
git://git.linuxtv.org/v4l-utils.git

$ sudo modprobe bcm2835-v4l2

Turn on the overlay:

$ v4l2-ctl --overlay=1

Turn off the overlay:

$ v4l2-ctl --overlay=0

Set the capture format for video:

$ v4l2-ctl --set-fmt-video=width=1920,height=1088,pixelformat=4

(Note: 1088 not 1080).

Capture:

$ v4l2-ctl --stream-mmap=3 --stream-count=100 --stream-to=somefile.h264

Stills capture:

$ v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3
$ v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=somefile.jpg

List of available formats:

$ v4l2-ctl --list-formats
49 changes: 49 additions & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,52 @@ choice
default ARM_SINGLE_ARMV7M if !MMU
default ARCH_MULTIPLATFORM if MMU

config ARCH_BCM2708
bool "Broadcom BCM2708 family"
select CPU_V6
select ARM_AMBA
select CLKSRC_MMIO
select CLKSRC_OF if OF
select HAVE_SCHED_CLOCK
select NEED_MACH_GPIO_H
select NEED_MACH_MEMORY_H
select COMMON_CLK
select ARCH_HAS_CPUFREQ
select GENERIC_CLOCKEVENTS
select ARM_ERRATA_411920
select MACH_BCM2708
select MULTI_IRQ_HANDLER
select SPARSE_IRQ
select VC4
select FIQ
help
This enables support for Broadcom BCM2708 boards.

config ARCH_BCM2709
bool "Broadcom BCM2709 family"
select CPU_V7
select HAVE_SMP
select ARM_AMBA
select MIGHT_HAVE_CACHE_L2X0
select HAVE_SCHED_CLOCK
select NEED_MACH_MEMORY_H
select NEED_MACH_IO_H
select COMMON_CLK
select ARCH_HAS_CPUFREQ
select GENERIC_CLOCKEVENTS
select MACH_BCM2709
select MULTI_IRQ_HANDLER
select SPARSE_IRQ
select MFD_SYSCON
select VC4
select FIQ
select USE_OF
select ARCH_REQUIRE_GPIOLIB
select PINCTRL
select PINCTRL_BCM2835
help
This enables support for Broadcom BCM2709 boards.

config ARCH_MULTIPLATFORM
bool "Allow multiple platforms to be selected"
depends on MMU
Expand Down Expand Up @@ -711,6 +757,9 @@ config ARCH_VIRT
# Kconfigs may be included either alphabetically (according to the
# plat- suffix) or along side the corresponding mach-* source.
#
source "arch/arm/mach-bcm2708/Kconfig"
source "arch/arm/mach-bcm2709/Kconfig"

source "arch/arm/mach-mvebu/Kconfig"

source "arch/arm/mach-alpine/Kconfig"
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,14 @@ choice
options; the platform specific options are deprecated
and will be soon removed.

config DEBUG_BCM2708_UART0
bool "Broadcom BCM270X UART0 (PL011)"
depends on ARCH_BCM2708 || ARCH_BCM2709
help
Say Y here if you want the debug print routines to direct
their output to UART 0. The port must have been initialised
by the boot-loader before use.

endchoice

config DEBUG_AT91_UART
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000

# Machine directory name. This list is sorted alphanumerically
# by CONFIG_* macro name.
machine-$(CONFIG_ARCH_BCM2708) += bcm2708
machine-$(CONFIG_ARCH_BCM2709) += bcm2709
machine-$(CONFIG_ARCH_ALPINE) += alpine
machine-$(CONFIG_ARCH_ARTPEC) += artpec
machine-$(CONFIG_ARCH_AT91) += at91
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ zImage
xipImage
bootpImage
uImage
*.dtb
*.dtb*
32 changes: 32 additions & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
ifeq ($(CONFIG_OF),y)

dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b.dtb
dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b-plus.dtb
dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-cm.dtb
dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-cm.dtb
dtb-$(CONFIG_ARCH_BCM2709) += bcm2709-rpi-2-b.dtb
dtb-$(CONFIG_ARCH_BCM2709) += bcm2710-rpi-3-b.dtb
dtb-$(CONFIG_ARCH_BCM2709) += bcm2710-rpi-cm3.dtb

# Raspberry Pi
ifeq ($(CONFIG_ARCH_BCM2708),y)
RPI_DT_OVERLAYS=y
endif
ifeq ($(CONFIG_ARCH_BCM2709),y)
RPI_DT_OVERLAYS=y
endif
ifeq ($(CONFIG_ARCH_BCM2835),y)
RPI_DT_OVERLAYS=y
endif
ifeq ($(RPI_DT_OVERLAYS),y)
dts-dirs += overlays
endif

dtb-$(CONFIG_ARCH_ALPINE) += \
alpine-db.dtb
dtb-$(CONFIG_MACH_ARTPEC6) += \
Expand Down Expand Up @@ -919,10 +941,20 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
aspeed-ast2500-evb.dtb

targets += dtbs dtbs_install
targets += $(dtb-y)

endif

dtstree := $(srctree)/$(src)
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb

# Enable fixups to support overlays on BCM2708 platforms
ifeq ($(RPI_DT_OVERLAYS),y)
DTC_FLAGS ?= -@ -H epapr
endif
Loading