All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Porting ehci-exynos.c to handle exynos4412 (odroid-u2)
Date: Mon, 08 Jul 2013 08:56:27 +0200	[thread overview]
Message-ID: <20130708085627.61423fe9@amdc308.digital.local> (raw)
In-Reply-To: <CANoR_OALd1Spo5rvJ6s0vDopNGOksJ+kCaTGtK9nK7yhqFy28w@mail.gmail.com>

On Sun, 07 Jul 2013 02:15:17 -0700, Suriyan Ramasami wrote:

Hi Suriyan,

> Hi wonderful folks!
> 
>     I own an odroid-u2 and the u-boot that comes with it does not
> have usb support. Its configuration is smdk4412 and I do not find
> that in the u-boot sources. I see it in the arndale and harkernel
> branches.
> 
>    I do see that usb support was added to the arndale platform -
> which is exynos5 based. Is it easy to port it for exynos4412?

Patches for Exynos4412 based board (TRATS2) were already sent on the
mailing list:

http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/161578/match=introduce+samsung's+new+board+trats2

Please refer to them. It shall be relatively easy to add odroid-u2
support based on TRATS2.

> 
>    I did try it porting on my own accord and am listing it below...
> 
>    I seem to be hitting issues in drivers/usb/host/ehci-exynos.c ->
> function setup_usb_phy(struct exynos_usb_phy *usb).
> Would passing the correct address of usb for the exynos4412 do the
> trick? If so what should it be?
>   In this same file ehci_hcd_init() uses gpio->x3 and gpio->d1. In
> exynos4 looks like x3 is from gpio_part2. Also, do the d1 and x3
> translate to the same gpiod1 and gpiox3 in the exynos4412?
> 
> Furthermore, ehci-exynos.c uses functions from
> arch/arm/cpu/armv7/exynos/system.c which for the most part  are
> exynos5 oriented and do nothing for exynos4.
> 
> Can someone guide me as to what I could do, or some pointers to
> helpful docs? I do have the Exynos 4412 user manual.
> 
> Thanks
> - Suriyan


-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group

  reply	other threads:[~2013-07-08  6:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-07  9:15 [U-Boot] Porting ehci-exynos.c to handle exynos4412 (odroid-u2) Suriyan Ramasami
2013-07-08  6:56 ` Lukasz Majewski [this message]
2013-07-08 18:03   ` Suriyan Ramasami
2013-07-08 19:47     ` Lukasz Majewski
2013-07-11 16:39       ` Suriyan Ramasami

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=20130708085627.61423fe9@amdc308.digital.local \
    --to=l.majewski@samsung.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.