From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/3] arm: exynos: Add MCPM call-back functions
Date: Wed, 23 Apr 2014 22:56:57 +0200 [thread overview]
Message-ID: <53582919.1040905@linaro.org> (raw)
In-Reply-To: <CAM4voa=WJiF-9wZB29JOFhz2kEE-TC0y6h-8GVwk3_JoXxpK+A@mail.gmail.com>
On 04/23/2014 05:31 PM, Abhilash Kesavan wrote:
> Hi Daniel,
> On Tue, Apr 22, 2014 at 4:51 PM, Daniel Lezcano
> <daniel.lezcano@linaro.org> wrote:
>> On 04/22/2014 08:17 AM, Abhilash Kesavan wrote:
>>>
>>> Add machine-dependent MCPM call-backs for Exynos5420. These are used
>>> to power up/down the secondary CPUs during boot, shutdown, s2r and
>>> switching.
>>>
>>> Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
>>> Signed-off-by: Inderpal Singh <inderpal.s@samsung.com>
>>> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
>>> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
>>> ---
[ ... ]
>>> +#include <plat/cpu.h>
>>> +#include "regs-pmu.h"
>>> +
>>> +#define EXYNOS5420_CPUS_PER_CLUSTER 4
>>> +#define EXYNOS5420_NR_CLUSTERS 2
>>> +
>>> +/* Secondary CPU entry point */
>>> +#define REG_ENTRY_ADDR (S5P_VA_SYSRAM_NS + 0x1C)
>>> +
>>> +#define EXYNOS_CORE_LOCAL_PWR_EN 0x3
>>> +#define EXYNOS_CORE_LOCAL_PWR_DIS 0x0
>>>
>>> +#define EXYNOS_ARM_COMMON_CONFIGURATION S5P_PMUREG(0x2500)
>>> +#define EXYNOS_ARM_L2_CONFIGURATION S5P_PMUREG(0x2600)
>>> +
>>> +#define EXYNOS_ARM_CORE_CONFIGURATION(_nr) \
>>> + (S5P_ARM_CORE0_CONFIGURATION + ((_nr) * 0x80))
>>> +#define EXYNOS_ARM_CORE_STATUS(_nr) \
>>> + (S5P_ARM_CORE0_STATUS + ((_nr) * 0x80))
>>> +
>>> +#define EXYNOS_COMMON_CONFIGURATION(_nr) \
>>> + (EXYNOS_ARM_COMMON_CONFIGURATION + ((_nr) * 0x80))
>>> +#define EXYNOS_COMMON_STATUS(_nr) \
>>> + (EXYNOS_COMMON_CONFIGURATION(_nr) + 0x4)
>>> +
>>> +#define EXYNOS_L2_CONFIGURATION(_nr) \
>>> + (EXYNOS_ARM_L2_CONFIGURATION + ((_nr) * 0x80))
>>> +#define EXYNOS_L2_STATUS(_nr) \
>>> + (EXYNOS_L2_CONFIGURATION(_nr) + 0x4)
>>> +
>>
>>
>> Is it possible to share the definition of those macros with the rest of the
>> code via functions, so they can be re-used for the other sub-systems ? eg:
>> https://patches.linaro.org/27798/
> OK..I will work on making wrapper functions for these. Would these new
> functions be better placed in the mcpm code or the pm code ?
Hi Abhilash,
yes, in the pm code. That would make more sense.
Thanks
-- Daniel
--
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
WARNING: multiple messages have this Message-ID (diff)
From: Daniel Lezcano <daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Abhilash Kesavan
<kesavan.abhilash-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Andrew Bresticker
<abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
Thomas P Abraham
<thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
"inderpal.s-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org"
<inderpal.s-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
Lorenzo Pieralisi
<lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org>,
linux-arm-kernel
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
Kukjin Kim <kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
Nicolas Pitre
<nicolas.pitre-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Dave Martin <Dave.Martin-5wv7dgnIgG8@public.gmane.org>,
Tomasz Figa <t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
"mark.rutland" <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>,
robh+dt <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Grant Likely
<grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v2 2/3] arm: exynos: Add MCPM call-back functions
Date: Wed, 23 Apr 2014 22:56:57 +0200 [thread overview]
Message-ID: <53582919.1040905@linaro.org> (raw)
In-Reply-To: <CAM4voa=WJiF-9wZB29JOFhz2kEE-TC0y6h-8GVwk3_JoXxpK+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 04/23/2014 05:31 PM, Abhilash Kesavan wrote:
> Hi Daniel,
> On Tue, Apr 22, 2014 at 4:51 PM, Daniel Lezcano
> <daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>> On 04/22/2014 08:17 AM, Abhilash Kesavan wrote:
>>>
>>> Add machine-dependent MCPM call-backs for Exynos5420. These are used
>>> to power up/down the secondary CPUs during boot, shutdown, s2r and
>>> switching.
>>>
>>> Signed-off-by: Thomas Abraham <thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
>>> Signed-off-by: Inderpal Singh <inderpal.s-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
>>> Signed-off-by: Andrew Bresticker <abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
>>> Signed-off-by: Abhilash Kesavan <a.kesavan-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
>>> ---
[ ... ]
>>> +#include <plat/cpu.h>
>>> +#include "regs-pmu.h"
>>> +
>>> +#define EXYNOS5420_CPUS_PER_CLUSTER 4
>>> +#define EXYNOS5420_NR_CLUSTERS 2
>>> +
>>> +/* Secondary CPU entry point */
>>> +#define REG_ENTRY_ADDR (S5P_VA_SYSRAM_NS + 0x1C)
>>> +
>>> +#define EXYNOS_CORE_LOCAL_PWR_EN 0x3
>>> +#define EXYNOS_CORE_LOCAL_PWR_DIS 0x0
>>>
>>> +#define EXYNOS_ARM_COMMON_CONFIGURATION S5P_PMUREG(0x2500)
>>> +#define EXYNOS_ARM_L2_CONFIGURATION S5P_PMUREG(0x2600)
>>> +
>>> +#define EXYNOS_ARM_CORE_CONFIGURATION(_nr) \
>>> + (S5P_ARM_CORE0_CONFIGURATION + ((_nr) * 0x80))
>>> +#define EXYNOS_ARM_CORE_STATUS(_nr) \
>>> + (S5P_ARM_CORE0_STATUS + ((_nr) * 0x80))
>>> +
>>> +#define EXYNOS_COMMON_CONFIGURATION(_nr) \
>>> + (EXYNOS_ARM_COMMON_CONFIGURATION + ((_nr) * 0x80))
>>> +#define EXYNOS_COMMON_STATUS(_nr) \
>>> + (EXYNOS_COMMON_CONFIGURATION(_nr) + 0x4)
>>> +
>>> +#define EXYNOS_L2_CONFIGURATION(_nr) \
>>> + (EXYNOS_ARM_L2_CONFIGURATION + ((_nr) * 0x80))
>>> +#define EXYNOS_L2_STATUS(_nr) \
>>> + (EXYNOS_L2_CONFIGURATION(_nr) + 0x4)
>>> +
>>
>>
>> Is it possible to share the definition of those macros with the rest of the
>> code via functions, so they can be re-used for the other sub-systems ? eg:
>> https://patches.linaro.org/27798/
> OK..I will work on making wrapper functions for these. Would these new
> functions be better placed in the mcpm code or the pm code ?
Hi Abhilash,
yes, in the pm code. That would make more sense.
Thanks
-- Daniel
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-04-23 20:56 UTC|newest]
Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-11 18:01 [PATCH 0/5] MCPM backend for Exynos5420 Abhilash Kesavan
2014-04-11 18:01 ` Abhilash Kesavan
2014-04-11 18:01 ` [PATCH 1/5] ARM: bL_switcher: Don't enable bL switcher on systems without CCI Abhilash Kesavan
2014-04-11 18:01 ` Abhilash Kesavan
2014-04-11 18:14 ` Nicolas Pitre
2014-04-11 18:14 ` Nicolas Pitre
2014-04-16 19:10 ` Abhilash Kesavan
2014-04-16 19:10 ` Abhilash Kesavan
2014-04-16 20:18 ` Nicolas Pitre
2014-04-16 20:18 ` Nicolas Pitre
2014-04-21 15:57 ` Abhilash Kesavan
2014-04-21 15:57 ` Abhilash Kesavan
2014-04-21 23:37 ` Nicolas Pitre
2014-04-21 23:37 ` Nicolas Pitre
2014-04-11 18:01 ` [PATCH 2/5] drivers/bus: arm-cci: Add common control interface for ACE ports Abhilash Kesavan
2014-04-11 18:01 ` Abhilash Kesavan
2014-04-11 18:24 ` Nicolas Pitre
2014-04-11 18:24 ` Nicolas Pitre
2014-04-11 19:16 ` Abhilash Kesavan
2014-04-11 19:16 ` Abhilash Kesavan
2014-04-11 18:01 ` [PATCH 3/5] ARM: EXYNOS5420: Add IO mapping for non-secure SYSRAM Abhilash Kesavan
2014-04-11 18:01 ` Abhilash Kesavan
2014-04-14 11:25 ` Dave Martin
2014-04-14 11:25 ` Dave Martin
2014-04-14 11:47 ` Arnd Bergmann
2014-04-14 11:47 ` Arnd Bergmann
2014-04-14 11:59 ` Dave Martin
2014-04-14 11:59 ` Dave Martin
2014-04-14 13:24 ` Arnd Bergmann
2014-04-14 13:24 ` Arnd Bergmann
2014-04-16 19:10 ` Abhilash Kesavan
2014-04-16 19:10 ` Abhilash Kesavan
2014-04-11 18:01 ` [PATCH 4/5] ARM: dts: exynos5420: add CCI node Abhilash Kesavan
2014-04-11 18:01 ` Abhilash Kesavan
2014-04-22 6:16 ` [PATCH v2 1/3] " Abhilash Kesavan
2014-04-22 6:16 ` Abhilash Kesavan
2014-04-11 18:01 ` [PATCH 5/5] arm: exynos: Add MCPM call-back functions Abhilash Kesavan
2014-04-11 18:01 ` Abhilash Kesavan
2014-04-11 20:23 ` Nicolas Pitre
2014-04-11 20:23 ` Nicolas Pitre
2014-04-14 10:41 ` Dave Martin
2014-04-14 10:41 ` Dave Martin
2014-04-14 14:01 ` Nicolas Pitre
2014-04-14 14:01 ` Nicolas Pitre
2014-04-15 8:36 ` Dave Martin
2014-04-15 8:36 ` Dave Martin
2014-04-16 19:11 ` Abhilash Kesavan
2014-04-16 19:11 ` Abhilash Kesavan
2014-04-17 10:03 ` Dave Martin
2014-04-17 10:03 ` Dave Martin
2014-04-21 15:57 ` Abhilash Kesavan
2014-04-21 15:57 ` Abhilash Kesavan
2014-04-22 2:11 ` Nicolas Pitre
2014-04-22 2:11 ` Nicolas Pitre
2014-04-16 19:11 ` Abhilash Kesavan
2014-04-16 19:11 ` Abhilash Kesavan
2014-04-17 9:59 ` Dave Martin
2014-04-17 9:59 ` Dave Martin
2014-04-17 15:20 ` Nicolas Pitre
2014-04-17 15:20 ` Nicolas Pitre
2014-04-17 15:38 ` Dave Martin
2014-04-17 15:38 ` Dave Martin
2014-04-21 15:57 ` Abhilash Kesavan
2014-04-21 15:57 ` Abhilash Kesavan
2014-04-16 19:11 ` Abhilash Kesavan
2014-04-16 19:11 ` Abhilash Kesavan
2014-04-22 6:17 ` [PATCH v2 2/3] " Abhilash Kesavan
2014-04-22 6:17 ` Abhilash Kesavan
2014-04-22 11:21 ` Daniel Lezcano
2014-04-22 11:21 ` Daniel Lezcano
2014-04-22 15:40 ` Nicolas Pitre
2014-04-22 15:40 ` Nicolas Pitre
2014-04-22 19:21 ` Daniel Lezcano
2014-04-22 19:21 ` Daniel Lezcano
2014-04-22 19:56 ` Nicolas Pitre
2014-04-22 19:56 ` Nicolas Pitre
2014-04-23 15:31 ` Abhilash Kesavan
2014-04-23 15:31 ` Abhilash Kesavan
2014-04-23 16:13 ` Lorenzo Pieralisi
2014-04-23 16:13 ` Lorenzo Pieralisi
2014-06-17 2:38 ` Abhilash Kesavan
2014-06-17 2:38 ` Abhilash Kesavan
2014-06-19 8:56 ` Lorenzo Pieralisi
2014-06-19 8:56 ` Lorenzo Pieralisi
2014-06-19 12:23 ` Abhilash Kesavan
2014-06-19 12:23 ` Abhilash Kesavan
2014-04-23 15:31 ` Abhilash Kesavan
2014-04-23 15:31 ` Abhilash Kesavan
2014-04-23 20:56 ` Daniel Lezcano [this message]
2014-04-23 20:56 ` Daniel Lezcano
2014-04-22 19:18 ` Nicolas Pitre
2014-04-22 19:18 ` Nicolas Pitre
2014-04-23 15:31 ` Abhilash Kesavan
2014-04-23 15:31 ` Abhilash Kesavan
2014-04-22 6:16 ` [PATCH v2 0/3] MCPM backend for Exynos5420 Abhilash Kesavan
2014-04-22 6:16 ` Abhilash Kesavan
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=53582919.1040905@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.