diff options
| author | fishsoupisgood <github@madingley.org> | 2019-04-29 01:17:54 +0100 | 
|---|---|---|
| committer | fishsoupisgood <github@madingley.org> | 2019-05-27 03:43:43 +0100 | 
| commit | 3f2546b2ef55b661fd8dd69682b38992225e86f6 (patch) | |
| tree | 65ca85f13617aee1dce474596800950f266a456c /roms/u-boot/arch/x86/dts | |
| download | qemu-master.tar.gz qemu-master.tar.bz2 qemu-master.zip  | |
Diffstat (limited to 'roms/u-boot/arch/x86/dts')
| -rw-r--r-- | roms/u-boot/arch/x86/dts/.gitignore | 1 | ||||
| -rw-r--r-- | roms/u-boot/arch/x86/dts/Makefile | 12 | ||||
| -rw-r--r-- | roms/u-boot/arch/x86/dts/alex.dts | 24 | ||||
| -rw-r--r-- | roms/u-boot/arch/x86/dts/coreboot.dtsi | 16 | ||||
| -rw-r--r-- | roms/u-boot/arch/x86/dts/link.dts | 35 | ||||
| -rw-r--r-- | roms/u-boot/arch/x86/dts/skeleton.dtsi | 13 | 
6 files changed, 101 insertions, 0 deletions
diff --git a/roms/u-boot/arch/x86/dts/.gitignore b/roms/u-boot/arch/x86/dts/.gitignore new file mode 100644 index 00000000..b60ed208 --- /dev/null +++ b/roms/u-boot/arch/x86/dts/.gitignore @@ -0,0 +1 @@ +*.dtb diff --git a/roms/u-boot/arch/x86/dts/Makefile b/roms/u-boot/arch/x86/dts/Makefile new file mode 100644 index 00000000..48265ef6 --- /dev/null +++ b/roms/u-boot/arch/x86/dts/Makefile @@ -0,0 +1,12 @@ +dtb-y += link.dtb \ +	alex.dtb + +targets += $(dtb-y) + +DTC_FLAGS += -R 4 -p 0x1000 + +PHONY += dtbs +dtbs: $(addprefix $(obj)/, $(dtb-y)) +	@: + +clean-files := *.dtb diff --git a/roms/u-boot/arch/x86/dts/alex.dts b/roms/u-boot/arch/x86/dts/alex.dts new file mode 100644 index 00000000..2f135446 --- /dev/null +++ b/roms/u-boot/arch/x86/dts/alex.dts @@ -0,0 +1,24 @@ +/dts-v1/; + +/include/ "coreboot.dtsi" + +/ { +	#address-cells = <1>; +	#size-cells = <1>; +	model = "Google Alex"; +	compatible = "google,alex", "intel,atom-pineview"; + +	config { +	       silent_console = <0>; +	}; + +	gpio: gpio {}; + +	serial { +		reg = <0x3f8 8>; +		clock-frequency = <115200>; +	}; + +	chosen { }; +	memory { device_type = "memory"; reg = <0 0>; }; +}; diff --git a/roms/u-boot/arch/x86/dts/coreboot.dtsi b/roms/u-boot/arch/x86/dts/coreboot.dtsi new file mode 100644 index 00000000..4862a597 --- /dev/null +++ b/roms/u-boot/arch/x86/dts/coreboot.dtsi @@ -0,0 +1,16 @@ +/include/ "skeleton.dtsi" + +/ { +	aliases { +		console = "/serial"; +	}; + +	serial { +		compatible = "ns16550"; +		reg-shift = <1>; +		io-mapped = <1>; +		multiplier = <1>; +		baudrate = <115200>; +		status = "disabled"; +	}; +}; diff --git a/roms/u-boot/arch/x86/dts/link.dts b/roms/u-boot/arch/x86/dts/link.dts new file mode 100644 index 00000000..4a37dac4 --- /dev/null +++ b/roms/u-boot/arch/x86/dts/link.dts @@ -0,0 +1,35 @@ +/dts-v1/; + +/include/ "coreboot.dtsi" + +/ { +	#address-cells = <1>; +	#size-cells = <1>; +	model = "Google Link"; +	compatible = "google,link", "intel,celeron-ivybridge"; + +	config { +	       silent_console = <0>; +	}; + +	gpio: gpio {}; + +	serial { +		reg = <0x3f8 8>; +		clock-frequency = <115200>; +	}; + +	chosen { }; +	memory { device_type = "memory"; reg = <0 0>; }; + +	spi { +		#address-cells = <1>; +		#size-cells = <0>; +		compatible = "intel,ich9"; +		spi-flash@0 { +			reg = <0>; +			compatible = "winbond,w25q64", "spi-flash"; +			memory-map = <0xff800000 0x00800000>; +		}; +	}; +}; diff --git a/roms/u-boot/arch/x86/dts/skeleton.dtsi b/roms/u-boot/arch/x86/dts/skeleton.dtsi new file mode 100644 index 00000000..b41d241d --- /dev/null +++ b/roms/u-boot/arch/x86/dts/skeleton.dtsi @@ -0,0 +1,13 @@ +/* + * Skeleton device tree; the bare minimum needed to boot; just include and + * add a compatible value.  The bootloader will typically populate the memory + * node. + */ + +/ { +	#address-cells = <1>; +	#size-cells = <1>; +	chosen { }; +	aliases { }; +	memory { device_type = "memory"; reg = <0 0>; }; +};  | 
