From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] efikamx: configure Smarttop PCBID and LED pads in DCD for convenience
Date: Thu, 23 Aug 2012 12:20:28 +0200 [thread overview]
Message-ID: <503603EC.2000400@denx.de> (raw)
In-Reply-To: <1345663541-26682-3-git-send-email-matt@genesi-usa.com>
On 22/08/2012 21:25, Matt Sealey wrote:
> PCBID pads seem to need time to settle due to external pulldowns, otherwise
> we are reading floating GPIO pins with implicit pad pullups and get the wrong
> data. However we can't "wait" at the time we need them before relocation,
> since timers are not available. The time taken to get from DCD to the code
> requiring the pads set seems to be more than long enough (even with caches
> enabled).
>
> We have space in the DCD due to the DDR settings changes to configure all
> the pad settings we need for this, plus the LED pad settings too which
> reduces the amount of code required later on.
>
> Signed-off-by: Matt Sealey <matt@genesi-usa.com>
> ---
> board/genesi/mx51_efikamx/imximage_mx.cfg | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/board/genesi/mx51_efikamx/imximage_mx.cfg b/board/genesi/mx51_efikamx/imximage_mx.cfg
> index ea6b271..38fa760 100644
> --- a/board/genesi/mx51_efikamx/imximage_mx.cfg
> +++ b/board/genesi/mx51_efikamx/imximage_mx.cfg
> @@ -45,6 +45,16 @@ BOOT_FROM spi
> # Address absolute address of the register
> # value value to be stored in the register
>
> +# Essential GPIO settings to be done as early as possible
> +# PCBIDn pad settings are all the defaults except #2 which needs HVE off
> +DATA 4 0x73fa8134 0x3 # PCBID0 ALT3 GPIO 3_16
> +DATA 4 0x73fa8130 0x3 # PCBID1 ALT3 GPIO 3_17
> +DATA 4 0x73fa8128 0x3 # PCBID2 ALT3 GPIO 3_11
> +DATA 4 0x73fa8504 0xe4 # PCBID2 PAD ~HVE
> +DATA 4 0x73fa8198 0x3 # LED0 ALT3 GPIO 3_13
> +DATA 4 0x73fa81c4 0x3 # LED1 ALT3 GPIO 3_14
> +DATA 4 0x73fa81c8 0x3 # LED2 ALT3 GPIO 3_15
> +
> # DDR bus IOMUX PAD settings
> DATA 4 0x73fa850c 0x20c5 # SDODT1
> DATA 4 0x73fa8510 0x20c5 # SDODT0
>
Acked-by: Stefano Babic <sbabic@denx.de>
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2012-08-23 10:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 19:25 [U-Boot] [PATCH v2 1/4] efikamx: move and rename Efika MX directories and config files to prepare for new boards Matt Sealey
2012-08-22 19:25 ` [U-Boot] [PATCH 2/4] efikamx: remove drive strength function and roll its functionality into the DCD Matt Sealey
2012-08-23 10:20 ` Stefano Babic
2012-08-27 6:16 ` Stefano Babic
2012-08-22 19:25 ` [U-Boot] [PATCH 3/4] efikamx: configure Smarttop PCBID and LED pads in DCD for convenience Matt Sealey
2012-08-23 10:20 ` Stefano Babic [this message]
2012-08-27 6:17 ` Stefano Babic
2012-08-22 19:25 ` [U-Boot] [PATCH 4/4] efikamx: update to Efika MX Smarttop and Smartbook boards Matt Sealey
2012-08-23 10:21 ` Stefano Babic
2012-08-27 6:15 ` Stefano Babic
2012-08-27 15:58 ` [U-Boot] [PATCH v2] " Matt Sealey
2012-08-27 17:36 ` Stefano Babic
2012-08-23 9:48 ` [U-Boot] [PATCH v2 1/4] efikamx: move and rename Efika MX directories and config files to prepare for new boards Stefano Babic
2012-08-23 10:21 ` Stefano Babic
2012-08-27 6:17 ` Stefano Babic
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=503603EC.2000400@denx.de \
--to=sbabic@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