upstream master
Vlad Zakharov (3):
drivers: timer: Introduce ARC timer driver
arc: dts: separate single axs10x.dts file
arc: use timer driver for ARC boards
arch/Kconfig | 3 +
arch/arc/Kconfig | 9 ++-
arch/a
urces as it is referenced via phandle from timer node in common
skeleton.dtsi file.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v2..v3:
- Rebase on top of upstream master
arch/arc/Kconfig | 9 --
arch/arc/dts/Makefile | 3 +-
arch/arc/dts/abilis_
removes legacy CONFIG_SYS_TIMER_RATE config symbol from
axs10x.h, tb100.h and nsim.h configs files as it is no longer required.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v2..v3:
- Rebase on top of upstream master
No changes compared to v1
arch/Kconfig | 3
timers should be mentioned in board's Device Tree
description.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v2..v3:
- Rebase on top of upstream master
arch/arc/include/asm/arcregs.h | 4 +
doc/device-tree-bindings/timer/arc_timer.txt | 24 ++
dr
he following:
1. Separate axs10x.dts device tree in order to reflect the real
structure of AXS101 and AXS103 development boards.
2. Add timer device to skeleton ARC device tree.
3. Add core_clk devices to all ARC boards as it is referenced from
timer device.
Vlad Zakharov (3):
drivers: timer
urces as it is referenced via phandle from timer node in common
skeleton.dtsi file.
Signed-off-by: Vlad Zakharov
---
arch/arc/Kconfig | 9 --
arch/arc/dts/Makefile | 3 +-
arch/arc/dts/abilis_tb100.dts | 12 ++--
arch/arc/dts/axc001.dtsi | 19 +
arc
removes legacy CONFIG_SYS_TIMER_RATE config symbol from
axs10x.h, tb100.h and nsim.h configs files as it is no longer required.
Signed-off-by: Vlad Zakharov
---
arch/Kconfig | 3 +++
arch/arc/lib/Makefile| 1 -
arch/arc/lib/timer.c | 24
configs
timers should be mentioned in board's Device Tree
description.
Signed-off-by: Vlad Zakharov
---
arch/arc/include/asm/arcregs.h | 4 ++
doc/device-tree-bindings/timer/arc_timer.txt | 24 +++
drivers/timer/Kconfig| 9 +++
drivers/timer/Mak
is being duplicated in this patch
is very small but helps to understand what is really happening with ARC timers
much better.
Thanks.
--
Best regards,
Vlad Zakharov
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
leanups of code
- Added comments that describe why code is duplicated in arc_timer_probe
Vlad Zakharov (3):
drivers: timer: Introduce ARC timer driver
arc: dts: separate single axs10x.dts file
arc: use timer driver for ARC boards
arch/Kconfig | 3 +
a
timers should be mentioned in board's Device Tree
description.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v1..v2:
- Minor cleanups of code
- Added comments that describe why code is duplicated in arc_timer_probe
arch/arc/include/asm/arcregs.h | 4 +
urces as it is referenced via phandle from timer node in common
skeleton.dtsi file.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
No changes compared to v1
arch/arc/Kconfig | 9 --
arch/arc/dts/Makefile | 3 +-
arch/arc/dts/abilis_tb100.dts | 12 ++--
removes legacy CONFIG_SYS_TIMER_RATE config symbol from
axs10x.h, tb100.h and nsim.h configs files as it is no longer required.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
No changes compared to v1
arch/Kconfig | 3 +++
arch/arc/lib/Makefile| 1 -
arch/arc/lib
NOSYS) {
> + debug("ns16550 failed to get clock\n");
> + return err;
> + }
> +
> + if (!plat->clock)
> + plat->clock = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
> + "clock-frequency",
> + CONFIG_SYS_NS16550_CLK);
> if (!plat->clock) {
> debug("ns16550 clock not defined\n");
> return -EINVAL;
--
Best regards,
Vlad Zakharov
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
NOSYS) {
> + debug("ns16550 failed to get clock\n");
> + return err;
> + }
> +
> + if (!plat->clock)
> + plat->clock = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
> + "clock-frequency",
> + CONFIG_SYS_NS16550_CLK);
> if (!plat->clock) {
> debug("ns16550 clock not defined\n");
> return -EINVAL;
--
Best regards,
Vlad Zakharov
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
we finally may get rid of.
Signed-off-by: Vlad Zakharov
---
arch/arc/dts/axs10x.dts | 8
include/configs/axs10x.h | 1 -
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arc/dts/axs10x.dts b/arch/arc/dts/axs10x.dts
index 391d067..0b0e2bb 100644
--- a/arch/arc/dts
and so we
don't have to remap their control registers as we used to do
with MMIO registers of external peripheral devices.
Vlad Zakharov (2):
drivers: timer: Introduce ARC timer driver
arc: use timer driver instead of arch/arc/lib/timer.c
arch/arc/dts/skeleton.dtsi |
timers should be mentioned in board's Device Tree
description.
Signed-off-by: Vlad Zakharov
---
arch/arc/include/asm/arcregs.h | 4 ++
doc/device-tree-bindings/timer/arc_timer.txt | 24 +++
drivers/timer/Kconfig| 7 ++
drivers/timer/Mak
_TIMER and CONFIG_ARC_TIMER
config symbols to arc-specific defconfigs.
Signed-off-by: Vlad Zakharov
---
arch/arc/dts/skeleton.dtsi| 6 ++
arch/arc/lib/Makefile | 1 -
arch/arc/lib/timer.c | 24
configs/axs101_defconfig | 2 ++
configs/axs103
oid duplication
Vlad Zakharov (2):
drivers: timer: Introduce ARC timer driver
arc: use timer driver instead of arch/arc/lib/timer.c
arch/arc/dts/skeleton.dtsi | 6 ++
arch/arc/include/asm/arcregs.h | 4 ++
arch/arc/lib/Makefile| 1 -
arch/
timers should be mentioned in board's Device Tree
description.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v1..v2
- Minor clean-ups of code and comments
arch/arc/include/asm/arcregs.h | 4 ++
doc/device-tree-bindings/timer/arc_timer.txt | 24 +++
dr
_TIMER and CONFIG_ARC_TIMER
by default when selecting ARC architecture.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v1..v2
- Moved TIMER and ARC_TIMER config symbols from each defconfig to
arch Kconfig file to avoid duplication
arch/Kconfig | 2 ++
ar
and so we
don't have to remap their control registers as we used to do
with MMIO registers of external peripheral devices.
Cc: Simon Glass
---
Changes v2..v3
- Use timer_conv_64 in arc_timer_get_count to prevent 32-bit timer overflow
timers should be mentioned in board's Device Tree
description.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v2..v3
- Use timer_conv_64 in arc_timer_get_count to prevent 32-bit timer overflow
arch/arc/include/asm/arcregs.h | 4 ++
doc/device-tree-bindings/
_TIMER and CONFIG_ARC_TIMER
by default when selecting ARC architecture.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
No changes compared to v2
arch/Kconfig | 2 ++
arch/arc/dts/skeleton.dtsi | 6 ++
arch/arc/lib/Makefile | 1 -
arch/arc/lib/timer.c
-frequency property of the timer node is read to provide
backward compatibility.
Signed-off-by: Vlad Zakharov
---
drivers/timer/timer-uclass.c | 15 ---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c
index f8ddf93
-frequency property of the timer node is read to provide
backward compatibility.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v1..v2:
- Use temporary variable when getting clock rate
drivers/timer/timer-uclass.c | 17 ++---
1 file changed, 14 insertions(+), 3 deletions
Hi Tom,
On Sat, 2016-11-19 at 19:57 +0300, Vlad Zakharov wrote:
> Earlier timer driver needed a clock-frequency property in compatible
> device-tree nodes. Another way is to reference a clock via a phandle.
>
> So now timer_pre_probe tries to get clock by reference through device
>
Hi again,
On Mon, 2016-11-21 at 09:51 -0500, Tom Rini wrote:
> On Mon, Nov 21, 2016 at 02:38:30PM +0000, Vlad Zakharov wrote:
> >
> > Hi Tom,
> >
> > On Sat, 2016-11-19 at 19:57 +0300, Vlad Zakharov wrote:
> > >
> > > Earlier timer driver ne
timers should be mentioned in board's Device Tree
description.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
No changes compared to v3
arch/arc/include/asm/arcregs.h | 4 ++
doc/device-tree-bindings/timer/arc_timer.txt | 24 +++
drivers/timer/Kc
_TIMER and CONFIG_ARC_TIMER
by default when selecting ARC architecture.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v3..v4:
- Remove CONFIG_SYS_TIMER_RATE not only from "axs10x.h" but also
from "nsim.h" and "tb100.h".
arch/Kconfig
and so we
don't have to remap their control registers as we used to do
with MMIO registers of external peripheral devices.
Cc: Simon Glass
---
Changes v3..v4:
- Remove CONFIG_SYS_TIMER_RATE not only from "axs10x.h" but also
from "nsim.h" and "tb100.h".
Vlad
-frequency property of the timer node is read to provide
backward compatibility.
Signed-off-by: Vlad Zakharov
Reviewed-by: Simon Glass
---
Changes v2..v3:
- Use value type instead of pointer for timer_clk in order to fix
build time warnings
drivers/timer/timer-uclass.c | 17 ++---
1 file
Hi Tom,
On Fri, 2016-12-09 at 17:18 +0300, Vlad Zakharov wrote:
> Earlier timer driver needed a clock-frequency property in compatible
> device-tree nodes. Another way is to reference a clock via a phandle.
>
> So now timer_pre_probe tries to get clock by reference through device
>
.
...
...
};
-->8
Please correct me if I wrongly interpret such behavior.
I wonder if it the only approach to implement Linux-like hierarchy for ARC? Or
I am mistaken and in fact can use pure
Linux device tree without add
35 matches
Mail list logo