linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomasz Figa <tomasz.figa@gmail.com>
To: Daniel Drake <drake@endlessm.com>, Chanwoo Choi <cw00.choi@samsung.com>
Cc: linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	Kukjin Kim <kgene.kim@samsung.com>,
	ben-linux@fluff.org, Russell King <linux@arm.linux.org.uk>,
	Mark Rutland <mark.rutland@arm.com>,
	Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net>,
	Mike Turquette <mturquette@linaro.org>,
	thomas.abraham@linaro.org,
	Linus Walleij <linus.walleij@linaro.org>,
	Seung-Woo Kim <sw0312.kim@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	InKi Dae <inki.dae@samsung.com>,
	geunsik.lim@samsung.com, jh80.chung@samsung.com,
	jaewon02.kim@samsung.com, ideal.song@samsung.com,
	yj44.cho@samsung.com, Sylwester Nawrocki <s.nawrocki@samsung.com>
Subject: Re: [PATCH 2/5] clk: samsung: exynos4415: Add clocks using common clock framework
Date: Fri, 24 Oct 2014 15:28:03 +0200	[thread overview]
Message-ID: <544A53E3.7040501@gmail.com> (raw)
In-Reply-To: <CAD8Lp45F_6UWXx0f2xVGZL+Rgemg2fzkYhnfPdaeaiky0rKPgw@mail.gmail.com>

On 24.10.2014 15:18, Daniel Drake wrote:
> On Sun, Oct 19, 2014 at 9:32 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote:
>> This patch adds the new clock driver of Exynos4415 SoC based on Cortex-A9
>> using common clock framework. The CMU (Clock Management Unit) of Exynos4415
>> controls PLLs(Phase Locked Loops) and generates system clocks for CPU, buses
>> and function clocks for individual IPs.
> 
> There seems to be a lot in common here with other exynos4 variants in
> clk-exynos4.c. Have you considered just adding support for the 4415 in
> the existing driver?

I tried when I was still at Samsung and the outcome was far from being
nice. There are certain differences, such as separate address spaces of
few clock controllers and different bit fields in apparently similar
registers, which made resulting code quite ugly.

Also another advantage of separate driver is that it can be made without
duplicating initial fails of the driver for Exynos4, such as private
bindings for external clocks or clock controllers in different power
domains grouped together into one big logical clock controller, because
at development time they looked so (contiguous address space).

Best regards,
Tomasz

  reply	other threads:[~2014-10-24 13:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-20  3:29 [PATCH 0/5] Support new Exynos4415 SoC based on Cortex-A9 quad cores Chanwoo Choi
2014-10-20  3:32 ` [PATCH 1/5] ARM: EXYNOS: Add EXYNOS4415 SoC ID Chanwoo Choi
2014-10-24 11:43   ` Tomasz Figa
2014-10-24 11:46     ` Chanwoo Choi
2014-10-20  3:32 ` [PATCH 2/5] clk: samsung: exynos4415: Add clocks using common clock framework Chanwoo Choi
2014-10-24 10:54   ` Sylwester Nawrocki
2014-10-24 10:59     ` Chanwoo Choi
2014-10-24 13:18   ` Daniel Drake
2014-10-24 13:28     ` Tomasz Figa [this message]
2014-10-24 13:36     ` Chanwoo Choi
2014-10-24 13:56     ` Sylwester Nawrocki
2014-10-20  3:32 ` [PATCH 3/5] clk: samsung: Document binding for Exynos4415 clock controller Chanwoo Choi
2014-10-24 10:32   ` Sylwester Nawrocki
2014-10-24 10:34     ` Chanwoo Choi
2014-10-20  3:32 ` [PATCH 4/5] pinctrl: exynos: Add support for Exynos4415 Chanwoo Choi
2014-10-20  3:32 ` [PATCH 5/5] ARM: dts: Add dts files for Exynos4415 SoC Chanwoo Choi
2014-10-24 13:23   ` Daniel Drake
2014-10-24 13:30     ` Tomasz Figa
2014-10-24 13:34     ` Marek Szyprowski
2014-10-24 13:44       ` Daniel Drake
2014-10-24 13:53     ` Chanwoo Choi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=544A53E3.7040501@gmail.com \
    --to=tomasz.figa@gmail.com \
    --cc=arnd@arndb.de \
    --cc=ben-linux@fluff.org \
    --cc=cw00.choi@samsung.com \
    --cc=drake@endlessm.com \
    --cc=geunsik.lim@samsung.com \
    --cc=ideal.song@samsung.com \
    --cc=inki.dae@samsung.com \
    --cc=jaewon02.kim@samsung.com \
    --cc=jh80.chung@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=mturquette@linaro.org \
    --cc=olof@lixom.net \
    --cc=s.nawrocki@samsung.com \
    --cc=sw0312.kim@samsung.com \
    --cc=thomas.abraham@linaro.org \
    --cc=yj44.cho@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).