[U-Boot-Users] [PATCH 4/5] AT91CAP9 support : board/ files
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Thu Jan 31 08:28:52 CET 2008
On 20:49 Tue 29 Jan , Stelian Pop wrote:
> +
> + /* Unlock EMAC, 3 0 2 1 sequence */
> +#define MP_BLOCK_3_BASE 0xFDF00000
> +#define MP_MAC_KEY0 0x5969cb2a
> +#define MP_MAC_KEY1 0xb4a1872e
> +#define MP_MAC_KEY2 0x05683fbc
> +#define MP_MAC_KEY3 0x3634fba4
> +#define UNLOCK_MAC 0x00000008
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x3c)) = MP_MAC_KEY3;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x30)) = MP_MAC_KEY0;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x38)) = MP_MAC_KEY2;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x34)) = MP_MAC_KEY1;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x40)) = UNLOCK_MAC;
> +#undef MP_BLOCK_3_BASE
> +#undef MP_MAC_KEY0
> +#undef MP_MAC_KEY1
> +#undef MP_MAC_KEY2
> +#undef MP_MAC_KEY3
> +#undef UNLOCK_MAC
> +}
> +#endif
> +
> +#ifdef CONFIG_USB_OHCI_NEW
> +static void at91cap9_uhp_hw_init(void)
> +{
> + /* Unlock USB OHCI, 3 2 0 1 sequence */
> +#define MP_BLOCK_3_BASE 0xFDF00000
> +#define MP_OHCI_KEY0 0x896c11ca
> +#define MP_OHCI_KEY1 0x68ebca21
> +#define MP_OHCI_KEY2 0x4823efbc
> +#define MP_OHCI_KEY3 0x8651aae4
> +#define UNLOCK_OHCI 0x00000010
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x3c)) = MP_OHCI_KEY3;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x38)) = MP_OHCI_KEY2;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x30)) = MP_OHCI_KEY0;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x34)) = MP_OHCI_KEY1;
> + *((AT91_REG *)((AT91_REG) MP_BLOCK_3_BASE + 0x40)) = UNLOCK_OHCI;
> +#undef MP_BLOCK_3_BASE
> +#undef MP_OHCI_KEY0
> +#undef MP_OHCI_KEY1
> +#undef MP_OHCI_KEY2
> +#undef MP_OHCI_KEY3
> +#undef UNLOCK_OHCI
> +}
Unneeded #undef please remove it.
It will take time during build and when you build all arm, it's a waste
of time.
Best Regards,
J.
More information about the U-Boot
mailing list