Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/ralink/rt1310_machdep.c
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Add a single static device mapping. | * Add a single static device mapping. | ||||
* The values used were taken from the ranges property of the SoC node in the | * The values used were taken from the ranges property of the SoC node in the | ||||
* dts file when this code was converted to arm_devmap_add_entry(). | * dts file when this code was converted to arm_devmap_add_entry(). | ||||
*/ | */ | ||||
int | int | ||||
platform_devmap_init(void) | platform_devmap_init(void) | ||||
{ | { | ||||
devmap_add_entry(0x19C00000, 0xE0000); | devmap_add_entry(0x19C00000, 0x4b00000); | ||||
mizhka: Why so big window? May be better to add additional entry?
| |||||
devmap_add_entry(0x1e800000, 0x800000); | devmap_add_entry(0x1e800000, 0x800000); | ||||
devmap_add_entry(0x1f000000, 0x400000); | devmap_add_entry(0x1f000000, 0x400000); | ||||
return (0); | return (0); | ||||
} | } | ||||
struct arm32_dma_range * | struct arm32_dma_range * | ||||
bus_dma_get_range(void) | bus_dma_get_range(void) | ||||
{ | { | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
int | int | ||||
bus_dma_get_range_nb(void) | bus_dma_get_range_nb(void) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | |||||
int get_cpuid(void); | |||||
andrewUnsubmitted Not Done Inline ActionsThis should be in a common header. andrew: This should be in a common header. | |||||
int | |||||
get_cpuid(void) | |||||
{ | |||||
bus_space_tag_t bst; | |||||
bus_space_handle_t bsh; | |||||
int res; | |||||
bst = fdtbus_bs_tag; | |||||
bus_space_map(bst, 0x1e8e0000, 0x20000, 0, &bsh); | |||||
res = bus_space_read_4(bst, bsh, 0x14); | |||||
bus_space_unmap(bst, bsh, 0x20000); | |||||
return res; | |||||
} | } | ||||
void | void | ||||
cpu_reset(void) | cpu_reset(void) | ||||
{ | { | ||||
bus_space_tag_t bst; | bus_space_tag_t bst; | ||||
bus_space_handle_t bsh; | bus_space_handle_t bsh; | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |
Why so big window? May be better to add additional entry?