linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hjk@linutronix.de (Hans J. Koch)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/7 v3] Basic IO mappings for mach-tcc8k
Date: Sat, 27 Mar 2010 19:42:13 +0100	[thread overview]
Message-ID: <20100327184212.GA2559@local> (raw)
In-Reply-To: <20100327180643.GM2035@bluebox.local>

On Sat, Mar 27, 2010 at 07:06:43PM +0100, Hans J. Koch wrote:
> Map the IO ranges of TCC8xxx peripherals.
> 
> Signed-off-by: "Hans J. Koch" <hjk@linutronix.de>
> ---
> +
> +#if 0
> +/*
> + * ----------------------------------------------------------------------------
> + * I/O mapping
> + * ----------------------------------------------------------------------------
> + */
> +
> +#define PCIO_BASE	0
> +
> +/* Address Map of Internal Peripherials (Base 0x80000000) */
> +#define IO_PHYS_A			0x80000000
> +#define IO_OFFSET_A			0x70000000 /* Virtual IO = 0xF0000000 */
> +#define IO_SIZE_A			0x100000
> +#define IO_VIRT_A			(IO_PHYS + IO_OFFSET)
> +#define IO_ADDRESS_A(pa)	((pa) + IO_OFFSET)
> +#define IO_P2V_A(pa)		((pa) + IO_OFFSET)
> +#define IO_V2P_A(va)		((va) - IO_OFFSET)
> +
> +/* Address Map of Internal Peripherials (Base 0x90000000) */
> +#define IO_PHYS_B			0x90000000
> +#define IO_OFFSET_B			0x61000000 /* Virtual IO = 0xF1000000 */
> +#define IO_SIZE_B			0x100000
> +#define IO_VIRT_B			(IO_PHYS + IO_OFFSET)
> +#define IO_ADDRESS_B(pa)	((pa) + IO_OFFSET)
> +#define IO_P2V_B(pa)		((pa) + IO_OFFSET)
> +#define IO_V2P_B(va)		((va) - IO_OFFSET)
> +#endif
> +
> +#endif

Dammit. I #if 0'ed these for a compile test and forgot to remove these lines
later. Will fix in the next version.

Thanks,
Hans

  reply	other threads:[~2010-03-27 18:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-27 17:56 [PATCH 0/7 v3] Add basic support for Telechips TCC8xxx SoCs Hans J. Koch
2010-03-27 18:01 ` [PATCH 1/7 v3] Introduce plat-tcc Hans J. Koch
2010-03-27 18:03 ` [PATCH 2/7 v3] Add the clock framework for Telechips TCC8xxx processors Hans J. Koch
2010-03-27 18:04 ` [PATCH 3/7 v3] Introduce plat-tcc irq framework Hans J. Koch
2010-03-27 18:05 ` [PATCH 4/7] Add TCC8xxx system timer Hans J. Koch
2010-03-27 18:06 ` [PATCH 5/7 v3] Basic IO mappings for mach-tcc8k Hans J. Koch
2010-03-27 18:42   ` Hans J. Koch [this message]
2010-03-27 18:07 ` [PATCH 6/7 v3] Add common platform devices for TCC8xxx SoCs Hans J. Koch
2010-03-27 18:09 ` [PATCH 7/7 v3] Add board support for Telechips TCC8000-SDK board Hans J. Koch

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=20100327184212.GA2559@local \
    --to=hjk@linutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).