public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Is FT232R chip supported in U-Boot?
@ 2011-11-10 13:15 Mahavir Prasad
  2011-11-10 13:47 ` Jens Scharsig
  2011-11-10 14:02 ` jonsmirl at gmail.com
  0 siblings, 2 replies; 4+ messages in thread
From: Mahavir Prasad @ 2011-11-10 13:15 UTC (permalink / raw)
  To: u-boot

Hello All,

We have our new board and I am porting U-Boot on it. I am first trying to
get U-Boot's console. FT232R is populated on the board and I need to use it
for the showing the console.

I looked into u-boot/drivers/serial folder but could not find any reference
to FT232R.

Could you please let me know whether FT232R is already supported in U-Boot?

Also, in case, I need to write the driver, I would like to confirm that I
need to write following functions in my driver:

serial_init, serial_setbrg, serial_puts, serial_putc, serial_tstc,
serial_getc

I also looked into the linux driver provided at
http://www.ftdichip.com/Drivers/VCP.htm

However, I felt that the linux driver's approach to the UART handling is
quite different than that of U-Boot. Could you please comment on this?

Regards,
Mahavir

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

* [U-Boot] Is FT232R chip supported in U-Boot?
  2011-11-10 13:15 [U-Boot] Is FT232R chip supported in U-Boot? Mahavir Prasad
@ 2011-11-10 13:47 ` Jens Scharsig
  2011-11-11 10:51   ` Mahavir Prasad
  2011-11-10 14:02 ` jonsmirl at gmail.com
  1 sibling, 1 reply; 4+ messages in thread
From: Jens Scharsig @ 2011-11-10 13:47 UTC (permalink / raw)
  To: u-boot

Am 2011-11-10 14:15, schrieb Mahavir Prasad:
> Hello All,
> 
> We have our new board and I am porting U-Boot on it. I am first trying to
> get U-Boot's console. FT232R is populated on the board and I need to use it
> for the showing the console.
> 

> I looked into u-boot/drivers/serial folder but could not find any reference
> to FT232R.
> 
> Could you please let me know whether FT232R is already supported in U-Boot?
> 

The U-Boot console need a real uart device, the FT232 is an USB to UART converter.
The serial console needs to initialize long before the usb stack is available.

Regards,

Jens

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

* [U-Boot] Is FT232R chip supported in U-Boot?
  2011-11-10 13:15 [U-Boot] Is FT232R chip supported in U-Boot? Mahavir Prasad
  2011-11-10 13:47 ` Jens Scharsig
@ 2011-11-10 14:02 ` jonsmirl at gmail.com
  1 sibling, 0 replies; 4+ messages in thread
From: jonsmirl at gmail.com @ 2011-11-10 14:02 UTC (permalink / raw)
  To: u-boot

On Thu, Nov 10, 2011 at 8:15 AM, Mahavir Prasad <er.mahavir@gmail.com> wrote:
> Hello All,
>
> We have our new board and I am porting U-Boot on it. I am first trying to
> get U-Boot's console. FT232R is populated on the board and I need to use it
> for the showing the console.

If the ft232 is attached to the CPU's console serial port you don't
need to do anything to it (make sure it has power and it is wired
correctly) and it will work automatically assuming you program the
CPU's serial port to work. Just plug the USB end of the cable into a
PC and use a terminal emulation program.  You need to match up the
baud rates.

If it is attached the other direction - USB hooked to the CPU, then
you will need to use a JTAG until you can get the USB subsystem
running in u-boot.

Either way getting a JTAG going first will make like easier at the lowest level.



>
> I looked into u-boot/drivers/serial folder but could not find any reference
> to FT232R.
>
> Could you please let me know whether FT232R is already supported in U-Boot?
>
> Also, in case, I need to write the driver, I would like to confirm that I
> need to write following functions in my driver:
>
> serial_init, serial_setbrg, serial_puts, serial_putc, serial_tstc,
> serial_getc
>
> I also looked into the linux driver provided at
> http://www.ftdichip.com/Drivers/VCP.htm
>
> However, I felt that the linux driver's approach to the UART handling is
> quite different than that of U-Boot. Could you please comment on this?
>
> Regards,
> Mahavir
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>



-- 
Jon Smirl
jonsmirl at gmail.com

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

* [U-Boot] Is FT232R chip supported in U-Boot?
  2011-11-10 13:47 ` Jens Scharsig
@ 2011-11-11 10:51   ` Mahavir Prasad
  0 siblings, 0 replies; 4+ messages in thread
From: Mahavir Prasad @ 2011-11-11 10:51 UTC (permalink / raw)
  To: u-boot

Thanks Jonsmirl, Jen!

I revisited the schematics and saw that UART from the CPU is also going
directly to a header (besides feeding the serial lines of FT232). So, first
I should program the CPU's UART and get output on the header. I will worry
about the FT232 later on. Hopefully, it will just work automatically
because the same UART is feeding the FT232 also.

Regards,
Mahavir


On Thu, Nov 10, 2011 at 7:32 PM, jonsmirl at gmail.com <jonsmirl@gmail.com>wrote:

>On Thu, Nov 10, 2011 at 8:15 AM, Mahavir Prasad <er.mahavir@gmail.com>
wrote:
> Hello All,
>
> We have our new board and I am porting U-Boot on it. I am first trying to
> get U-Boot's console. FT232R is populated on the board and I need to use
it
> for the showing the console.

If the ft232 is attached to the CPU's console serial port you don't
need to do anything to it (make sure it has power and it is wired
correctly) and it will work automatically assuming you program the
CPU's serial port to work. Just plug the USB end of the cable into a
PC and use a terminal emulation program.  You need to match up the
baud rates.

If it is attached the other direction - USB hooked to the CPU, then
you will need to use a JTAG until you can get the USB subsystem
running in u-boot.

Either way getting a JTAG going first will make like easier at the lowest
level.



On Thu, Nov 10, 2011 at 7:17 PM, Jens Scharsig <esw@bus-elektronik.de>wrote:

> Am 2011-11-10 14:15, schrieb Mahavir Prasad:
> > Hello All,
> >
> > We have our new board and I am porting U-Boot on it. I am first trying to
> > get U-Boot's console. FT232R is populated on the board and I need to use
> it
> > for the showing the console.
> >
>
> > I looked into u-boot/drivers/serial folder but could not find any
> reference
> > to FT232R.
> >
> > Could you please let me know whether FT232R is already supported in
> U-Boot?
> >
>
> The U-Boot console need a real uart device, the FT232 is an USB to UART
> converter.
> The serial console needs to initialize long before the usb stack is
> available.
>
> Regards,
>
> Jens
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>

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

end of thread, other threads:[~2011-11-11 10:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 13:15 [U-Boot] Is FT232R chip supported in U-Boot? Mahavir Prasad
2011-11-10 13:47 ` Jens Scharsig
2011-11-11 10:51   ` Mahavir Prasad
2011-11-10 14:02 ` jonsmirl at gmail.com

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