mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-23 18:38:51 +09:00
![Tom Rini](/assets/img/avatar_default.png)
This moves what was in arch/arm/cpu/armv7/omap-common in to arch/arm/mach-omap2 and moves arch/arm/cpu/armv7/{am33xx,omap3,omap4,omap5} in to arch/arm/mach-omap2 as subdirectories. All refernces to the former locations are updated to the current locations. For the logic to decide what our outputs are, consolidate the tests into a single config.mk rather than including 4. Signed-off-by: Tom Rini <trini@konsulko.com>
30 lines
535 B
C
30 lines
535 B
C
/*
|
|
*
|
|
* Common layer for reset related functionality of OMAP based socs.
|
|
*
|
|
* (C) Copyright 2012
|
|
* Texas Instruments, <www.ti.com>
|
|
*
|
|
* Sricharan R <r.sricharan@ti.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
#include <config.h>
|
|
#include <asm/io.h>
|
|
#include <asm/arch/cpu.h>
|
|
#include <linux/compiler.h>
|
|
|
|
void __weak reset_cpu(unsigned long ignored)
|
|
{
|
|
writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
|
|
}
|
|
|
|
u32 __weak warm_reset(void)
|
|
{
|
|
return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
|
|
}
|
|
|
|
void __weak setup_warmreset_time(void)
|
|
{
|
|
}
|