mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 11:26:54 +07:00
5a5056cccf
This adds device tree support for the U300 timer, by making the memory base offset and IRQ dynamically assigned, then optionally looking them up from the device tree. Since the timer needs to be registered before any platform devices are created, we will go into the device tree and look up the "/timer@c0014000" node and read our base address and IRQ from there. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
19 lines
542 B
Plaintext
19 lines
542 B
Plaintext
ST-Ericsson U300 apptimer
|
|
|
|
Required properties:
|
|
|
|
- compatible : should be "stericsson,u300-apptimer"
|
|
- reg : Specifies base physical address and size of the registers.
|
|
- interrupts : A list of 4 interrupts; one for each subtimer. These
|
|
are, in order: OS (operating system), DD (device driver) both
|
|
adopted for EPOC/Symbian with two specific IRQs for these tasks,
|
|
then GP1 and GP2, which are general-purpose timers.
|
|
|
|
Example:
|
|
|
|
timer {
|
|
compatible = "stericsson,u300-apptimer";
|
|
reg = <0xc0014000 0x1000>;
|
|
interrupts = <24 25 26 27>;
|
|
};
|