Skip to contentSkip to conversation

Basic support for siemens sx1

PATCH Pavel Machek 3 participants 6 messages Nov 16, 2006 – Nov 20, 2006

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

From: Vladimir Ananiev <[email protected]>

This adds basic support for Siemens SX1. More patches are available, with video driver, mixer, and serial ports working. That is enough to do gsm calls with right userland.

It would be nice to get basic patches merged to the -omap tree... do they look ok?

index 37641c1..9131d19 100644

arch/arm/mach-omap1/Kconfig +11 -0
@@ -107,6 +107,17 @@ config MACH_OMAP_PALMTT
 	  http://www.hackndev.com/palm/tt/ for more information.
 	  Say Y here if you have this PDA model, say N otherwise.
 
+config MACH_SX1
+	bool "Siemens SX1"
+	depends on ARCH_OMAP1 && ARCH_OMAP15XX
+	help
+	  Support for the Siemens SX1 phone. To boot the kernel,
+	  you'll need a SX1 compatible bootloader; check out 
+	  http://forum.oslik.ru and
+	  http://www.handhelds.org/moin/moin.cgi/SiemensSX1
+	  for more information.
+	  Say Y here if you have such a phone, say NO otherwise.
+
 config MACH_NOKIA770
 	bool "Nokia 770"
 	depends on ARCH_OMAP1 && ARCH_OMAP16XX
arch/arm/mach-omap1/Makefile +1 -0
index 6c2dd53..7b0e248 100644
@@ -29,6 +29,7 @@ obj-$(CONFIG_MACH_OMAP_PALMZ71)		+= boar
 obj-$(CONFIG_MACH_OMAP_PALMTT)		+= board-palmtt.o
 obj-$(CONFIG_MACH_NOKIA770)		+= board-nokia770.o
 obj-$(CONFIG_MACH_AMS_DELTA)		+= board-ams-delta.o
+obj-$(CONFIG_MACH_SX1)                  += board-sx1.o
 
 ifeq ($(CONFIG_ARCH_OMAP15XX),y)
 # Innovator-1510 FPGA
arch/arm/mach-omap1/board-sx1.c new file +494 -0

494 lines not on this page · raw message

drivers/mmc/omap.c +4 -1
index f23a0ce..eff3965 100644
@@ -37,6 +37,7 @@ #include <asm/arch/dma.h>
 #include <asm/arch/mux.h>
 #include <asm/arch/fpga.h>
 #include <asm/arch/tps65010.h>
+#include <asm/arch/board-sx1.h>
 
 #define	OMAP_MMC_REG_CMD	0x00
 #define	OMAP_MMC_REG_ARGL	0x04
