summaryrefslogtreecommitdiffstats
path: root/drivers/of/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* firmware: add support to load firmware from dt overlayMichael Tretter2019-09-161-1/+1
| | | | | | | | | | | | | fpga-region device tree nodes have the firmware-name property that contains the file name of firmware in the firmware search path (but not the path) that shall be loaded before the overlay is applied. Add the of_firmware_load_overlay() function that accepts an overlay and a firmware search path, finds the responsible firmware_mgr and loads the firmware. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: add support for devicetree overlaysMichael Tretter2019-09-161-0/+1
| | | | | | | | | | | | | | | The devicetree overlay support is based on the Linux driver for device tree overlays, but many features that are not required in Barebox are left out. Unlike Linux, which applies the overlay to the live devicetree, Barebox registers a fixup for the overlay which is applied with other fixups to whatever tree is fixed. This is necessary to apply the overlay to devicetrees that are passed to Linux, which might differ from the devicetree that is currently live in Barebox. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pci'Sascha Hauer2016-05-091-1/+1
|\
| * OF: Port of_match_device() and of_device_get_match_data()Andrey Smirnov2016-04-281-1/+1
| | | | | | | | | | | | | | | | | | Port of_match_device() and of_device_get_match_data() from Linux kernel code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Acked-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | drivers/of: Always compile of_path.c with OF supportSascha Hauer2016-04-281-2/+2
|/ | | | | | | of_find_path() is a OF specific library function, so always compile it when OF support is enabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: pci: import of_pci_get_devfn()Sebastian Hesselbarth2014-07-311-0/+1
| | | | | | | | | Marvell MVEBU PCIe driver requires of_pcie_get_devfn(), import it from Linux. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: gpio: Add Kconfig variable to depend onSascha Hauer2013-11-251-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/of'Sascha Hauer2013-08-051-0/+1
|\ | | | | | | | | | | Conflicts: arch/arm/boards/freescale-mx53-loco/board.c drivers/of/Makefile
| * Add configurability via devicetreeSascha Hauer2013-07-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the possibility to configure the place for the environment from the devicetree and to partition devices from the devicetree. Configuration has the general form of devices with a regular compatible property. This allows to later add additional drivers or drivers with different behaviour (for example to add support for redundant environment). The configuration is all in the /chosen/barebox/ hierarchy of the devicetree. This separates the configuration from the hardware description. Also it makes it possible to store the configuration in a completely separate devicetree (or devicetree overlay). For the same reason all configuration is done using nodepathes rather than phandles. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mtd'Sascha Hauer2013-08-051-0/+1
|\ \ | |/ |/|
| * of: add mtd of helpersSascha Hauer2013-07-161-0/+1
| | | | | | | | | | | | Directly taken from the kernel Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | OF: gpio: convert DT based gpio handling to new OF APISebastian Hesselbarth2013-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | This creates a Linux OF API compatible counterpart of of_get_named_gpio_flags. Existing of_get_named_gpio is converted to a static inline function, which is in the corresponding of_gpio.h include. While at it, drivers/of/gpio.c is also renamed to drivers/of/of_gpio.c to follow the of_ prefix naming scheme. The new include is also added to existing users of of_get_named_gpio. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | OF: import bus/device related functions from Linux OF APISebastian Hesselbarth2013-07-051-1/+1
| | | | | | | | | | | | | | | | This imports some bus and device related functions from Linux OF API with some modifcations for Barebox. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | OF: import address related functions from Linux OF APISebastian Hesselbarth2013-07-051-1/+1
|/ | | | | | | | | | This imports drivers/of/address.c from Linux with some minor modifications. of_translate_address is not yet enabled and PCI and ISA related bus translations have not been imported. Also, a corresponding include header is created with prototypes and non-OF function stubs. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: separate out "generic" memory bank addingAntony Pavlov2013-05-131-0/+1
| | | | | | | | | | | | | | | This patch separates out the "generic" memory segment registration function (of_add_memory_bank()) from of_add_memory(). The MIPS architecture has different view on memory resources than the ARM and PPC architectures so the "generic" of_add_memory_bank() is unusable for the MIPS architecture. We can add MIPS-specific of_add_memory_bank() into arch/mips code. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of/net: Add net related of helpersSascha Hauer2013-04-041-0/+1
| | | | | | | | of_get_phy_mode to parse the phy mode from the devicetree and of_get_mac_address to parse a MAC address from the devicetree. Directly taken from the Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: move flat devicetree functions to separate fileSascha Hauer2013-03-061-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of gpio: Build gpio helper only when gpiolib is selectedSascha Hauer2012-10-261-1/+1
| | | | | | Otherwise the functions needed by the helper won't be available. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: Add devicetree partition parsingSascha Hauer2012-09-141-0/+1
| | | | | | Helper code to probe mtd partitions from the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: add devicetree probing supportSascha Hauer2012-09-141-0/+2
This adds code to probe devices from a devicetree. Most helper functions are directly imported from Linux. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>