public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* patchs commits
@ 2006-11-09 17:27 Luís Vitório Cargnini
  2006-11-09 20:28 ` tony
  2006-11-17  3:19 ` Reading and Writing to Omap register Arnold
  0 siblings, 2 replies; 16+ messages in thread
From: Luís Vitório Cargnini @ 2006-11-09 17:27 UTC (permalink / raw)
  To: OMAP

Please when all this patches will be commited in main tree ?
Are they commited ?

-- 
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Mastering Degree student @ PUC-RS
Electrical Engineer Faculty
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500  extension: 7696
---------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-09 17:27 patchs commits Luís Vitório Cargnini
@ 2006-11-09 20:28 ` tony
  2006-11-09 20:44   ` Hingkwan Huen
  2006-11-16 16:55   ` Luís Vitório Cargnini
  2006-11-17  3:19 ` Reading and Writing to Omap register Arnold
  1 sibling, 2 replies; 16+ messages in thread
From: tony @ 2006-11-09 20:28 UTC (permalink / raw)
  To: Luís Vitório Cargnini; +Cc: OMAP

* Luís Vitório Cargnini <lvcargnini@ieee.org> [061109 21:45]:
> Please when all this patches will be commited in main tree ?
> Are they commited ?

We feed most of the omap core patches within the two week merge window
after a stable mainline kernel is tagged. Drivers go throug appropriate
driver mailing lists.

Mainline kernel should be mostly usable for omap1, except there are still
several important drivers missing, such as framebuffer.

Regards,

Tony

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: patchs commits
  2006-11-09 20:28 ` tony
@ 2006-11-09 20:44   ` Hingkwan Huen
  2006-11-09 20:51     ` Tony Lindgren
  2006-11-16 16:55   ` Luís Vitório Cargnini
  1 sibling, 1 reply; 16+ messages in thread
From: Hingkwan Huen @ 2006-11-09 20:44 UTC (permalink / raw)
  To: tony, 'Luís Vitório Cargnini'; +Cc: 'OMAP'

Hello Tony,

How about OMAP2? Is there a way that I can find out the supported list of
features for OMAP2, well, OMAP2420 H4 in particular?

Thanks,
kwan

-----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: Thursday, November 09, 2006 12:29 PM
To: Luís Vitório Cargnini
Cc: OMAP
Subject: Re: patchs commits

* Luís Vitório Cargnini <lvcargnini@ieee.org> [061109 21:45]:
> Please when all this patches will be commited in main tree ?
> Are they commited ?

We feed most of the omap core patches within the two week merge window
after a stable mainline kernel is tagged. Drivers go throug appropriate
driver mailing lists.

Mainline kernel should be mostly usable for omap1, except there are still
several important drivers missing, such as framebuffer.

Regards,

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] 16+ messages in thread

* Re: patchs commits
  2006-11-09 20:44   ` Hingkwan Huen
@ 2006-11-09 20:51     ` Tony Lindgren
  2006-11-09 21:08       ` David Brownell
  2006-11-09 22:11       ` Hingkwan Huen
  0 siblings, 2 replies; 16+ messages in thread
From: Tony Lindgren @ 2006-11-09 20:51 UTC (permalink / raw)
  To: Hingkwan Huen; +Cc: 'OMAP'

* Hingkwan Huen <hkh@cypress.com> [061109 22:44]:
> Hello Tony,
> 
> How about OMAP2? Is there a way that I can find out the supported list of
> features for OMAP2, well, OMAP2420 H4 in particular?

The core stuff should be pretty well in sync for basic stuff such
as irq, timers, gpio, dma etc. But at least power management is still
not very functional. There should be some patches coming for PM, but
it may take a little while longer.

For the drivers, serial, NOR, i2c, and smc91x should work in mainline tree. 
Framebuffer should work in linux-omap tree. MMC is probably currently
broken for Menelaus, but there are some patches coming for that.

Hope that helps,

Tony

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-09 20:51     ` Tony Lindgren
@ 2006-11-09 21:08       ` David Brownell
  2006-11-09 22:08         ` Hingkwan Huen
  2006-11-09 22:11       ` Hingkwan Huen
  1 sibling, 1 reply; 16+ messages in thread
