[U-Boot] [PATCH 1/5] sh: Add macros for SH-4A 32-Bit Address Extended Mode

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Fri Feb 27 10:20:41 CET 2009


On Wed, 25 Feb 2009 14:26:37 +0900
Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com> wrote:

> +#if defined(CONFIG_SH_32BIT)
> +#define PMB_ADDR_BASE(entry)	(0xf6100000 + (entry << 8))
> +#define PMB_DATA_BASE(entry)	(0xf7100000 + (entry << 8))
> +#define mk_pmb_addr_val(vpn)	((vpn << 24))
> +#define mk_pmb_data_val(ppn, ub, v, sz1, sz0, c, wt)	\
> +				((ppn << 24) | (ub << 9) | (v << 8) | \
> +				 (sz1 << 7) | (sz0 << 4) | (c << 3) | wt)
> +#endif
Please use macro.

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu


More information about the U-Boot mailing list