I wrote:
> I get a kernel that boots and seem to behave, except that WLAN
> isn't detected.

Ah, and some other minor items are missing, like everything that's
on the Glamo :) Also, adding the codec fails with:

[21474538.435000] WM8753 Audio Codec 0.16
[21474538.435000] soc-audio soc-audio: can't get i2c adapter 0
[21474538.440000] can't add codec bus driver
[21474538.440000] ALSA device list:
[21474538.445000]   No soundcards found.

And here's the clue:

[21474538.235000] s3c2440-i2c s3c2440-i2c: no platform data
[21474538.235000] s3c2440-i2c: probe of s3c2440-i2c failed with error -22

Patch attached.

- Werner
fix-i2c0-platdata.patch

i2c0 platform data wasn't initialized, which caused driver registration
to fail, and kept many other peripherals from initializing.

Signed-off-by: Werner Almesberger <[EMAIL PROTECTED]>

---

diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 3e201f4..6bac08b 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -76,6 +76,7 @@
 #include <plat/cpu.h>
 #include <plat/pm.h>
 #include <plat/udc.h>
+#include <plat/iic.h>
 #include <asm/plat-s3c24xx/neo1973.h>
 #include <mach/neo1973-pm-gsm.h>
 
@@ -1657,6 +1658,7 @@ static void __init gta02_machine_init(void)
 	s3c2410_gpio_cfgpin(S3C2410_GPD13, S3C2410_GPIO_OUTPUT);
 
 	s3c24xx_udc_set_platdata(&gta02_udc_cfg);
+	s3c_i2c0_set_platdata(NULL);
 	set_s3c2410ts_info(&gta02_ts_cfg);
 	
 	mangle_glamo_res_by_system_rev();

Reply via email to