From: David Brownell @ 2006-11-09 21:08 UTC (permalink / raw)
  To: tony, hkh; +Cc: Linux-omap-open-source

> 	 MMC is probably currently
> broken for Menelaus, but there are some patches coming for that.

On at least one H4 board, it seems to not come up ... :)

- dave

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: patchs commits
  2006-11-09 21:08       ` David Brownell
@ 2006-11-09 22:08         ` Hingkwan Huen
  0 siblings, 0 replies; 16+ messages in thread
From: Hingkwan Huen @ 2006-11-09 22:08 UTC (permalink / raw)
  To: 'David Brownell', tony; +Cc: Linux-omap-open-source

MMC seems to work on H4 with 2.6.16 kernel with the OMAP2 patch, except if
you eject and re-install the card, you have to reboot the board. 
At least that's what I am currently using right now.

-Kwan

-----Original Message-----
From: David Brownell [mailto:david-b@pacbell.net] 
Sent: Thursday, November 09, 2006 1:08 PM
To: tony@atomide.com; hkh@cypress.com
Cc: Linux-omap-open-source@linux.omap.com
Subject: Re: patchs commits

> 	 MMC is probably currently
> broken for Menelaus, but there are some patches coming for that.

On at least one H4 board, it seems to not come up ... :)

- dave

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: patchs commits
  2006-11-09 20:51     ` Tony Lindgren
  2006-11-09 21:08       ` David Brownell
@ 2006-11-09 22:11       ` Hingkwan Huen
  2006-11-09 23:40         ` Tony Lindgren
  1 sibling, 1 reply; 16+ messages in thread
From: Hingkwan Huen @ 2006-11-09 22:11 UTC (permalink / raw)
  To: 'Tony Lindgren'; +Cc: 'OMAP'

Hello Tony,

Do you know if the USB OHCI and Gadget are functional for the OMAP2420 H4?

Thanks,
kwan


-----Original Message-----
From: Tony Lindgren [mailto:tony@atomide.com] 
Sent: Thursday, November 09, 2006 12:52 PM
To: Hingkwan Huen
Cc: 'Luís Vitório Cargnini'; 'OMAP'
Subject: Re: patchs commits

* Hingkwan Huen <hkh@cypress.com> [061109 22:44]:
> Hello Tony,
> 
> How about OMAP2? Is there a way that I can find out the supported list of
> features for OMAP2, well, OMAP2420 H4 in particular?

The core stuff should be pretty well in sync for basic stuff such
as irq, timers, gpio, dma etc. But at least power management is still
not very functional. There should be some patches coming for PM, but
it may take a little while longer.

For the drivers, serial, NOR, i2c, and smc91x should work in mainline tree. 
Framebuffer should work in linux-omap tree. MMC is probably currently
broken for Menelaus, but there are some patches coming for that.

Hope that helps,

Tony

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-09 22:11       ` Hingkwan Huen
@ 2006-11-09 23:40         ` Tony Lindgren
  2006-11-10  1:17           ` David Brownell
  0 siblings, 1 reply; 16+ messages in thread
From: Tony Lindgren @ 2006-11-09 23:40 UTC (permalink / raw)
  To: Hingkwan Huen; +Cc: 'OMAP'

* Hingkwan Huen <hkh@cypress.com> [061110 00:11]:
> Hello Tony,
> 
> Do you know if the USB OHCI and Gadget are functional for the OMAP2420 H4?

I think after Kyungmin's and Dave's patches it may be close to working
in linux-omap tree :)

Regards,

Tony

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-09 23:40         ` Tony Lindgren
@ 2006-11-10  1:17           ` David Brownell
  2006-11-11  0:13             ` Tony Lindgren
  0 siblings, 1 reply; 16+ messages in thread
From: David Brownell @ 2006-11-10  1:17 UTC (permalink / raw)
  To: tony, hkh; +Cc: Linux-omap-open-source

> > Do you know if the USB OHCI and Gadget are functional for the OMAP2420 H4?
>
> I think after Kyungmin's and Dave's patches it may be close to working
> in linux-omap tree :)

Well, here's the missing "add H4 USB support" patch ... with one
glitch, "doesn't work yet".

- Dave

[PATCH] USB peripheral support on H4

H4 has two peripheral ports, one for "download" and one for OTG.
The one to use is selected through Kconfig.

Also removes some bad whitespace from isp1301_omap.c

NOTE:  not yet working; I suspect there's a clock still turned off
or something like that, since neither port responds.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>


Index: h4/arch/arm/mach-omap2/Kconfig
===================================================================
--- h4.orig/arch/arm/mach-omap2/Kconfig	2006-11-03 11:28:25.000000000 -0800
+++ h4/arch/arm/mach-omap2/Kconfig	2006-11-03 11:28:26.000000000 -0800
@@ -41,6 +41,27 @@ config MACH_OMAP_H4_TUSB
 	  Be sure to select OTG mode operation, not host-only or
 	  peripheral-only.
 
+config MACH_OMAP_H4_OTG
+	bool "Use USB OTG connector, not device connector (S1.10)"
+	depends on MACH_OMAP_H4
+	help
+	  Set this if you've set S1.10 (on the mainboard) to use the
+	  Mini-AB (OTG) connector and OTG transceiver with the USB0
+	  port, instead of the Mini-B ("download") connector with its
+	  non-OTG transceiver.
+
+	  Note that the "download" connector can be used to bootstrap
+	  the system from the OMAP mask ROM.  Also, since this is a
+	  development platform, you can also force the OTG port into
+	  a non-OTG operational mode.
+
+config MACH_OMAP2_H4_USB1
+	bool "Use USB1 port, not UART2 (S3.3)"
+	depends on MACH_OMAP_H4
+	help
+	  Set this if you've set SW3.3 (on the CPU card) so that the
+	  expansion connectors receive USB1 signals instead of UART2.
+
 config MACH_OMAP_APOLLON
 	bool "OMAP 2420 Apollon board"
 	depends on ARCH_OMAP2 && ARCH_OMAP24XX
Index: h4/drivers/usb/gadget/Kconfig
===================================================================
--- h4.orig/drivers/usb/gadget/Kconfig	2006-11-03 11:27:29.000000000 -0800
+++ h4/drivers/usb/gadget/Kconfig	2006-11-03 11:28:26.000000000 -0800
@@ -168,7 +168,7 @@ config USB_GADGET_MUSB_HDRC
 config USB_GADGET_OMAP
 	boolean "OMAP USB Device Controller"
 	depends on ARCH_OMAP
-	select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3
+	select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_OMAP_H4_OTG
 	help
 	   Many Texas Instruments OMAP processors have flexible full
 	   speed USB device controllers, with support for up to 30
