mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-27 04:18:51 +09:00
![Paul Burton](/assets/img/avatar_default.png)
Make use of device model & device tree to probe the UART driver. This is the initial step in bringing Malta up to date with driver model, and allows for cleaner handling of the different I/O addresses for different system controllers by specifying the ISA bus address instead of a translated memory address. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
33 lines
515 B
Plaintext
33 lines
515 B
Plaintext
/dts-v1/;
|
|
|
|
/memreserve/ 0x00000000 0x00001000; /* Exception vectors */
|
|
/memreserve/ 0x000f0000 0x00010000; /* PIIX4 ISA memory */
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "mti,malta";
|
|
|
|
chosen {
|
|
stdout-path = &uart0;
|
|
};
|
|
|
|
isa@0 {
|
|
compatible = "isa";
|
|
#address-cells = <2>;
|
|
#size-cells = <1>;
|
|
ranges = <1 0 0 0x1000>;
|
|
|
|
uart0: serial@3f8 {
|
|
compatible = "ns16550a";
|
|
|
|
reg = <1 0x3f8 0x40>;
|
|
reg-shift = <0>;
|
|
|
|
clock-frequency = <1843200>;
|
|
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
};
|
|
};
|