mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
rk30: reboot use the second global software reset
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
#include <linux/io.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <mach/system.h>
|
||||
#include <mach/cru.h>
|
||||
#include <mach/iomux.h>
|
||||
|
||||
static void rk30_arch_reset(char mode, const char *cmd)
|
||||
{
|
||||
/* disable remap */
|
||||
writel_relaxed(1 << (12 + 16), RK30_GRF_BASE + GRF_SOC_CON0);
|
||||
dsb();
|
||||
writel_relaxed(0xeca8, RK30_CRU_BASE + CRU_GLB_SRST_SND);
|
||||
dsb();
|
||||
}
|
||||
|
||||
void (*arch_reset)(char, const char *) = rk30_arch_reset;
|
||||
|
||||
Reference in New Issue
Block a user