Index: h4/drivers/i2c/chips/isp1301_omap.c
===================================================================
--- h4.orig/drivers/i2c/chips/isp1301_omap.c	2006-11-03 11:27:29.000000000 -0800
+++ h4/drivers/i2c/chips/isp1301_omap.c	2006-11-03 11:28:26.000000000 -0800
@@ -68,7 +68,7 @@ struct isp1301 {
 
 	/* use keventd context to change the state for us */
 	struct work_struct	work;
-	
+
 	unsigned long		todo;
 #		define WORK_UPDATE_ISP	0	/* update ISP from OTG */
 #		define WORK_UPDATE_OTG	1	/* update OTG from ISP */
@@ -306,7 +306,7 @@ static void power_up(struct isp1301 *isp
 {
 	// isp1301_clear_bits(isp, ISP1301_MODE_CONTROL_2, MC2_GLOBAL_PWR_DN);
 	isp1301_clear_bits(isp, ISP1301_MODE_CONTROL_1, MC1_SUSPEND_REG);
-	
+
 	/* do this only when cpu is driving transceiver,
 	 * so host won't see a low speed device...
 	 */
@@ -818,7 +818,7 @@ static irqreturn_t omap_otg_irq(int irq,
 		/* role is host */
 		} else {
 			if (!(otg_ctrl & OTG_ID)) {
-		 		otg_ctrl &= OTG_CTRL_MASK & ~OTG_XCEIV_INPUTS;
+				otg_ctrl &= OTG_CTRL_MASK & ~OTG_XCEIV_INPUTS;
 				OTG_CTRL_REG = otg_ctrl | OTG_A_BUSREQ;
 			}
 
@@ -1245,6 +1245,9 @@ static int isp1301_detach_client(struct 
 	if (machine_is_omap_h3())
 		omap_free_gpio(14);
 
+	if (machine_is_omap_h4())
+		omap_free_gpio(125);
+
 	isp->timer.data = 0;
 	set_bit(WORK_STOP, &isp->todo);
 	del_timer_sync(&isp->timer);
@@ -1266,7 +1269,7 @@ static int isp1301_detach_client(struct 
  *  - DEVICE mode, for when there's a B/Mini-B (device) connector
  *
  * As a rule, you won't have an isp1301 chip unless it's there to
- * support the OTG mode.  Other modes help testing USB controllers 
+ * support the OTG mode.  Other modes help testing USB controllers
  * in isolation from (full) OTG support, or maybe so later board
  * revisions can help to support those feature.
  */
@@ -1282,9 +1285,9 @@ static int isp1301_otg_enable(struct isp
 	 * a few more interrupts than are strictly needed.
 	 */
 	isp1301_set_bits(isp, ISP1301_INTERRUPT_RISING,
-	 	INTR_VBUS_VLD | INTR_SESS_VLD | INTR_ID_GND);
+		INTR_VBUS_VLD | INTR_SESS_VLD | INTR_ID_GND);
 	isp1301_set_bits(isp, ISP1301_INTERRUPT_FALLING,
-	 	INTR_VBUS_VLD | INTR_SESS_VLD | INTR_ID_GND);
+		INTR_VBUS_VLD | INTR_SESS_VLD | INTR_ID_GND);
 
 	dev_info(&isp->client.dev, "ready for dual-role USB ...\n");
 
@@ -1323,14 +1326,15 @@ isp1301_set_host(struct otg_transceiver 
 
 	power_up(isp);
 
+// XXX h4 too?
 	if (machine_is_omap_h2() || machine_is_omap_h3())
 		isp1301_set_bits(isp, ISP1301_MODE_CONTROL_1, MC1_DAT_SE0);
 
 	dev_info(&isp->client.dev, "A-Host sessions ok\n");
 	isp1301_set_bits(isp, ISP1301_INTERRUPT_RISING,
-	 	INTR_ID_GND);
+		INTR_ID_GND);
 	isp1301_set_bits(isp, ISP1301_INTERRUPT_FALLING,
-	 	INTR_ID_GND);
+		INTR_ID_GND);
 
 	/* If this has a Mini-AB connector, this mode is highly
 	 * nonstandard ... but can be handy for testing, especially with
@@ -1386,13 +1390,14 @@ isp1301_set_peripheral(struct otg_transc
 	power_up(isp);
 	isp->otg.state = OTG_STATE_B_IDLE;
 
+// XXX h4 too?
 	if (machine_is_omap_h2() || machine_is_omap_h3())
 		isp1301_set_bits(isp, ISP1301_MODE_CONTROL_1, MC1_DAT_SE0);
 
 	isp1301_set_bits(isp, ISP1301_INTERRUPT_RISING,
-	 	INTR_SESS_VLD | INTR_VBUS_VLD);
+		INTR_SESS_VLD | INTR_VBUS_VLD);
 	isp1301_set_bits(isp, ISP1301_INTERRUPT_FALLING,
-	 	INTR_VBUS_VLD | INTR_SESS_VLD);
+		INTR_VBUS_VLD | INTR_SESS_VLD);
 	dev_info(&isp->client.dev, "B-Peripheral sessions ok\n");
 	dump_regs(isp, __FUNCTION__);
 
@@ -1589,6 +1594,7 @@ fail1:
 	}
 #endif
 
+// XXX h4 too?
 	if (machine_is_omap_h2() || machine_is_omap_h3()) {
 		/* full speed signaling by default */
 		isp1301_set_bits(isp, ISP1301_MODE_CONTROL_1,
@@ -1615,6 +1621,15 @@ fail1:
 		isp->irq_type = SA_TRIGGER_FALLING;
 	}
 
+	if (machine_is_omap_h4()) {
+		/* IRQ wired at P14 */
+		omap_cfg_reg(P14_24XX_GPIO125);
+		isp->irq = OMAP_GPIO_IRQ(125);
+		omap_request_gpio(125);
+		omap_set_gpio_direction(125, 1);
+		isp->irq_type = IRQF_TRIGGER_LOW;
+	}
+
 	status = request_irq(isp->irq, isp1301_irq,
 			isp->irq_type, DRIVER_NAME, isp);
 	if (status < 0) {
Index: h4/arch/arm/mach-omap2/board-h4.c
===================================================================
--- h4.orig/arch/arm/mach-omap2/board-h4.c	2006-11-03 11:28:25.000000000 -0800
+++ h4/arch/arm/mach-omap2/board-h4.c	2006-11-03 11:28:26.000000000 -0800
@@ -362,7 +362,11 @@ static void __init omap_h4_init_irq(void
 }
 
 static struct omap_uart_config h4_uart_config __initdata = {
+#ifdef	CONFIG_MACH_OMAP2_H4_USB1
+	.enabled_uarts = ((1 << 0) | (1 << 1)),
+#else
 	.enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
+#endif
 };
 
 static struct omap_mmc_config h4_mmc_config __initdata = {
@@ -379,10 +383,44 @@ static struct omap_lcd_config h4_lcd_con
 	.ctrl_name	= "internal",
 };
 
+static struct omap_usb_config h4_usb_config __initdata = {
+#ifdef	CONFIG_MACH_OMAP2_H4_USB1
+	/* NOTE:  usb1 could also be used with 3 wire signaling */
+	.pins[1]	= 4,
+#endif
+
+#ifdef	CONFIG_MACH_OMAP_H4_OTG
+	/* S1.10 ON -- USB OTG port
+	 * usb0 switched to Mini-AB port and isp1301 transceiver;
+	 * S2.POS3 = OFF, S2.POS4 = ON ... to allow battery charging
+	 */
+	.otg		= 1,
+	.pins[0]	= 4,
+#ifdef	CONFIG_USB_GADGET_OMAP
+	/* use OTG cable, or standard A-to-MiniB */
+	.hmc_mode	= 0x14,	/* 0:dev/otg 1:host 2:disable */
+#elif	defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
+	/* use OTG cable, or NONSTANDARD (B-to-MiniB) */
+	.hmc_mode	= 0x11,	/* 0:host 1:host 2:disable */
+#endif	/* XX */
+
+#else
+	/* S1.10 OFF -- usb "download port"
+	 * usb0 switched to Mini-B port and isp1105 transceiver;
+	 * S2.POS3 = ON, S2.POS4 = OFF ... to enable battery charging
+	 */
+	.register_dev	= 1,
+	.pins[0]	= 3,
+//	.hmc_mode	= 0x14,	/* 0:dev 1:host 2:disable */
+	.hmc_mode	= 0x00,	/* 0:dev|otg 1:disable 2:disable */
+#endif
+};
+
 static struct omap_board_config_kernel h4_config[] = {
 	{ OMAP_TAG_UART,	&h4_uart_config },
 	{ OMAP_TAG_MMC,		&h4_mmc_config },
 	{ OMAP_TAG_LCD,		&h4_lcd_config },
+	{ OMAP_TAG_USB,		&h4_usb_config },
 };
 
 #ifdef	CONFIG_MACH_OMAP_H4_TUSB
@@ -471,6 +509,14 @@ static void __init omap_h4_init(void)
 	}
 #endif
 
+#ifdef	CONFIG_MACH_OMAP2_H4_USB1
+	/* S3.3 controls whether these pins are for UART2 or USB1 */
+	omap_cfg_reg(N14_24XX_USB1_SE0);
+	omap_cfg_reg(P15_24XX_USB1_DAT);
+	omap_cfg_reg(W20_24XX_USB1_TXEN);
+	omap_cfg_reg(V19_24XX_USB1_RCV);
+#endif
+
 	platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices));
 	omap_board_config = h4_config;
 	omap_board_config_size = ARRAY_SIZE(h4_config);

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-10  1:17           ` David Brownell
@ 2006-11-11  0:13             ` Tony Lindgren
  2006-11-11  3:05               ` David Brownell
  0 siblings, 1 reply; 16+ messages in thread
From: Tony Lindgren @ 2006-11-11  0:13 UTC (permalink / raw)
  To: David Brownell; +Cc: Linux-omap-open-source

* David Brownell <david-b@pacbell.net> [061110 03:18]:
> > > Do you know if the USB OHCI and Gadget are functional for the OMAP2420 H4?
> >
> > I think after Kyungmin's and Dave's patches it may be close to working
> > in linux-omap tree :)
> 
> Well, here's the missing "add H4 USB support" patch ... with one
> glitch, "doesn't work yet".
> 
> - Dave
> 
> [PATCH] USB peripheral support on H4
> 
> H4 has two peripheral ports, one for "download" and one for OTG.
> The one to use is selected through Kconfig.
> 
> Also removes some bad whitespace from isp1301_omap.c
> 
> NOTE:  not yet working; I suspect there's a clock still turned off
> or something like that, since neither port responds.

Pushing. (And assuming you'll push the USB changes upstream eventually
via your USB channels)

Tony

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-11  0:13             ` Tony Lindgren
@ 2006-11-11  3:05               ` David Brownell
  2006-11-11 17:02                 ` Tony Lindgren
  0 siblings, 1 reply; 16+ messages in thread
From: David Brownell @ 2006-11-11  3:05 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Linux-omap-open-source

On Friday 10 November 2006 4:13 pm, Tony Lindgren wrote:
> * David Brownell <david-b@pacbell.net> [061110 03:18]:
> > > > Do you know if the USB OHCI and Gadget are functional for the OMAP2420 H4?
> > >
> > > I think after Kyungmin's and Dave's patches it may be close to working
> > > in linux-omap tree :)
> > 
> > Well, here's the missing "add H4 USB support" patch ... with one
> > glitch, "doesn't work yet".
> > 
> > ...
> 
> Pushing. (And assuming you'll push the USB changes upstream eventually
> via your USB channels)

Stuff in drivers/usb (and the isp1301 driver) will eventually go
upstream that way ... stuff in arch/arm should IMO be stuff you hand
off through Russell.

- Dave

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-11  3:05               ` David Brownell
@ 2006-11-11 17:02                 ` Tony Lindgren
  0 siblings, 0 replies; 16+ messages in thread
From: Tony Lindgren @ 2006-11-11 17:02 UTC (permalink / raw)
  To: David Brownell; +Cc: Linux-omap-open-source

* David Brownell <david-b@pacbell.net> [061111 05:05]:
> On Friday 10 November 2006 4:13 pm, Tony Lindgren wrote:
> > * David Brownell <david-b@pacbell.net> [061110 03:18]:
> > > > > Do you know if the USB OHCI and Gadget are functional for the OMAP2420 H4?
> > > >
> > > > I think after Kyungmin's and Dave's patches it may be close to working
> > > > in linux-omap tree :)
> > > 
> > > Well, here's the missing "add H4 USB support" patch ... with one
> > > glitch, "doesn't work yet".
> > > 
> > > ...
> > 
> > Pushing. (And assuming you'll push the USB changes upstream eventually
> > via your USB channels)
> 
> Stuff in drivers/usb (and the isp1301 driver) will eventually go
> upstream that way ... stuff in arch/arm should IMO be stuff you hand
> off through Russell.

