Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Kukjin Kim <kgene.kim@samsung.com>
To: 'MyungJoo Ham' <myungjoo.ham@samsung.com>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	'Jongpill Lee' <boyko.lee@samsung.com>,
	ben-linux@fluff.org
Subject: RE: [PATCH 12/14] ARM: S5PV310: Add various clocks
Date: Fri, 20 Aug 2010 16:00:05 +0900	[thread overview]
Message-ID: <00ab01cb4035$5486b5f0$fd9421d0$%kim@samsung.com> (raw)
In-Reply-To: <AANLkTim_rJu0RicETYqsdKArSKtzSMdGBfm96dSFWauw@mail.gmail.com>

MyungJoo Ham wrote:
> 
> On Wed, Aug 18, 2010 at 11:01 PM, Kukjin Kim <kgene.kim@samsung.com>
wrote:
> > From: Jongpill Lee <boyko.lee@samsung.com>
> >
> > This patch adds clocks for S5PV310/S5PC210.
> >
> > Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
> > Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> > ---
> >  arch/arm/mach-s5pv310/clock.c |  155
> ++++++++++++++++++++++++++++++++++++++++-
> >  1 files changed, 154 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/arm/mach-s5pv310/clock.c
b/arch/arm/mach-s5pv310/clock.c
> > index ec69edc..14c9707 100644
> > --- a/arch/arm/mach-s5pv310/clock.c
> > +++ b/arch/arm/mach-s5pv310/clock.c
> > @@ -61,6 +61,26 @@ static int s5pv310_clksrc_mask_peril0_ctrl(struct clk
*clk,
> int enable)
> >        return s5p_gatectrl(S5P_CLKSRC_MASK_PERIL0, clk, enable);
> >  }
> >
> > +static int s5pv310_clk_ip_cam_ctrl(struct clk *clk, int enable)
> > +{
> > +       return s5p_gatectrl(S5P_CLKGATE_IP_CAM, clk, enable);
> > +}
> > +
> > +static int s5pv310_clk_ip_image_ctrl(struct clk *clk, int enable)
> > +{
> > +       return s5p_gatectrl(S5P_CLKGATE_IP_IMAGE, clk, enable);
> > +}
> > +
> > +static int s5pv310_clk_ip_lcd0_ctrl(struct clk *clk, int enable)
> > +{
> > +       return s5p_gatectrl(S5P_CLKGATE_IP_LCD0, clk, enable);
> > +}
> > +
> > +static int s5pv310_clk_ip_lcd1_ctrl(struct clk *clk, int enable)
> > +{
> > +       return s5p_gatectrl(S5P_CLKGATE_IP_LCD1, clk, enable);
> > +}
> > +
> >  static int s5pv310_clk_ip_fsys_ctrl(struct clk *clk, int enable)
> >  {
> >        return s5p_gatectrl(S5P_CLKGATE_IP_FSYS, clk, enable);
> > @@ -275,6 +295,46 @@ static struct clk init_clocks_disable[] = {
> >                .enable         = s5pv310_clk_ip_peril_ctrl,
> >                .ctrlbit        = (1<<24),
> >        }, {
> > +               .name           = "csis",
> > +               .id             = 0,
> > +               .enable         = s5pv310_clk_ip_cam_ctrl,
> > +               .ctrlbit        = (1 << 4),
> > +       }, {
> > +               .name           = "csis",
> > +               .id             = 1,
> > +               .enable         = s5pv310_clk_ip_cam_ctrl,
> > +               .ctrlbit        = (1 << 5),
> > +       }, {
> > +               .name           = "fimc",
> > +               .id             = 0,
> > +               .enable         = s5pv310_clk_ip_cam_ctrl,
> > +               .ctrlbit        = (1 << 0),
> > +       }, {
> > +               .name           = "fimc",
> > +               .id             = 1,
> > +               .enable         = s5pv310_clk_ip_cam_ctrl,
> > +               .ctrlbit        = (1 << 1),
> > +       }, {
> > +               .name           = "fimc",
> > +               .id             = 2,
> > +               .enable         = s5pv310_clk_ip_cam_ctrl,
> > +               .ctrlbit        = (1 << 2),
> > +       }, {
> > +               .name           = "fimc",
> > +               .id             = 3,
> > +               .enable         = s5pv310_clk_ip_cam_ctrl,
> > +               .ctrlbit        = (1 << 3),
> > +       }, {
> > +               .name           = "fimd",
> > +               .id             = 0,
> > +               .enable         = s5pv310_clk_ip_lcd0_ctrl,
> > +               .ctrlbit        = (1 << 0),
> > +       }, {
> > +               .name           = "fimd",
> > +               .id             = 1,
> > +               .enable         = s5pv310_clk_ip_lcd1_ctrl,
> > +               .ctrlbit        = (1 << 0),
> > +       }, {
> >                .name           = "hsmmc",
> >                .id             = 0,
> >                .parent         = &clk_aclk_133.clk,
> > @@ -304,7 +364,100 @@ static struct clk init_clocks_disable[] = {
> >                .parent         = &clk_aclk_133.clk,
> >                .enable         = s5pv310_clk_ip_fsys_ctrl,
> >                .ctrlbit        = (1 << 9),
> > -       }
> > +       }, {
> > +               .name           = "sata",
> > +               .id             = -1,
> > +               .enable         = s5pv310_clk_ip_fsys_ctrl,
> > +               .ctrlbit        = (1 << 10),
> > +       }, {
> > +               .name           = "adc",
> > +               .id             = -1,
> > +               .enable         = s5pv310_clk_ip_peril_ctrl,
> > +               .ctrlbit        = (1 << 15),
> > +       }, {
> > +               .name           = "watchdog",
> > +               .id             = -1,
> > +               .enable         = s5pv310_clk_ip_peril_ctrl,
> 
> s5pv310_clk_ip_perir_ctrl (R, not L) appears to be correct for this entry.
> 
> Probably, we may need to sort these according to .enable entry (and
> then .ctrlbit entry) later.
> 
You're right. will fix it.

(snip)

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

  reply	other threads:[~2010-08-20  6:59 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18 14:01 [PATCH 00/14] ARM: S5PV310: Updates clock Kukjin Kim
2010-08-18 14:01 ` [PATCH 01/14] ARM: S5PV310: Adds clock addresses for S5PV310 Kukjin Kim
2010-08-18 14:01 ` [PATCH 02/14] ARM: S5PV310: Removed unused clock Kukjin Kim
2010-08-19  2:57   ` MyungJoo Ham
2010-08-20  7:10     ` Kukjin Kim
2010-08-18 14:01 ` [PATCH 03/14] ARM: S5PV310: Adds clkset_aclk for removing clkset_aclk_xxx Kukjin Kim
2010-08-18 14:01 ` [PATCH 04/14] ARM: S5PV310: Fix on PLL setting for S5PV310 Kukjin Kim
2010-08-18 14:01 ` [PATCH 05/14] ARM: S5PV310: Adds clk_sclk_usbphy0, _usbphy1, and _hdmiphy Kukjin Kim
2010-08-18 14:01 ` [PATCH 06/14] ARM: S5PV310: Should be clk_sclk_apll not clk_mout_apll Kukjin Kim
2010-08-18 14:01 ` [PATCH 07/14] ARM: S5PV310: Adds printing ACLK200, ACLK100, ACLK160 and ACLK133 Kukjin Kim
2010-08-18 14:01 ` [PATCH 08/14] ARM: S5PV310: Adds enable and ctrlbit for clk_vpllsrc Kukjin Kim
2010-08-18 14:01 ` [PATCH 09/14] ARM: S5PV310: Adds SDMMC clock for S5PV310 Kukjin Kim
2010-08-18 14:01 ` [PATCH 10/14] ARM: S5PV310: Adds uart clocks Kukjin Kim
2010-08-19  8:40   ` MyungJoo Ham
2010-08-20  6:58     ` Kukjin Kim
2010-08-18 14:01 ` [PATCH 11/14] ARM: S5PV310: Bug fix on uclk1 and sclk_pwm Kukjin Kim
2010-08-18 14:01 ` [PATCH 12/14] ARM: S5PV310: Add various clocks Kukjin Kim
2010-08-19  8:52   ` MyungJoo Ham
2010-08-20  7:00     ` Kukjin Kim [this message]
2010-08-18 14:01 ` [PATCH 13/14] ARM: S5PV310: Add video clocks Kukjin Kim
2010-08-19 10:04   ` MyungJoo Ham
2010-08-19 10:28     ` MyungJoo Ham
2010-08-20  7:35       ` Kukjin Kim
2010-08-18 14:01 ` [PATCH 14/14] ARM: S5PV310: Adds various special clocks Kukjin Kim
2010-08-23  2:05 ` [PATCH 00/14] ARM: S5PV310: Updates clock Kyungmin Park
2010-08-23  2:21   ` Kukjin Kim

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='00ab01cb4035$5486b5f0$fd9421d0$%kim@samsung.com' \
    --to=kgene.kim@samsung.com \
    --cc=ben-linux@fluff.org \
    --cc=boyko.lee@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=myungjoo.ham@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