mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
[components] remove vmm (#8269)
This commit is contained in:
@@ -16,13 +16,7 @@
|
||||
#include <mmu.h>
|
||||
#include <interrupt.h>
|
||||
|
||||
#ifdef RT_USING_VMM
|
||||
#include <vmm.h>
|
||||
static rt_uint32_t DMTIMER = 0;
|
||||
#define TIMER_HW_BASE (DMTIMER)
|
||||
#else
|
||||
#define TIMER_HW_BASE AM33XX_DMTIMER_7_REGS
|
||||
#endif
|
||||
|
||||
#define DMTIMER_TCLR_AR (0x00000002u)
|
||||
#define DMTIMER_TCLR_CE (0x00000040u)
|
||||
@@ -55,11 +49,7 @@ static void timer_clk_init(void)
|
||||
{
|
||||
unsigned long prcm_base;
|
||||
|
||||
#ifdef RT_USING_VMM
|
||||
prcm_base = vmm_find_iomap("PRCM");
|
||||
#else
|
||||
prcm_base = AM33XX_PRCM_REGS;
|
||||
#endif
|
||||
|
||||
/* software forced wakeup */
|
||||
CM_PER_L4LS_CLKSTCTRL_REG(prcm_base) |= 0x2;
|
||||
@@ -100,10 +90,6 @@ int rt_hw_timer_init(void)
|
||||
{
|
||||
rt_uint32_t counter;
|
||||
|
||||
#ifdef RT_USING_VMM
|
||||
DMTIMER = vmm_find_iomap("TIMER7");
|
||||
#endif
|
||||
|
||||
timer_clk_init();
|
||||
|
||||
/* soft reset the timer */
|
||||
@@ -164,13 +150,8 @@ void rt_hw_board_init(void)
|
||||
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
unsigned long prcm_base;
|
||||
unsigned long prcm_base = AM33XX_PRCM_REGS;
|
||||
|
||||
#ifdef RT_USING_VMM
|
||||
prcm_base = vmm_find_iomap("PRCM");
|
||||
#else
|
||||
prcm_base = AM33XX_PRCM_REGS;
|
||||
#endif
|
||||
REG32(PRM_DEVICE(prcm_base)) = 0x1;
|
||||
RT_ASSERT(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user