OK, I'll split that patch accordingly for Russell.

Tony

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: patchs commits
  2006-11-09 20:28 ` tony
  2006-11-09 20:44   ` Hingkwan Huen
@ 2006-11-16 16:55   ` Luís Vitório Cargnini
  1 sibling, 0 replies; 16+ messages in thread
From: Luís Vitório Cargnini @ 2006-11-16 16:55 UTC (permalink / raw)
  To: OMAP

thanks for the answer and for me to take so long to thanks.

On 11/9/06, tony@atomide.com <tony@atomide.com> wrote:
>
> * Luís Vitório Cargnini <lvcargnini@ieee.org> [061109 21:45]:
> > Please when all this patches will be commited in main tree ?
> > Are they commited ?
>
> We feed most of the omap core patches within the two week merge window
> after a stable mainline kernel is tagged. Drivers go throug appropriate
> driver mailing lists.
>
> Mainline kernel should be mostly usable for omap1, except there are still
> several important drivers missing, such as framebuffer.
>
> Regards,
>
> Tony
>
>


-- 
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Mastering Degree student @ PUC-RS
Electrical Engineer Faculty
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500  extension: 7696
---------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Reading and Writing to Omap register
  2006-11-09 17:27 patchs commits Luís Vitório Cargnini
  2006-11-09 20:28 ` tony
