]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/tegra2/reset-arm-tegra2.cpp
update
[l4.git] / kernel / fiasco / src / kern / arm / bsp / tegra2 / reset-arm-tegra2.cpp
1 IMPLEMENTATION [arm && tegra2]:
2
3 #include "io.h"
4 #include "kmem.h"
5
6 class Tegra2_reset
7 {
8 public:
9   enum
10   {
11     RESET = Kmem::Clock_reset_map_base + 0x4,
12   };
13 };
14
15 // ------------------------------------------------------------------------
16 IMPLEMENTATION [arm && tegra2]:
17
18 void __attribute__ ((noreturn))
19 platform_reset(void)
20 {
21   Io::write(Io::read<Mword>(Tegra2_reset::RESET) | 4, Tegra2_reset::RESET);
22   for (;;)
23     ;
24 }