mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
MIPS: add initial infrastructure for device-tree files
Prepare sub-folder for device-tree files. Make support for device-tree on MIPS available in Kbuild/Kconfig. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
This commit is contained in:
parent
e92d9124f8
commit
0fc13a9093
7 changed files with 44 additions and 1 deletions
|
@ -55,6 +55,7 @@ config MIPS
|
|||
select HAVE_PRIVATE_LIBGCC
|
||||
select HAVE_GENERIC_BOARD
|
||||
select SYS_GENERIC_BOARD
|
||||
select SUPPORT_OF_CONTROL
|
||||
|
||||
config NDS32
|
||||
bool "NDS32 architecture"
|
||||
|
|
|
@ -72,6 +72,7 @@ PF_ABICALLS := -mabicalls
|
|||
PF_PIC := -fpic
|
||||
PF_PIE := -pie
|
||||
PF_OBJCOPY := -j .got -j .u_boot_list -j .rel.dyn -j .padding
|
||||
PF_OBJCOPY += -j .dtb.init.rodata
|
||||
endif
|
||||
|
||||
PLATFORM_CPPFLAGS += -G 0 $(PF_ABICALLS) $(PF_PIC)
|
||||
|
|
1
arch/mips/dts/.gitignore
vendored
Normal file
1
arch/mips/dts/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.dtb
|
16
arch/mips/dts/Makefile
Normal file
16
arch/mips/dts/Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
dtb-y +=
|
||||
|
||||
targets += $(dtb-y)
|
||||
|
||||
# Add any required device tree compiler flags here
|
||||
DTC_FLAGS +=
|
||||
|
||||
PHONY += dtbs
|
||||
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
||||
@:
|
||||
|
||||
clean-files := *.dtb
|
1
arch/mips/dts/include/dt-bindings
Symbolic link
1
arch/mips/dts/include/dt-bindings
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../include/dt-bindings
|
23
arch/mips/dts/skeleton.dtsi
Normal file
23
arch/mips/dts/skeleton.dtsi
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Skeleton device tree; the bare minimum needed to boot; just include and
|
||||
* add a compatible value. The bootloader will typically populate the memory
|
||||
* node.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
/ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
chosen {
|
||||
};
|
||||
|
||||
aliases {
|
||||
};
|
||||
|
||||
memory {
|
||||
device_type = "memory";
|
||||
reg = <0 0>;
|
||||
};
|
||||
};
|
|
@ -45,4 +45,4 @@ dtbs: $(obj)/dt.dtb
|
|||
clean-files := dt.dtb.S
|
||||
|
||||
# Let clean descend into dts directories
|
||||
subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/sandbox/dts ../arch/x86/dts
|
||||
subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/mips/dts ../arch/sandbox/dts ../arch/x86/dts
|
||||
|
|
Loading…
Reference in a new issue