@ 2006-11-17  3:19 ` Arnold
  2006-11-17  3:37   ` Khem Raj
  1 sibling, 1 reply; 16+ messages in thread
From: Arnold @ 2006-11-17  3:19 UTC (permalink / raw)
  To: Linux-omap-open-source

Hi All,

I been having problems reading/writing to omap
registers. I'm using the __raw_read and __raw_write.
It seems that when I use the __raw_readl the values of
the register that is passed back to when I read the
register is always 0. I am accessing a 4byte register
and I want to write a value to it, but whenever I
check the values using __raw_read_l, the values does
not change. But it confuses me when I tried to use a
__raw_readb it changes the value. It also concerns me 
because the register that I am accesing is a 4byte
register and not a 1 bytes register. Below is my
implementation:
Using __raw_readl:
u32 l;

l = 0x10;
__raw_writel(l,MY_REG);
printk("MY_REG = %x \n", __raw_readl(l,MY_REG));
--> This implementation always  prints a 0.

However when I use this implementation:
l = 0x10;
__raw_writeb(l,MY_REG);
printk("MY_REG = %x \n", __raw_readb(l,MY_REG));
--> This implementation  prints a 0x10.

Does anyone knows whats wrong? I am using an omap5912
and kernel2.6.17. 

I hope somebody could tell me whats wrong. Thank you
very much in advance.















 
____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. 
$510k for $1,698/mo. Calculate new payment! 
www.LowerMyBills.com/lre

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading and Writing to Omap register
  2006-11-17  3:19 ` Reading and Writing to Omap register Arnold
@ 2006-11-17  3:37   ` Khem Raj
  2006-11-20  1:51     ` Arnold
  0 siblings, 1 reply; 16+ messages in thread
From: Khem Raj @ 2006-11-17  3:37 UTC (permalink / raw)
  To: Arnold; +Cc: Linux-omap-open-source



Arnold said the following on 11/16/2006 7:19 PM:
> Hi All,
>
> I been having problems reading/writing to omap
> registers. I'm using the __raw_read and __raw_write.
> It seems that when I use the __raw_readl the values of
> the register that is passed back to when I read the
> register is always 0. I am accessing a 4byte register
> and I want to write a value to it, but whenever I
> check the values using __raw_read_l, the values does
> not change. But it confuses me when I tried to use a
> __raw_readb it changes the value. It also concerns me 
> because the register that I am accesing is a 4byte
> register and not a 1 bytes register. Below is my
> implementation:
> Using __raw_readl:
> u32 l;
>
> l = 0x10;
> __raw_writel(l,MY_REG);
> printk("MY_REG = %x \n", __raw_readl(l,MY_REG));
>   
why are you passing 'l' as first argument here? This function accepts 
only one argument and that should be MY_REG in your case.
> --> This implementation always  prints a 0.
>
> However when I use this implementation:
> l = 0x10;
> __raw_writeb(l,MY_REG);
> printk("MY_REG = %x \n", __raw_readb(l,MY_REG));
> --> This implementation  prints a 0x10.
>   
same here
> Does anyone knows whats wrong? I am using an omap5912
> and kernel2.6.17. 
>
> I hope somebody could tell me whats wrong. Thank you
> very much in advance.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
> ____________________________________________________________________________________
> Sponsored Link
>
> Mortgage rates near 39yr lows. 
> $510k for $1,698/mo. Calculate new payment! 
> www.LowerMyBills.com/lre
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>   

-- 
Khem Raj <kraj@mvista.com>
MontaVista Software Inc.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading and Writing to Omap register
  2006-11-17  3:37   ` Khem Raj
