* [Adeos-main] [PATCH 1/3] Fix hwtimer_uaccess in IMX architecture
@ 2012-04-24 8:06 Michael Trimarchi
2012-04-24 8:09 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: Michael Trimarchi @ 2012-04-24 8:06 UTC (permalink / raw)
To: Adeos; +Cc: b.morelli
Fix the code for IMX architectures in order to call the software
workaround to clear the off platform peripheral modules Supervisor
Protect clear the off platform peripheral modules Supervisor Protect
bit for the SDMA to access them.
Signed-off-by: Michael Trimarchi <michael@domain.hid>
Signed-off-by: Bruno Morelli <b.morelli@domain.hid>
---
arch/arm/plat-mxc/devices.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/arch/arm/plat-mxc/devices.c b/arch/arm/plat-mxc/devices.c
index 253b711..a2c0e66 100644
--- a/arch/arm/plat-mxc/devices.c
+++ b/arch/arm/plat-mxc/devices.c
@@ -93,19 +93,19 @@ err:
static int post_cpu_init(void)
{
-#ifdef CONFIG_MACH_MX27
+#ifdef CONFIG_ARCH_MX27
if (cpu_is_mx27())
ipipe_mach_allow_hwtimer_uaccess(MX27_IO_P2V(MX27_AIPI_BASE_ADDR), 3);
#endif /* CONFIG_MACH_MX27 */
-#ifdef CONFIG_MACH_MX25
+#ifdef CONFIG_ARCH_MX25
if (cpu_is_mx25())
- ipipe_mach_allow_hwtimer_uaccess(MX25_AIPS1_BASE_ADDR_VIRT,
- MX25_AIPS2_BASE_ADDR_VIRT);
+ ipipe_mach_allow_hwtimer_uaccess(MX25_IO_P2V(MX25_AIPS1_BASE_ADDR),
+ MX25_IO_P2V(MX25_AIPS2_BASE_ADDR));
#endif /* CONFIG_MACH_MX25 */
-#ifdef CONFIG_MACH_MX31
+#ifdef CONFIG_ARCH_MX31
if (cpu_is_mx31())
- ipipe_mach_allow_hwtimer_uaccess(AIPS1_BASE_ADDR_VIRT,
- AIPS2_BASE_ADDR_VIRT);
+ ipipe_mach_allow_hwtimer_uaccess(MX31_IO_P2V(MX31_AIPS1_BASE_ADDR_VIRT),
+ MX31_IO_P2V(MX31_AIPS2_BASE_ADDR_VIRT));
#endif /* CONFIG_MACH_MX31 */
return 0;
}
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Adeos-main] [PATCH 1/3] Fix hwtimer_uaccess in IMX architecture
2012-04-24 8:06 [Adeos-main] [PATCH 1/3] Fix hwtimer_uaccess in IMX architecture Michael Trimarchi
@ 2012-04-24 8:09 ` Gilles Chanteperdrix
2012-04-24 8:34 ` Michael Trimarchi
0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2012-04-24 8:09 UTC (permalink / raw)
To: Michael Trimarchi; +Cc: Adeos, b.morelli
On 04/24/2012 10:06 AM, Michael Trimarchi wrote:
> Fix the code for IMX architectures in order to call the software
> workaround to clear the off platform peripheral modules Supervisor
> Protect clear the off platform peripheral modules Supervisor Protect
> bit for the SDMA to access them.
>
> Signed-off-by: Michael Trimarchi <michael@domain.hid>
> Signed-off-by: Bruno Morelli <b.morelli@domain.hid>
> ---
> arch/arm/plat-mxc/devices.c | 14 +++++++-------
> 1 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/plat-mxc/devices.c b/arch/arm/plat-mxc/devices.c
> index 253b711..a2c0e66 100644
> --- a/arch/arm/plat-mxc/devices.c
> +++ b/arch/arm/plat-mxc/devices.c
> @@ -93,19 +93,19 @@ err:
>
> static int post_cpu_init(void)
> {
> -#ifdef CONFIG_MACH_MX27
> +#ifdef CONFIG_ARCH_MX27
What kernel version are we talking about? In version 3.2.1, MACH_MX27 is
still there and has not been replacced with ARCH_MX27
--
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Adeos-main] [PATCH 1/3] Fix hwtimer_uaccess in IMX architecture
2012-04-24 8:09 ` Gilles Chanteperdrix
@ 2012-04-24 8:34 ` Michael Trimarchi
0 siblings, 0 replies; 3+ messages in thread
From: Michael Trimarchi @ 2012-04-24 8:34 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Adeos, b.morelli
On 04/24/2012 10:09 AM, Gilles Chanteperdrix wrote:
> On 04/24/2012 10:06 AM, Michael Trimarchi wrote:
>> Fix the code for IMX architectures in order to call the software
>> workaround to clear the off platform peripheral modules Supervisor
>> Protect clear the off platform peripheral modules Supervisor Protect
>> bit for the SDMA to access them.
>>
>> Signed-off-by: Michael Trimarchi <michael@domain.hid>
>> Signed-off-by: Bruno Morelli <b.morelli@domain.hid>
>> ---
>> arch/arm/plat-mxc/devices.c | 14 +++++++-------
>> 1 files changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/arch/arm/plat-mxc/devices.c b/arch/arm/plat-mxc/devices.c
>> index 253b711..a2c0e66 100644
>> --- a/arch/arm/plat-mxc/devices.c
>> +++ b/arch/arm/plat-mxc/devices.c
>> @@ -93,19 +93,19 @@ err:
>>
>> static int post_cpu_init(void)
>> {
>> -#ifdef CONFIG_MACH_MX27
>> +#ifdef CONFIG_ARCH_MX27
>
> What kernel version are we talking about? In version 3.2.1, MACH_MX27 is
> still there and has not been replacced with ARCH_MX27
>
Yes, it is strange. In linux 3.4.0
git grep ARCH_MX25 arch/arm/
arch/arm/mach-imx/Kconfig:config ARCH_MX25
arch/arm/mach-imx/Kconfig: select ARCH_MX25
arch/arm/plat-mxc/devices/Kconfig: default y if ARCH_MX25 || SOC_IMX27 || SOC_IMX35 || SOC_IMX50 || SOC_IMX51 || SOC_IMX53
But it is different for the MX27
arch/arm/mach-imx/Kconfig:config MACH_MX27
arch/arm/mach-imx/Kconfig: select MACH_MX27
I will fix
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-24 8:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24 8:06 [Adeos-main] [PATCH 1/3] Fix hwtimer_uaccess in IMX architecture Michael Trimarchi
2012-04-24 8:09 ` Gilles Chanteperdrix
2012-04-24 8:34 ` Michael Trimarchi
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.