summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-11-21 00:41:54 -0500
committerGitHub <[email protected]>2023-11-21 13:41:54 +0800
commitdf29a13d89ee6255abf48dc3beb017a8d7c77aa4 (patch)
tree636bac4a2f93ba946673a067fdcf18aa6d54deaa /bsp
parenteff3560d64fda22ec5c4568dc06f7d3f9a5feef5 (diff)
[components] remove vmm (#8269)
Diffstat (limited to 'bsp')
-rw-r--r--bsp/beaglebone/applications/board.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/bsp/beaglebone/applications/board.c b/bsp/beaglebone/applications/board.c
index ae110fb57f..941ed4d759 100644
--- a/bsp/beaglebone/applications/board.c
+++ b/bsp/beaglebone/applications/board.c
@@ -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);
}