Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/allwinner_machdep.c
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
#include <machine/bus.h> | #include <machine/bus.h> | ||||
#include <machine/devmap.h> | #include <machine/devmap.h> | ||||
#include <machine/machdep.h> | #include <machine/machdep.h> | ||||
#include <machine/platformvar.h> | #include <machine/platformvar.h> | ||||
#include <dev/fdt/fdt_common.h> | #include <dev/fdt/fdt_common.h> | ||||
#include <arm/allwinner/a10_wdog.h> | #include <arm/allwinner/aw_wdog.h> | ||||
#include <arm/allwinner/allwinner_machdep.h> | #include <arm/allwinner/allwinner_machdep.h> | ||||
#include "platform_if.h" | #include "platform_if.h" | ||||
static u_int soc_type; | static u_int soc_type; | ||||
static u_int soc_family; | static u_int soc_family; | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
bus_dma_get_range_nb(void) | bus_dma_get_range_nb(void) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
cpu_reset() | cpu_reset() | ||||
{ | { | ||||
a10wd_watchdog_reset(); | aw_wdog_watchdog_reset(); | ||||
printf("Reset failed!\n"); | printf("Reset failed!\n"); | ||||
while (1); | while (1); | ||||
} | } | ||||
static platform_method_t a10_methods[] = { | static platform_method_t a10_methods[] = { | ||||
PLATFORMMETHOD(platform_attach, a10_attach), | PLATFORMMETHOD(platform_attach, a10_attach), | ||||
PLATFORMMETHOD(platform_lastaddr, allwinner_lastaddr), | PLATFORMMETHOD(platform_lastaddr, allwinner_lastaddr), | ||||
PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | ||||
Show All 26 Lines |