From mboxrd@z Thu Jan 1 00:00:00 1970 From: cgagneraud@techworks.ie (Christian Gagneraud) Date: Thu, 08 Oct 2009 23:09:54 +0100 Subject: [PATCH] ep93xx: introduce clk parent In-Reply-To: <20091008213425.GA16880@n2100.arm.linux.org.uk> References: <4AC3B748.5060904@bluewatersys.com> <20091001145939.GA28044@n2100.arm.linux.org.uk> <4ACE598E.1090908@techworks.ie> <20091008213425.GA16880@n2100.arm.linux.org.uk> Message-ID: <4ACE6332.6060702@techworks.ie> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Russell King - ARM Linux wrote: > On Thu, Oct 08, 2009 at 10:28:46PM +0100, Christian Gagneraud wrote: >> I'm currently working on adding ADC support (no touchscreen for now) and >> the problem is that touchscreen (ADC) and keypad use the same clock. With >> this patch applied it would be possible to define the shared >> ep93xx-keytch clock and add ep93xx-keypad and ep93xx-touchscreen as >> children. > > If it's a shared clock with common control, there's nothing to stop you > returning the same clock for both of them - that's how the clk API is > supposed to work. Thanks, actually i was confused, the 2 clocks share the same configuration register, but have separate clock divisor and clock enable. So there's no need for clock parents. I just need to create a new clkdev for the TS/ADC. Regards, Chris > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel