[U-Boot] [PATCH] arm: Kirkwood: Basic SOCs support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sat May 30 00:22:21 CEST 2009


> + *
> + * Reference Documentation:
> + * Mbus-L to Mbus Bridge Registers Configuration.
> + * (Sec 25.1 and 25.3 of Datasheet)
> + */
> +int kw_config_adr_windows(void)
> +{
> +	struct kwwin_registers *winregs =
> +		(struct kwwin_registers *)KW_CPU_WIN_BASE;
> +
> +	writel(KWCPU_WIN_CTRL_DATA(0xc0000, KWCPU_TARGET_PCIE,
> +				KWCPU_ATTR_PCIE_MEM, KWCPU_WIN_ENABLE),
> +		&winregs[0].ctrl);
> +
> +	writel(0x90000000, &winregs[0].base);
any chance to have some macro for the 0x90000000 & co...

other fine

Best Regards,
J.


More information about the U-Boot mailing list