* [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config
@ 2007-03-19 17:35 Dirk Behme
2007-03-20 16:05 ` tony
0 siblings, 1 reply; 5+ messages in thread
From: Dirk Behme @ 2007-03-19 17:35 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
Fix warnings
arch/arm/plat-omap/devices.c:159: warning: 'omap_init_kp'
defined but not used
arch/arm/plat-omap/devices.c:282: warning: 'omap_init_mmc'
defined but not used
arch/arm/plat-omap/devices.c:436: warning: 'omap_init_wdt'
defined but not used
arch/arm/plat-omap/devices.c:469: warning: 'omap_init_rng'
defined but not used
if using omap_2430sdp_defconfig.
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
[-- Attachment #2: devices_warnings_fix.txt --]
[-- Type: text/plain, Size: 1816 bytes --]
Index: linux-osk/arch/arm/plat-omap/devices.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/devices.c
+++ linux-osk/arch/arm/plat-omap/devices.c
@@ -153,7 +153,8 @@ static inline void omap_init_i2c(void) {
#endif
/*-------------------------------------------------------------------------*/
-#if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)
+#if (defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)) && \
+ !defined(CONFIG_MACH_OMAP_2430SDP)
static void omap_init_kp(void)
{
@@ -210,7 +211,8 @@ static inline void omap_init_kp(void) {}
/*-------------------------------------------------------------------------*/
-#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)
+#if (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) && \
+ !defined(CONFIG_MACH_OMAP_2430SDP)
#ifdef CONFIG_ARCH_OMAP24XX
#define OMAP_MMC1_BASE 0x4809c000
@@ -409,7 +411,8 @@ static inline void omap_init_uwire(void)
/*-------------------------------------------------------------------------*/
-#if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE)
+#if (defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE)) && \
+ !defined(CONFIG_MACH_OMAP_2430SDP)
#ifdef CONFIG_ARCH_OMAP24XX
#define OMAP_WDT_BASE 0x48022000
@@ -442,7 +445,8 @@ static inline void omap_init_wdt(void) {
/*-------------------------------------------------------------------------*/
-#if defined(CONFIG_HW_RANDOM_OMAP) || defined(CONFIG_HW_RANDOM_OMAP_MODULE)
+#if (defined(CONFIG_HW_RANDOM_OMAP) || defined(CONFIG_HW_RANDOM_OMAP_MODULE)) && \
+ !defined(CONFIG_MACH_OMAP_2430SDP)
#ifdef CONFIG_ARCH_OMAP24XX
#define OMAP_RNG_BASE 0x480A0000
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config
2007-03-19 17:35 [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config Dirk Behme
@ 2007-03-20 16:05 ` tony
2007-03-20 16:41 ` Syed Mohammed, Khasim
0 siblings, 1 reply; 5+ messages in thread
From: tony @ 2007-03-20 16:05 UTC (permalink / raw)
To: Dirk Behme; +Cc: linux-omap-open-source
* Dirk Behme <dirk.behme@googlemail.com> [070319 13:41]:
>
> Fix warnings
>
> arch/arm/plat-omap/devices.c:159: warning: 'omap_init_kp'
> defined but not used
> arch/arm/plat-omap/devices.c:282: warning: 'omap_init_mmc'
> defined but not used
> arch/arm/plat-omap/devices.c:436: warning: 'omap_init_wdt'
> defined but not used
> arch/arm/plat-omap/devices.c:469: warning: 'omap_init_rng'
> defined but not used
AFAIK some these devices are on 2430, so maybe somebody could
patch them to work instead? The DSP is different from 2420 though.
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config
2007-03-20 16:05 ` tony
@ 2007-03-20 16:41 ` Syed Mohammed, Khasim
2007-03-20 18:04 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Syed Mohammed, Khasim @ 2007-03-20 16:41 UTC (permalink / raw)
To: tony, Dirk Behme; +Cc: linux-omap-open-source
Tony,
Keypad and MMC are different from that on 2420 SDP as such. Keypad is
based on TWL4030 Keypad controller and MMC is HSMMC controller. It might
take some time to send a patch.
I am actually working on the Keypad one, will post a patch soon.
Regards,
Khasim
>-----Original Message-----
>From: linux-omap-open-source-bounces@linux.omap.com [mailto:linux-omap-
>open-source-bounces@linux.omap.com] On Behalf Of tony@atomide.com
>Sent: Tuesday, March 20, 2007 11:06 AM
>To: Dirk Behme
>Cc: linux-omap-open-source@linux.omap.com
>Subject: Re: [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp
>config
>
>* Dirk Behme <dirk.behme@googlemail.com> [070319 13:41]:
>>
>> Fix warnings
>>
>> arch/arm/plat-omap/devices.c:159: warning: 'omap_init_kp'
>> defined but not used
>> arch/arm/plat-omap/devices.c:282: warning: 'omap_init_mmc'
>> defined but not used
>> arch/arm/plat-omap/devices.c:436: warning: 'omap_init_wdt'
>> defined but not used
>> arch/arm/plat-omap/devices.c:469: warning: 'omap_init_rng'
>> defined but not used
>
>AFAIK some these devices are on 2430, so maybe somebody could
>patch them to work instead? The DSP is different from 2420 though.
>
>Tony
>_______________________________________________
>Linux-omap-open-source mailing list
>Linux-omap-open-source@linux.omap.com
>http://linux.omap.com/mailman/listinfo/linux-omap-open-source
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config
2007-03-20 16:41 ` Syed Mohammed, Khasim
@ 2007-03-20 18:04 ` Tony Lindgren
2007-04-03 19:53 ` tony
0 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2007-03-20 18:04 UTC (permalink / raw)
To: Syed Mohammed, Khasim; +Cc: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 419 bytes --]
* Syed Mohammed, Khasim <x0khasim@ti.com> [070320 12:42]:
> Tony,
>
> Keypad and MMC are different from that on 2420 SDP as such. Keypad is
> based on TWL4030 Keypad controller and MMC is HSMMC controller. It might
> take some time to send a patch.
>
> I am actually working on the Keypad one, will post a patch soon.
OK, how about this patch instead then? It assumes that wdt and rng
are the same.
Regards,
Tony
[-- Attachment #2: patch-fix-2430-warnings --]
[-- Type: text/plain, Size: 1357 bytes --]
ARM:OMAP: Fix compile warnings for 2430
Some 2430 devices are different and not yet done.
Signed-off-by: Tony Lindgren <tony@atomide.com>
--- a/arch/arm/plat-omap/devices.c
+++ b/arch/arm/plat-omap/devices.c
@@ -157,6 +157,10 @@ static inline void omap_init_i2c(void) {}
static void omap_init_kp(void)
{
+ /* REVISIT: 2430 keypad is on TWL4030 */
+ if (cpu_is_omap2430())
+ return;
+
if (machine_is_omap_h2() || machine_is_omap_h3()) {
omap_cfg_reg(F18_1610_KBC0);
omap_cfg_reg(D20_1610_KBC1);
@@ -283,6 +287,10 @@ static void __init omap_init_mmc(void)
const struct omap_mmc_config *mmc_conf;
const struct omap_mmc_conf *mmc;
+ /* REVISIT: 2430 has HS MMC */
+ if (cpu_is_omap2430())
+ return;
+
/* NOTE: assumes MMC was never (wrongly) enabled */
mmc_conf = omap_get_config(OMAP_TAG_MMC, struct omap_mmc_config);
if (!mmc_conf)
@@ -495,10 +503,6 @@ static inline void omap_init_rng(void) {}
*/
static int __init omap_init_devices(void)
{
-/*
- * Need to enable relevant once for 2430 SDP
- */
-#ifndef CONFIG_MACH_OMAP_2430SDP
/* please keep these calls, and their implementations above,
* in alphabetical order so they're easier to sort through.
*/
@@ -508,7 +512,6 @@ static int __init omap_init_devices(void)
omap_init_uwire();
omap_init_wdt();
omap_init_rng();
-#endif
omap_init_i2c();
return 0;
}
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config
2007-03-20 18:04 ` Tony Lindgren
@ 2007-04-03 19:53 ` tony
0 siblings, 0 replies; 5+ messages in thread
From: tony @ 2007-04-03 19:53 UTC (permalink / raw)
To: Syed Mohammed, Khasim; +Cc: linux-omap-open-source
* Tony Lindgren <tony@atomide.com> [070320 14:06]:
> * Syed Mohammed, Khasim <x0khasim@ti.com> [070320 12:42]:
> > Tony,
> >
> > Keypad and MMC are different from that on 2420 SDP as such. Keypad is
> > based on TWL4030 Keypad controller and MMC is HSMMC controller. It might
> > take some time to send a patch.
> >
> > I am actually working on the Keypad one, will post a patch soon.
>
> OK, how about this patch instead then? It assumes that wdt and rng
> are the same.
>
> Regards,
>
> Tony
> ARM:OMAP: Fix compile warnings for 2430
>
> Some 2430 devices are different and not yet done.
>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
>
> --- a/arch/arm/plat-omap/devices.c
> +++ b/arch/arm/plat-omap/devices.c
> @@ -157,6 +157,10 @@ static inline void omap_init_i2c(void) {}
>
> static void omap_init_kp(void)
> {
> + /* REVISIT: 2430 keypad is on TWL4030 */
> + if (cpu_is_omap2430())
> + return;
> +
> if (machine_is_omap_h2() || machine_is_omap_h3()) {
> omap_cfg_reg(F18_1610_KBC0);
> omap_cfg_reg(D20_1610_KBC1);
> @@ -283,6 +287,10 @@ static void __init omap_init_mmc(void)
> const struct omap_mmc_config *mmc_conf;
> const struct omap_mmc_conf *mmc;
>
> + /* REVISIT: 2430 has HS MMC */
> + if (cpu_is_omap2430())
> + return;
> +
> /* NOTE: assumes MMC was never (wrongly) enabled */
> mmc_conf = omap_get_config(OMAP_TAG_MMC, struct omap_mmc_config);
> if (!mmc_conf)
> @@ -495,10 +503,6 @@ static inline void omap_init_rng(void) {}
> */
> static int __init omap_init_devices(void)
> {
> -/*
> - * Need to enable relevant once for 2430 SDP
> - */
> -#ifndef CONFIG_MACH_OMAP_2430SDP
> /* please keep these calls, and their implementations above,
> * in alphabetical order so they're easier to sort through.
> */
> @@ -508,7 +512,6 @@ static int __init omap_init_devices(void)
> omap_init_uwire();
> omap_init_wdt();
> omap_init_rng();
> -#endif
> omap_init_i2c();
> return 0;
> }
Pushed.
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-04-03 19:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 17:35 [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config Dirk Behme
2007-03-20 16:05 ` tony
2007-03-20 16:41 ` Syed Mohammed, Khasim
2007-03-20 18:04 ` Tony Lindgren
2007-04-03 19:53 ` tony
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox