public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Markus Klotzbücher" <mk@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] USB Uboot on OSK5912
Date: Mon, 21 Jul 2008 12:45:10 +0200	[thread overview]
Message-ID: <87bq0rseh5.fsf@denx.de> (raw)
In-Reply-To: <260904230807180841k1b269349oe802d67d858360b7@mail.gmail.com> (Shivdas Gujare's message of "Fri\, 18 Jul 2008 21\:11\:26 +0530")

"Shivdas Gujare" <shivdas.gujare@gmail.com> writes:

> I am working on getting USB-uboot working on OSK5912.
> from linux USB gadget "device controller drivers" (i.e.
> kernel/drivers/usb/gadget/) it looks like
> USB core for omap1510 and OSK5912 is same..But not sure, please confirm

No idea. You will have to RTFM.

> I done following steps.
> 1)make mrproper
> 2)make omap5912osk_config
> 3)go to include/configs/omap5912osk.h
>   and edit this file with following macros.
> .
> #define CONFIG_DOS_PARTITION  1
>
> #define CONFIG_USB_OHCI         1

Drop this. This would enable the old OHCI support.

> #define CONFIG_USB_OHCI_NEW             1
> #define CFG_USB_OHCI_MAX_ROOT_PORTS       1
> #define CFG_USB_OHCI_SLOT_NAME        "osk5912"
> #define CFG_USB_OHCI_REGS_BASE        0xfffba000
> #define CONFIG_USB_STORAGE 1
>
> #define CFG_USB_OHCI_BOARD_INIT 1
> #define CFG_USB_OHCI_CPU_INIT 1

You *might* have to implement these in order to enable power, clocks ...

> #define CONFIG_CMD_USB          1
>
> 4)after this, I am able to see USB command enabled on Uboot console.
>   but I am not able to see Mass-storage detected after inserting pendrive
> and doing "usb start"

You probably missed some initialization. Carefully check the
documentation of you CPU and implement it in the functions above.

> 5) from docs/README.generic_usb_ohci, It looks like usb_board_init/stop and
> usb_cpu_init/stop
>    functions are missing and needs to be implemented.

Exactly.

Best regards

Markus Klotzbuecher

--
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de

  reply	other threads:[~2008-07-21 10:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18 15:41 [U-Boot-Users] USB Uboot on OSK5912 Shivdas Gujare
2008-07-21 10:45 ` Markus Klotzbücher [this message]
2008-07-21 12:27   ` Shivdas Gujare
2008-07-25 12:08   ` Shivdas Gujare
2008-07-25 21:46   ` Hunter, Jon
2008-07-26 13:39     ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-26 23:21       ` Hunter, Jon
2008-07-27  0:56         ` [U-Boot-Users] [PATCH] omap1510: fix usbtty support Jean-Christophe PLAGNIOL-VILLARD
2008-07-28  5:48         ` [U-Boot-Users] USB Uboot on OSK5912 Shivdas Gujare
2008-07-28 13:37           ` Shivdas Gujare
2008-07-28 15:04             ` Hunter, Jon
2008-07-28 16:06               ` Hunter, Jon
2008-07-28 16:15                 ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-28 17:37                   ` Hunter, Jon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bq0rseh5.fsf@denx.de \
    --to=mk@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox