Regarding dtc+cpp support

Jon Hunter jon-hunter at ti.com
Fri Apr 19 02:57:48 EST 2013


On 04/18/2013 11:21 AM, Padma Venkat wrote:
> Hi,
> 
> On Thu, Apr 18, 2013 at 8:19 PM, Jon Hunter <jon-hunter at ti.com> wrote:
>>
>> On 04/18/2013 04:12 AM, Padma Venkat wrote:
>>> Hi Stephen,
>>>
>>> I am trying to add a header file for samsung audio subsystem clk
>>> definitions, which can be used in kernel and dt files.
>>> I applied following patches posted by you in my working tree.
>>>
>>>
>>> [1/7] kbuild: create an "include chroot" for DT bindings
>>> [2/7] kbuild: fixdep: support concatenated dep files
>>> [3/7] kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc
>>> [4/7] kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp
>>> [5/7] ARM: dt: add header to define GPIO flags
>>> [6/7] ARM: dt: add header to define IRQ flags
>>> [7/7] ARM: dt: create a DT header for the GIC
>>>
>>> I created a header file in
>>> arch/arm/boot/dts/include/clk/samsung-audss-clk.h and I included this
>>> header in driver and dtsi files
>>>
>>> Please see the code snippet in dtsi below.
>>>
>>> #include <dt-bindings/clk/samsung-audss-clk.h>
>>> /include/ "skeleton.dtsi"
>>> /include/ "exynos5250-pinctrl.dtsi
>>
>> Try making all of the above "#include" ...
> 
> I haven't changed all dts files but I tried below with no success.

I should mentioned that you should also make any /include/ in the *.dtsi
above #include too.

Cheers
Jon


More information about the devicetree-discuss mailing list