summaryrefslogtreecommitdiffstats
path: root/drivers/of/Kconfig
Commit message (Collapse)AuthorAgeFilesLines
* dtc: optionally add add __symbols__ to build-in devicetreeMichael Tretter2019-09-161-0/+16
| | | | | | | | | | | | | | | | The devicetree overlay driver requires the __symbols__ node to resolve phandles to the base devicetree. If Barebox has to apply the overlay to the live devicetree, the build-in devicetree must be built with the __symbols__ node. It is configurable, because adding __symbols__ significantly increases the size of the devicetree binary. When configuring Barebox, a developer should be able to enable or disable devicetree overlay support and as this only affects the build-in devicetree, which is linked to the image anyway, use a Kconfig item for configuring the __symbols__. 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/+9
| | | | | | | | | | | | | | | 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>
* Add initial RISC-V architecture supportAntony Pavlov2019-01-071-1/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: move x86 efi boot support to x86 archJean-Christophe PLAGNIOL-VILLARD2017-02-271-1/+1
| | | | | | | prepare to drop the efi arch as efi boot up is not arch sepecific Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* environment: Support env from file in a file-system via device treeTrent Piepho2016-01-081-0/+7
| | | | | | | | | | | | | | | Current barebox,environment node only allows specifying a raw device or partition to load an environment from. Some boards, like OMAP and SoCFPGA, instead want to use a file located in a FAT filesystem. Extend the device tree bindings with a new property 'file-path' that will trigger this behavior. This allows any board using this driver to get the env from a file or from a raw device, instead of each machine type being either raw device only or file only. Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: use OFTREE_MEM_GENERIC for the sandboxJan Luebbe2014-11-071-1/+1
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: import pci range parser from linuxLucas Stach2014-10-081-0/+1
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* openrisc: add initial device tree supportAntony Pavlov2014-09-091-1/+1
| | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/marvell'Sascha Hauer2014-08-071-0/+6
|\
| * of: pci: import of_pci_get_devfn()Sebastian Hesselbarth2014-07-311-0/+6
| | | | | | | | | | | | | | | | | | 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>
* | Add initial EFI architecture supportSascha Hauer2014-07-161-1/+1
|/ | | | | | | This adds support for running barebox in an EFI environment on X86 PC hardware. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers: of: import PCI bus specific translatorSebastian Hesselbarth2014-06-251-0/+3
| | | | | | | | | | | DT PCI address translation needs a special handling. This imports the corresponding translator into of/address.c but makes it selectable through Kconfig. Compared to the Linux version, we don't check for struct device_node's type which does not exist on Barebox but directly for device_type property set to "pci". Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: gpio: Fix Kconfig variables to depend onAntony Pavlov2013-12-121-2/+2
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: gpio: Add Kconfig variable to depend onSascha Hauer2013-11-251-0/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER optionDmitry Smagin2013-09-181-0/+1
| | | | | | | | | | This patch fixes linker error: barebox.c:(.text.environment_probe+0x48): undefined reference to `default_environment_path` Which appears when compiling env-less boards with enabled devicetree. Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add configurability via devicetreeSascha Hauer2013-07-181-0/+9
| | | | | | | | | | | | | | | | | | 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>
* ARM: build dtbs depending on CONFIG_OFTREESascha Hauer2013-06-261-0/+1
| | | | | | | | | The upcoming multi image support will need devicetree binary blobs even when there is no builtin dtb. Instead of depending on CONFIG_BUILTIN_DTB depend on CONFIG_OFTREE and let this option select DTC. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: separate out "generic" memory bank addingAntony Pavlov2013-05-131-0/+5
| | | | | | | | | | | | | | | 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/+4
| | | | | | | | 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>
* scripts: Add dtcSascha Hauer2013-03-121-0/+4
| | | | | | | This adds the devicetree compiler to barebox. This is taken without changes from Linux v3.8 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: remove unused libfdtSascha Hauer2013-03-061-1/+0
| | | | | | | Now that we are completely independent of libfdt remove the unused code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: make OFDEVICE a user selectable optionSascha Hauer2013-03-061-1/+2
| | | | | | | | | | OFDEVICE decides whether or not we compile in support for probing devices from the devicetree. Let the user decide this explicitly. This makes the oftree, of_node and of_property commands independent of devicetree device support since being able to manipulate devicetrees has nothing to do with probing devices from the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: move OFTREE Kconfig option to drivers/of/Sascha Hauer2013-03-061-0/+4
| | | | 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>