All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut.n900@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/8] PXA: Balloon3 board support
Date: Tue, 07 Sep 2010 23:27:03 +0200	[thread overview]
Message-ID: <1283894823.7386.2.camel@konomi> (raw)
In-Reply-To: <20100907211713.58309153798@gemini.denx.de>

N900 mailclient is stupid ... Bear with it please.
----- P?vodn? zpr?va -----
> Dear Marek Vasut,
> 
> In message <1282296691-15910-7-git-send-email-marek.vasut@gmail.com> you
> wrote:
> > The following hardware is currently supported:
> > - UART
> > - USB Host
> > - FPGA
> ...
> > +int usb_board_init(void)
> > +{
> > +??? UHCHR = (UHCHR | UHCHR_PCPL | UHCHR_PSPL) &
> > +??? ??? ~(UHCHR_SSEP0 | UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSE);
> > +
> > +??? UHCHR |= UHCHR_FSBIR;
> > +
> > +??? while (UHCHR & UHCHR_FSBIR);
> > +
> > +??? UHCHR &= ~UHCHR_SSE;
> > +??? UHCHIE = (UHCHIE_UPRIE | UHCHIE_RWIE);
> > +
> > +??? /* Clear any OTG Pin Hold */
> > +??? if (PSSR & PSSR_OTGPH)
> > +??? ??? PSSR |= PSSR_OTGPH;
> > +
> > +??? UHCRHDA &= ~(0x200);
> > +??? UHCRHDA |= 0x100;
> > +
> > +??? /* Set port power control mask bits, only 3 ports. */
> > +??? UHCRHDB |= (0x7<<17);
> > +
> > +??? /* enable port 2 */
> > +??? UP2OCR |= UP2OCR_HXOE | UP2OCR_HXS | UP2OCR_DMPDE | UP2OCR_DPPDE;
> 
> Why aren't you using I/O accessors here?
> 

Hey Wolfgang,

we already discussed this somewhere. Check how arch/arm/include/mach-pxa/pxa-regs.h is done. It's ripped off the linux kernel. We already came to a conclusion that it needs to be reworked (remove the _REG() macro crud and use io accessors).

Though I'd like to propose if we could get this stuff in prior to reworking pxa-regs.h as the change will be very intrusive. To have a stable revision where the boards work in case something went wrong.

> > +void usb_board_stop(void)
> > +{
> > +??? UHCHR |= UHCHR_FHR;
> > +??? udelay(11);
> > +??? UHCHR &= ~UHCHR_FHR;
> > +
> > +??? UHCCOMS |= 1;
> > +??? udelay(10);
> > +
> > +??? CKEN &= ~CKEN10_USBHOST;
> 
> And here, and so on?
> 
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> DENX Software Engineering GmbH,? ? ? ?  MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Don't tell me how hard you work.?  Tell me how much you get done.
>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?  -- James J. Ling

  reply	other threads:[~2010-09-07 21:27 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10  4:50 [U-Boot] [PATCH 1/9] ARM: Define __raw_readX and __raw_writeX Marek Vasut
2010-08-10  4:50 ` [U-Boot] [PATCH 2/9] PXA: pxafb: Add ACX517AKN support Marek Vasut
2010-08-10 21:45   ` Wolfgang Denk
2010-08-10 23:56     ` Marek Vasut
2010-08-20  9:31   ` [U-Boot] [PATCH 1/8] " Marek Vasut
2010-08-20  9:31   ` [U-Boot] [PATCH 2/8] common: Enable serial for PXA250 Marek Vasut
2010-08-20  9:31   ` [U-Boot] [PATCH 3/8 v2] PXA: Palm Tungsten|C Support Marek Vasut
2010-08-20  9:31   ` [U-Boot] [PATCH 4/8] PXA: pxafb: Add support for Sharp LQ038J7DH53 Marek Vasut
2010-08-20  9:31   ` [U-Boot] [PATCH 5/8] PXA: Add initial Palm LifeDrive support Marek Vasut
2010-08-20  9:31   ` [U-Boot] [PATCH 6/8] PXA: Voipac270 improvements Marek Vasut
2010-09-07 21:13     ` Wolfgang Denk
2010-09-07 21:30       ` Marek Vasut
2010-09-07 22:34         ` Marek Vasut
2010-08-20  9:31   ` [U-Boot] [PATCH 7/8] PXA: Balloon3 board support Marek Vasut
2010-09-07 21:17     ` Wolfgang Denk
2010-09-07 21:27       ` Marek Vasut [this message]
2010-08-20  9:31   ` [U-Boot] [PATCH 8/8] PXA: Add missing MAINTAINERS entries Marek Vasut
2010-08-10  4:50 ` [U-Boot] [PATCH 3/9] common: Enable serial for PXA250 Marek Vasut
2010-08-10  4:50 ` [U-Boot] [PATCH 4/9] PXA: Palm Tungsten|C Support Marek Vasut
2010-08-10  4:50 ` [U-Boot] [PATCH 5/9] PXA: pxafb: Add support for Sharp LQ038J7DH53 Marek Vasut
2010-08-10  4:50 ` [U-Boot] [PATCH 6/9] PXA: Add initial Palm LifeDrive support Marek Vasut
2010-08-10  4:50 ` [U-Boot] [PATCH 7/9] PXA: Voipac270 improvements Marek Vasut
2010-08-10  4:50 ` [U-Boot] [PATCH 8/9] PXA: Balloon3 board support Marek Vasut
2010-08-10 21:52   ` Wolfgang Denk
2010-08-10  4:50 ` [U-Boot] [PATCH 9/9] PXA: Add missing MAINTAINERS entries Marek Vasut
2010-08-10 21:48   ` Wolfgang Denk
2010-08-10 21:38 ` [U-Boot] [PATCH 1/9] ARM: Define __raw_readX and __raw_writeX Wolfgang Denk
2010-08-10 23:52   ` Marek Vasut

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=1283894823.7386.2.camel@konomi \
    --to=marek.vasut.n900@gmail.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.