> There could be the same kind of requirement from others that both > "dtsip" and "C-source" want to share the same header file. If we > consider that DT is the exact H/W description, C-source should be able > to include a DT header file. > > For example, a C-header file for "enum tegra{20,30}_clk" should be > generated from "arch/arm/boot/dts/tegra{20,30}-car.h" at runtime, or > alternatively just "drivers/clk/tegra/clk-tegra{20,30}.c" can include > "arch/arm/boot/dts/tegra{20,30}-car.h"? The latter may be easier.
Including arch/arm/boot/dts/tegra{20,30}-car.h seems to make much more sense to me than generating a enum based on #defines... :) Cheers, Peter. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/