@@ -906,7 +907,9 @@ #endif
  */
 static void mmc_omap_power(struct mmc_omap_host *host, int on)
 {
-	if (on) {
+	if (machine_is_sx1())
+		sx1_setmmcpower(on);
+	else if (on) {
 		if (machine_is_omap_innovator())
 			innovator_fpga_socket_power(1);
 		else if (machine_is_omap_h2())
drivers/usb/gadget/omap_udc.c +2 -1
index 31df02e..94813db 100644
@@ -2077,6 +2077,7 @@ static inline int machine_needs_vbus_ses
 #ifndef CONFIG_MACH_OMAP_H4_OTG
 		|| machine_is_omap_h4()
 #endif
+		|| machine_is_sx1()
 		);
 }
 
@@ -2823,7 +2824,7 @@ static int __init omap_udc_probe(struct 
 		hmc = HMC_1510;
 		type = "(unknown)";
 
-		if (machine_is_omap_innovator()) {
+		if (machine_is_omap_innovator() || machine_is_sx1()) {
 			/* just set up software VBUS detect, and then
 			 * later rig it so we always report VBUS.
 			 * FIXME without really sensing VBUS, we can't
include/asm-arm/arch-omap/board-sx1.h new file +46 -0

46 lines not on this page · raw message

include/asm-arm/arch-omap/hardware.h +4 -0
index 18c52d7..85e5b5f 100644
@@ -342,6 +342,10 @@ #ifdef CONFIG_MACH_OMAP_PALMTT
 #include "board-palmtt.h"
 #endif
 
+#ifdef CONFIG_MACH_SX1
+#include "board-sx1.h"
+#endif
+
 #endif /* !__ASSEMBLER__ */
 
 #endif	/* __ASM_ARCH_OMAP_HARDWARE_H */
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
reviewer
#1 lore raw

Hi,

Quoted 5 lines · Pavel Machek

From: Vladimir Ananiev <[email protected]>

This adds basic support for Siemens SX1. More patches are available, with video driver, mixer, and serial ports working. That is enough to do gsm calls with right userland.

Cool.

Quoted 2 lines

It would be nice to get basic patches merged to the -omap tree... do they look ok?

Yeah, looks good, except for the i2c part. Is Sofia really a TI PCF8574 i2c chip? In that case it could use the gpioexpander code.

Anyways, let's plan on pushing this to linux-omap tree, then do the changes for gpioexpander, and send that upstream too.

Regards,

Tony

#2 lore raw

Hi!

Quoted 8 lines · Pavel Machek
Quoted 5 lines

From: Vladimir Ananiev <[email protected]>

This adds basic support for Siemens SX1. More patches are available, with video driver, mixer, and serial ports working. That is enough to do gsm calls with right userland.

Cool.

:-)

Quoted 8 lines
Quoted 2 lines

It would be nice to get basic patches merged to the -omap tree... do they look ok?

Yeah, looks good, except for the i2c part. Is Sofia really a TI PCF8574 i2c chip? In that case it could use the gpioexpander code.

Anyways, let's plan on pushing this to linux-omap tree, then do the changes for gpioexpander, and send that upstream too.

Works for me. I'll check with google to find out what sofia really is.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
reviewer
#3 lore raw
Quoted 16 lines · Pavel Machek

Hi!

Quoted 8 lines · Pavel Machek
Quoted 5 lines

From: Vladimir Ananiev <[email protected]>

This adds basic support for Siemens SX1. More patches are available, with video driver, mixer, and serial ports working. That is enough to do gsm calls with right userland.

Cool.

:-)

Quoted 3 lines
Quoted 2 lines

It would be nice to get basic patches merged to the -omap tree... do they look ok?

Quoted 7 lines
Quoted 5 lines

Yeah, looks good, except for the i2c part. Is Sofia really a TI PCF8574 i2c chip? In that case it could use the gpioexpander code.

Anyways, let's plan on pushing this to linux-omap tree, then do the changes for gpioexpander, and send that upstream too.

Works for me. I'll check with google to find out what sofia really is.

OK, I've pushed to linux-omap after separating USB and MMC code into separate patches. Also did a bit more tabifying on the code.

BTW, PCF8574 .pdf is available on TI's site.

Regards,

Tony

#4 lore raw

2006/11/18, Tony Lindgren <[email protected]>:

Quoted 25 lines · Pavel Machek
Quoted 16 lines

Hi!

Quoted 8 lines · Pavel Machek
Quoted 5 lines

From: Vladimir Ananiev <[email protected]>

This adds basic support for Siemens SX1. More patches are available, with video driver, mixer, and serial ports working. That is enough to do gsm calls with right userland.

Cool.

:-)

Quoted 3 lines
Quoted 2 lines

It would be nice to get basic patches merged to the -omap tree... do they look ok?

Quoted 7 lines
Quoted 5 lines

Yeah, looks good, except for the i2c part. Is Sofia really a TI PCF8574 i2c chip? In that case it could use the gpioexpander code.

Anyways, let's plan on pushing this to linux-omap tree, then do the changes for gpioexpander, and send that upstream too.

Works for me. I'll check with google to find out what sofia really is.

Quoted 9 lines

OK, I've pushed to linux-omap after separating USB and MMC code into separate patches. Also did a bit more tabifying on the code.

BTW, PCF8574 .pdf is available on TI's site.

Regards,

Tony

Sofia is manufactured by Dialog and i didnt find any docs about it... And it is completely different from PCF8574, it is power controller IC.

reviewer
#5 lore raw
Quoted 31 lines · Vladimir

2006/11/18, Tony Lindgren <[email protected]>:

Quoted 30 lines · Pavel Machek
Quoted 16 lines

Hi!

Quoted 8 lines · Pavel Machek
Quoted 5 lines

From: Vladimir Ananiev <[email protected]>

This adds basic support for Siemens SX1. More patches are available, with video driver, mixer, and serial ports working. That is enough to do gsm calls with right userland.

Cool.

:-)

Quoted 3 lines
Quoted 2 lines

It would be nice to get basic patches merged to the -omap tree... do they look ok?

Quoted 7 lines
Quoted 5 lines

Yeah, looks good, except for the i2c part. Is Sofia really a TI PCF8574 i2c chip? In that case it could use the gpioexpander code.

Anyways, let's plan on pushing this to linux-omap tree, then do the changes for gpioexpander, and send that upstream too.

Works for me. I'll check with google to find out what sofia really is.

OK, I've pushed to linux-omap after separating USB and MMC code into separate patches. Also did a bit more tabifying on the code.

BTW, PCF8574 .pdf is available on TI's site.

Quoted 7 lines
Quoted 4 lines

Regards,

Tony

Sofia is manufactured by Dialog and i didnt find any docs about it... And it is completely different from PCF8574, it is power controller IC.

OK, thanks for clarifying that.

Tony