[v2 0/4] ARM: tegra: convert device tree files to use CLK defines

From: Hiroshi Doyu
Date: Thu Feb 14 2013 - 14:00:00 EST


Hi,

With new dtc+cpp feature, we can get rid of magic numbers in dts*
files. To get rid of Tegra clock magic number, the following patches
were created with a script run as below. This can be applied for
Tegra114 clock as well.

for x in 20 30; do
cat drivers/clk/tegra/clk-tegra$x.c | enum2define.py \
> arch/arm/boot/dts/tegra$x-car.h 2>/tmp/tegra$x-car.sed
sed -i -f /tmp/tegra$x-car.sed \
Documentation/devicetree/bindings/clock/nvidia\,tegra$x-car.txt \
arch/arm/boot/dts/*
done

We plan to share those DT header files with kernel source later[1].

This series depends on:

[PATCH 0/9] ARM: tegra: use new dtc+cpp feature
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149613.html

v1:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149672.html

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149804.html

Hiroshi Doyu (4):
ARM: tegra20: create a DT header defining CLK IDs
ARM: tegra20: convert device tree files to use CLK defines
ARM: tegra30: create a DT header defining CLK IDs
ARM: tegra30: convert device tree files to use CLK defines

.../bindings/clock/nvidia,tegra20-car.txt | 2 +-
.../bindings/clock/nvidia,tegra30-car.txt | 2 +-
arch/arm/boot/dts/tegra20-car.h | 114 +++++++++++++
arch/arm/boot/dts/tegra20-paz00.dtsp | 2 +-
arch/arm/boot/dts/tegra20.dtsip | 85 +++++-----
arch/arm/boot/dts/tegra30-car.h | 171 ++++++++++++++++++++
arch/arm/boot/dts/tegra30.dtsip | 87 +++++-----
7 files changed, 375 insertions(+), 88 deletions(-)
create mode 100644 arch/arm/boot/dts/tegra20-car.h
create mode 100644 arch/arm/boot/dts/tegra30-car.h

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/