linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Turquette <mturquette@baylibre.com>
To: "Alexander Müller" <serveralex@gmail.com>,
	linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org
Subject: Re: [PATCH v2 2/7] meson: clk: Move register definitions to meson8b.h
Date: Wed, 13 Jul 2016 14:34:45 -0700	[thread overview]
Message-ID: <146844568505.73491.2805335483621221629@resonance> (raw)
In-Reply-To: <1468432181-9550-3-git-send-email-serveralex@gmail.com>

Hi Alexander,

Quoting Alexander M=C3=BCller (2016-07-13 10:49:36)
> Signed-off-by: Alexander M=C3=BCller <serveralex@gmail.com>

Please explain why you are moving them in the changelog. It's clear
*what* you are doing, but the *why* is missing.

Regards,
Mike

> ---
>  drivers/clk/meson/meson8b.c | 17 +----------------
>  drivers/clk/meson/meson8b.h | 40 ++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 41 insertions(+), 16 deletions(-)
>  create mode 100644 drivers/clk/meson/meson8b.h
> =

> diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c
> index b1902e9..537cc53 100644
> --- a/drivers/clk/meson/meson8b.c
> +++ b/drivers/clk/meson/meson8b.c
> @@ -26,22 +26,7 @@
>  #include <linux/module.h>
>  =

>  #include "clkc.h"
> -
> -/*
> - * Clock controller register offsets
> - *
> - * Register offsets from the HardKernel[0] data sheet are listed in comm=
ent
> - * blocks below. Those offsets must be multiplied by 4 before adding the=
m to
> - * the base address to get the right value
> - *
> - * [0] http://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150=
126.pdf
> - */
> -#define MESON8B_REG_SYS_CPU_CNTL1      0x015c /* 0x57 offset in data she=
et */
> -#define MESON8B_REG_HHI_MPEG           0x0174 /* 0x5d offset in data she=
et */
> -#define MESON8B_REG_MALI               0x01b0 /* 0x6c offset in data she=
et */
> -#define MESON8B_REG_PLL_FIXED          0x0280
> -#define MESON8B_REG_PLL_SYS            0x0300
> -#define MESON8B_REG_PLL_VID            0x0320
> +#include "meson8b.h"
>  =

>  static DEFINE_SPINLOCK(clk_lock);
>  =

> diff --git a/drivers/clk/meson/meson8b.h b/drivers/clk/meson/meson8b.h
> new file mode 100644
> index 0000000..5b9cb9f
> --- /dev/null
> +++ b/drivers/clk/meson/meson8b.h
> @@ -0,0 +1,40 @@
> +/*
> + * Copyright (c) 2015 Endless Mobile, Inc.
> + * Author: Carlo Caione <carlo@endlessm.com>
> + *
> + * Copyright (c) 2016 BayLibre, Inc.
> + * Michael Turquette <mturquette@baylibre.com>
> + *
> + * This program is free software; you can redistribute it and/or modify =
it
> + * under the terms and conditions of the GNU General Public License,
> + * version 2, as published by the Free Software Foundation.
> + *
> + * This program is distributed in the hope it will be useful, but WITHOUT
> + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
> + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License=
 for
> + * more details.
> + *
> + * You should have received a copy of the GNU General Public License alo=
ng with
> + * this program.  If not, see <http://www.gnu.org/licenses/>.
> + */
> +
> +#ifndef __MESON8B_H
> +#define __MESON8B_H
> +
> +/*
> + * Clock controller register offsets
> + *
> + * Register offsets from the HardKernel[0] data sheet are listed in comm=
ent
> + * blocks below. Those offsets must be multiplied by 4 before adding the=
m to
> + * the base address to get the right value
> + *
> + * [0] http://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150=
126.pdf
> + */
> +#define MESON8B_REG_SYS_CPU_CNTL1      0x015c /* 0x57 offset in data she=
et */
> +#define MESON8B_REG_HHI_MPEG           0x0174 /* 0x5d offset in data she=
et */
> +#define MESON8B_REG_MALI               0x01b0 /* 0x6c offset in data she=
et */
> +#define MESON8B_REG_PLL_FIXED          0x0280
> +#define MESON8B_REG_PLL_SYS            0x0300
> +#define MESON8B_REG_PLL_VID            0x0320
> +
> +#endif /* __MESON8B_H */
> -- =

> 2.5.0
>=20

  reply	other threads:[~2016-07-13 21:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-13 17:49 [PATCH v2 0/7] Add Amlogic meson8b clock gates Alexander Müller
2016-07-13 17:49 ` [PATCH v2 1/7] clk: meson: Rename meson8b-clkc.c to reflect gxbb naming convention Alexander Müller
2016-07-13 17:49 ` [PATCH v2 2/7] meson: clk: Move register definitions to meson8b.h Alexander Müller
2016-07-13 21:34   ` Michael Turquette [this message]
2016-07-13 17:49 ` [PATCH v2 3/7] meson: clk: Rename register names according to Amlogic datasheet Alexander Müller
2016-07-13 17:49 ` [PATCH v2 4/7] clk: meson: Copy meson8b CLKID defines to private header file Alexander Müller
2016-07-13 17:49 ` [PATCH v2 5/7] meson: clk: Add CLKIDs for clock gates Alexander Müller
2016-07-13 21:39   ` Michael Turquette
2016-07-13 17:49 ` [PATCH v2 6/7] gxbb: clk: Move MESON_GATE macro to gxbb Alexander Müller
2016-07-13 21:32   ` Michael Turquette
2016-07-14 17:09     ` Alexander Müller
2016-07-16 20:14       ` Michael Turquette
2016-07-13 17:49 ` [PATCH v2 7/7] meson: clk: Add support for clock gates Alexander Müller
2016-07-13 21:53   ` Michael Turquette

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=146844568505.73491.2805335483621221629@resonance \
    --to=mturquette@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=serveralex@gmail.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).