@ 2006-11-20  1:51     ` Arnold
  0 siblings, 0 replies; 16+ messages in thread
From: Arnold @ 2006-11-20  1:51 UTC (permalink / raw)
  To: Khem Raj; +Cc: Linux-omap-open-source

Hi,

Sorry it was just a typo error. What I am using is:

__raw_writel(l,MY_REG);
printk("MY_REG = %x \n", __raw_readl(MY_REG));

The MY_REG is a 4byte register. I can not change the
value if I am using the __raw_writel. But if I use a
__raw_writew or __raw_writeb and if I print the value
of the register using __raw_readw and __raw_readb the
value changes. 

Is there something wrong with what I am doing? It
seems to be weird.





--- Khem Raj <kraj@mvista.com> wrote:

> 
> 
> Arnold said the following on 11/16/2006 7:19 PM:
> > Hi All,
> >
> > I been having problems reading/writing to omap
> > registers. I'm using the __raw_read and
> __raw_write.
> > It seems that when I use the __raw_readl the
> values of
> > the register that is passed back to when I read
> the
> > register is always 0. I am accessing a 4byte
> register
> > and I want to write a value to it, but whenever I
> > check the values using __raw_read_l, the values
> does
> > not change. But it confuses me when I tried to use
> a
> > __raw_readb it changes the value. It also concerns
> me 
> > because the register that I am accesing is a 4byte
> > register and not a 1 bytes register. Below is my
> > implementation:
> > Using __raw_readl:
> > u32 l;
> >
> > l = 0x10;
> > __raw_writel(l,MY_REG);
> > printk("MY_REG = %x \n", __raw_readl(l,MY_REG));
> >   
> why are you passing 'l' as first argument here? This
> function accepts 
> only one argument and that should be MY_REG in your
> case.
> > --> This implementation always  prints a 0.
> >
> > However when I use this implementation:
> > l = 0x10;
> > __raw_writeb(l,MY_REG);
> > printk("MY_REG = %x \n", __raw_readb(l,MY_REG));
> > --> This implementation  prints a 0x10.
> >   
> same here
> > Does anyone knows whats wrong? I am using an
> omap5912
> > and kernel2.6.17. 
> >
> > I hope somebody could tell me whats wrong. Thank
> you
> > very much in advance.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  
> >
>
____________________________________________________________________________________
> > Sponsored Link
> >
> > Mortgage rates near 39yr lows. 
> > $510k for $1,698/mo. Calculate new payment! 
> > www.LowerMyBills.com/lre
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> >
>
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >   
> 
> -- 
> Khem Raj <kraj@mvista.com>
> MontaVista Software Inc.
> 
> 



 
____________________________________________________________________________________
Sponsored Link

$420k for $1,399/mo. 
Think You Pay Too Much For Your Mortgage? 
Find Out! www.LowerMyBills.com/lre

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-11-20  1:51 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09 17:27 patchs commits Luís Vitório Cargnini
2006-11-09 20:28 ` tony
2006-11-09 20:44   ` Hingkwan Huen
2006-11-09 20:51     ` Tony Lindgren
2006-11-09 21:08       ` David Brownell
2006-11-09 22:08         ` Hingkwan Huen
2006-11-09 22:11       ` Hingkwan Huen
2006-11-09 23:40         ` Tony Lindgren
2006-11-10  1:17           ` David Brownell
2006-11-11  0:13             ` Tony Lindgren
2006-11-11  3:05               ` David Brownell
2006-11-11 17:02                 ` Tony Lindgren
2006-11-16 16:55   ` Luís Vitório Cargnini
2006-11-17  3:19 ` Reading and Writing to Omap register Arnold
2006-11-17  3:37   ` Khem Raj
2006-11-20  1:51     ` Arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox