Merge branch 'master' of git://git.denx.de/u-boot-atmel
This commit is contained in:
@@ -45,7 +45,9 @@ int cleanup_before_linux (void)
|
||||
/* flush I/D-cache */
|
||||
static void cache_flush (void)
|
||||
{
|
||||
#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
|
||||
unsigned long i = 0;
|
||||
|
||||
asm ("mcr p15, 0, %0, c7, c7, 0": :"r" (i));
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/at91_common.h>
|
||||
#include <asm/arch/at91_pmc.h>
|
||||
#include <asm/arch/clk.h>
|
||||
#include <asm/arch/sama5d4.h>
|
||||
|
||||
char *get_cpu_name()
|
||||
@@ -28,3 +32,15 @@ char *get_cpu_name()
|
||||
else
|
||||
return "Unknown CPU type";
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_GADGET_ATMEL_USBA
|
||||
void at91_udp_hw_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
|
||||
/* Enable UPLL clock */
|
||||
writel(AT91_PMC_UPLLEN | AT91_PMC_BIASEN, &pmc->uckr);
|
||||
/* Enable UDPHS clock */
|
||||
at91_periph_clk_enable(ATMEL_ID_UDPHS);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,7 @@ static struct usba_ep_data usba_udc_ep[] = {
|
||||
EP("ep5", 5, 1024, 3, 1, 1),
|
||||
EP("ep6", 6, 1024, 3, 1, 1),
|
||||
};
|
||||
#elif defined(CONFIG_SAMA5D3)
|
||||
#elif defined(CONFIG_SAMA5D3) || defined(CONFIG_SAMA5D4)
|
||||
static struct usba_ep_data usba_udc_ep[] = {
|
||||
EP("ep0", 0, 64, 1, 0, 0),
|
||||
EP("ep1", 1, 1024, 3, 1, 0),
|
||||
|
||||
@@ -25,10 +25,12 @@ __weak void flush_cache(unsigned long start, unsigned long size)
|
||||
#endif /* CONFIG_CPU_ARM1136 */
|
||||
|
||||
#ifdef CONFIG_CPU_ARM926EJS
|
||||
#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
|
||||
/* test and clean, page 2-23 of arm926ejs manual */
|
||||
asm("0: mrc p15, 0, r15, c7, c10, 3\n\t" "bne 0b\n" : : : "memory");
|
||||
/* disable write buffer as well (page 2-22) */
|
||||
asm("mcr p15, 0, %0, c7, c10, 4" : : "r" (0));
|
||||
#endif
|
||||
#endif /* CONFIG_CPU_ARM926EJS */
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user