public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ian Campbell <ijc@hellion.org.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 01/11] sun6i: Add new p2wi controller driver
Date: Sat, 08 Nov 2014 10:14:28 +0000	[thread overview]
Message-ID: <1415441668.2030.7.camel@hellion.org.uk> (raw)
In-Reply-To: <1415389629-1298-2-git-send-email-hdegoede@redhat.com>

On Fri, 2014-11-07 at 20:46 +0100, Hans de Goede wrote:
> From: Oliver Schinagl <oliver@schinagl.nl>
> 
> The A31 uses a new push-pull two wire interface, which features higher
> transfer speeds (upto 6 MHz) in theory. While the hardware can burst 8
> bytes each time, this driver will only see very little use and thus is
> limited to single byte transmission only.
> 
> Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Acked-by: Ian Campbell <ijc@hellion.org.uk>

One question:
> +int p2wi_change_to_p2wi_mode(u8 slave_addr, u8 ctrl_reg, u8 init_data)
> +{
> +	struct sunxi_p2wi_reg *p2wi = (struct sunxi_p2wi_reg *)SUNXI_P2WI_BASE;
> +	unsigned long tmo = timer_get_us() + 1000000;
> +
> +	writel(P2WI_PM_DEV_ADDR(slave_addr) |
> +	       P2WI_PM_CTRL_ADDR(ctrl_reg) |
> +	       P2WI_PM_INIT_DATA(init_data) |
> +	       P2WI_PM_INIT_SEND,
> +	       &p2wi->pm);
> +
> +	while ((readl(&p2wi->pm) & P2WI_PM_INIT_SEND)) {
> +		if (timer_get_us() > tmo)
> +			return -EFAULT;

You don't mean ETIME(DOUT) or something here, do you? EFAULT seems a bit
odd.

Ian.

  reply	other threads:[~2014-11-08 10:14 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 19:46 [U-Boot] [PATCH v3 0/11] sun6i: Add dram init and SPL support Hans de Goede
2014-11-07 19:46 ` [U-Boot] [PATCH v3 01/11] sun6i: Add new p2wi controller driver Hans de Goede
2014-11-08 10:14   ` Ian Campbell [this message]
2014-11-08 10:22     ` Hans de Goede
2014-11-07 19:47 ` [U-Boot] [PATCH v3 02/11] sun6i: Add basic axp221 driver Hans de Goede
2014-11-08 10:19   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 03/11] sun6i: Add clock functions needed for SPL / DRAM init Hans de Goede
2014-11-08 10:20   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 04/11] sun6i: Add cpucfg register definitions Hans de Goede
2014-11-08 10:20   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 05/11] sun4i: Rename dram files to dram_sun4i.x Hans de Goede
2014-11-08 10:21   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 06/11] sun6i: Add dram initialization code Hans de Goede
2014-11-08 10:25   ` Ian Campbell
2014-11-08 10:35     ` Hans de Goede
2014-11-07 19:47 ` [U-Boot] [PATCH v3 07/11] sun6i: Poke magic sram controller register to avoid cache issues Hans de Goede
2014-11-08 10:26   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 08/11] sun6i: Enable SPL Hans de Goede
2014-11-08 10:26   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 09/11] sun6i: Add Mele M9 board Hans de Goede
2014-11-08 10:27   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 10/11] sunxi: ehci: Add proper Kconfig options to select the usb Vbus gpio-s Hans de Goede
2014-11-08 10:28   ` Ian Campbell
2014-11-07 19:47 ` [U-Boot] [PATCH v3 11/11] sun6i: ehci: Add sun6i ehci support Hans de Goede
2014-11-08 10:30   ` Ian Campbell

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=1415441668.2030.7.camel@hellion.org.uk \
    --to=ijc@hellion.org.uk \
    --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