* [PATCH 10/13 v2] OMAP3: serial: Fix uart4 handling for 3630
@ 2010-09-22 15:14 Govindraj.R
2010-09-22 20:26 ` Kevin Hilman
0 siblings, 1 reply; 3+ messages in thread
From: Govindraj.R @ 2010-09-22 15:14 UTC (permalink / raw)
To: linux-omap
Cc: linux-arm-kernel, linux-serial, Kevin Hilman, Sergio Aguirre,
Tony Lindgren
This patch makes the following:
- Adds missing wakeup padding register handling.
- Fixes a hardcode to use PER module ONLY on UART3.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
---
arch/arm/mach-omap2/serial.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 72b5c98..c1404af 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -57,7 +57,7 @@
* disabled via sysfs. This also causes that any deeper omap sleep states are
* blocked.
*/
-#define DEFAULT_TIMEOUT 0
+#define DEFAULT_TIMEOUT 5
#define MAX_UART_HWMOD_NAME_LEN 16
@@ -487,7 +487,7 @@ static void omap_uart_idle_init(struct omap_uart_state *uart)
omap_uart_smart_idle_enable(uart, 0);
if (cpu_is_omap34xx()) {
- u32 mod = (uart->num == 2) ? OMAP3430_PER_MOD : CORE_MOD;
+ u32 mod = (uart->num > 1) ? OMAP3430_PER_MOD : CORE_MOD;
u32 wk_mask = 0;
u32 padconf = 0;
@@ -506,6 +506,10 @@ static void omap_uart_idle_init(struct omap_uart_state *uart)
wk_mask = OMAP3430_ST_UART3_MASK;
padconf = 0x19e;
break;
+ case 3:
+ wk_mask = OMAP3630_ST_UART4_MASK;
+ padconf = 0x0d2;
+ break;
}
uart->wk_mask = wk_mask;
uart->padconf = padconf;
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 10/13 v2] OMAP3: serial: Fix uart4 handling for 3630
2010-09-22 15:14 [PATCH 10/13 v2] OMAP3: serial: Fix uart4 handling for 3630 Govindraj.R
@ 2010-09-22 20:26 ` Kevin Hilman
2010-09-23 11:15 ` Govindraj
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2010-09-22 20:26 UTC (permalink / raw)
To: Govindraj.R
Cc: linux-omap, linux-arm-kernel, linux-serial, Sergio Aguirre,
Tony Lindgren
"Govindraj.R" <govindraj.raja@ti.com> writes:
> This patch makes the following:
> - Adds missing wakeup padding register handling.
> - Fixes a hardcode to use PER module ONLY on UART3.
>
> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
> Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
> ---
> arch/arm/mach-omap2/serial.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index 72b5c98..c1404af 100644
> --- a/arch/arm/mach-omap2/serial.c
> +++ b/arch/arm/mach-omap2/serial.c
> @@ -57,7 +57,7 @@
> * disabled via sysfs. This also causes that any deeper omap sleep states are
> * blocked.
> */
> -#define DEFAULT_TIMEOUT 0
> +#define DEFAULT_TIMEOUT 5
Oops
Please leave this at zero.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 10/13 v2] OMAP3: serial: Fix uart4 handling for 3630
2010-09-22 20:26 ` Kevin Hilman
@ 2010-09-23 11:15 ` Govindraj
0 siblings, 0 replies; 3+ messages in thread
From: Govindraj @ 2010-09-23 11:15 UTC (permalink / raw)
To: Kevin Hilman
Cc: Govindraj.R, linux-omap, linux-arm-kernel, linux-serial,
Sergio Aguirre, Tony Lindgren
On Thu, Sep 23, 2010 at 1:56 AM, Kevin Hilman
<khilman@deeprootsystems.com> wrote:
> "Govindraj.R" <govindraj.raja@ti.com> writes:
>
>> This patch makes the following:
>> - Adds missing wakeup padding register handling.
>> - Fixes a hardcode to use PER module ONLY on UART3.
>>
>> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
>> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
>> Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
>> ---
>> arch/arm/mach-omap2/serial.c | 8 ++++++--
>> 1 files changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
>> index 72b5c98..c1404af 100644
>> --- a/arch/arm/mach-omap2/serial.c
>> +++ b/arch/arm/mach-omap2/serial.c
>> @@ -57,7 +57,7 @@
>> * disabled via sysfs. This also causes that any deeper omap sleep states are
>> * blocked.
>> */
>> -#define DEFAULT_TIMEOUT 0
>> +#define DEFAULT_TIMEOUT 5
>
> Oops
>
> Please leave this at zero.
Yes my mistake.
Will correct this.
>
> Kevin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-serial" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
---
Regards,
Govindraj.R
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-23 11:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-22 15:14 [PATCH 10/13 v2] OMAP3: serial: Fix uart4 handling for 3630 Govindraj.R
2010-09-22 20:26 ` Kevin Hilman
2010-09-23 11:15 ` Govindraj
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).