Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1438516

Re: [PATCH v3 1/2] clk: samsung: cpu: Prepare for addition for Exynos7 CPU clocks

From Sylwester Nawrocki <s.nawrocki@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 1/2] clk: samsung: cpu: Prepare for addition for Exynos7 CPU clocks
Date 2016-07-07 12:50 +0200
Message-ID <rSf2y-5Kz-33@gated-at.bofh.it> (permalink)
References <rRBot-5cR-3@gated-at.bofh.it> <rRBot-5cR-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 07/05/2016 10:29 PM, Abhilash Kesavan wrote:
> Exynos7 has the same CPU clock registers layout as that present
> in Exynos5433 except for the bits in the MUX_STAT* registers.
> Add a new CLK_CPU_HAS_MODIFIED_MUX_STAT flag to handle this change.

> --- a/drivers/clk/samsung/clk-cpu.h
> +++ b/drivers/clk/samsung/clk-cpu.h
> @@ -63,6 +63,8 @@ struct exynos_cpuclk {
>  /* The CPU clock registers have Exynos5433-compatible layout */
>  #define CLK_CPU_HAS_E5433_REGS_LAYOUT	(1 << 2)

> +/* Exynos5433-compatible layout with different MUX_STAT register bits */
> +#define CLK_CPU_HAS_MODIFIED_MUX_STAT	(1 << 3)

It's getting a bit messy, what if there comes another SoC version
which has some other modification of exynos5433 registers structure?
We would need another variant of HAS_MODIFIED_MUX_STAT flag and we
could easily get lost while trying to determine which modification
is which. How about indicating explicitly it's an exynos7 bits
layout and renaming the flag to something like

#define CLK_CPU_HAS_E7_MUX_STAT	(1 << 16) ?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 1/2] clk: samsung: cpu: Prepare for addition for Exynos7 CPU clocks Abhilash Kesavan <a.kesavan@samsung.com> - 2016-07-05 18:30 +0200
  Re: [PATCH v3 1/2] clk: samsung: cpu: Prepare for addition for Exynos7  CPU clocks Sylwester Nawrocki <s.nawrocki@samsung.com> - 2016-07-07 12:50 +0200
    Re: [PATCH v3 1/2] clk: samsung: cpu: Prepare for addition for Exynos7  CPU clocks Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> - 2016-07-07 13:20 +0200

csiph-web