From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Hunter Subject: Re: Regarding dtc+cpp support Date: Thu, 18 Apr 2013 11:57:48 -0500 Message-ID: <5170260C.4000700@ti.com> References: <517007F6.3010107@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Padma Venkat Cc: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , Stephen Warren , Sylwester Nawrocki List-Id: devicetree@vger.kernel.org On 04/18/2013 11:21 AM, Padma Venkat wrote: > Hi, > > On Thu, Apr 18, 2013 at 8:19 PM, Jon Hunter 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 >>> /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