From mboxrd@z Thu Jan 1 00:00:00 1970 From: viresh.kumar@st.com (viresh kumar) Date: Tue, 7 Sep 2010 09:32:22 +0530 Subject: [PATCH 16/74] ST SPEAr: adding support for synopsis i2c designware In-Reply-To: <20100906231227.GG8153@game.jcrosoft.org> References: <72ad657ab3eb9d61f11741145494eadb061926b9.1283161023.git.viresh.kumar@st.com> <20100906231227.GG8153@game.jcrosoft.org> Message-ID: <4C85B94E.3040307@st.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Jean, Thanks for reviewing our patches. Really appreciate your effort. On 9/7/2010 4:42 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: >> > @@ -501,6 +510,9 @@ static struct clk_lookup spear_clk_lookups[] = { >> > { .dev_id = "adc", .clk = &adc_clk}, >> > { .dev_id = "ssp", .clk = &ssp_clk}, >> > { .dev_id = "gpio", .clk = &gpio_clk}, >> > +#ifdef CONFIG_MACH_SPEAR320 >> > + { .dev_id = "i2c_designware.1", .clk = &i2c1_clk}, >> > +#endif > how about split this file in 2 > one for 320 and one for 310 so we can avoid all this ifdef There was a mistake in this patch series. As you can see in the last patches, we worked on single image solution for spear*xx family. When we select all machines then all clocks are getting registered. which is wrong? I have corrected it in my local repo. Now i have created clk_lookup arrays for individual machines and one for common clk structures. So you will not find this mess finally in V2 release. thanks viresh.