mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
A10 reset mechanism is the same for all boards in this family so remove
redundant reset function implementation pointer. We might want to ressurect it later when support for other Allwinner chips is introduced.
This commit is contained in:
parent
3748deb755
commit
2655166c71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246661
@ -49,16 +49,16 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#include <dev/fdt/fdt_common.h>
|
#include <dev/fdt/fdt_common.h>
|
||||||
|
|
||||||
|
#include <arm/allwinner/a10_wdog.h>
|
||||||
|
|
||||||
/* Start of address space used for bootstrap map */
|
/* Start of address space used for bootstrap map */
|
||||||
#define DEVMAP_BOOTSTRAP_MAP_START 0xE0000000
|
#define DEVMAP_BOOTSTRAP_MAP_START 0xE0000000
|
||||||
|
|
||||||
void (*a10_cpu_reset)(void);
|
|
||||||
|
|
||||||
vm_offset_t
|
vm_offset_t
|
||||||
initarm_lastaddr(void)
|
initarm_lastaddr(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
a10_cpu_reset = NULL;
|
|
||||||
return (DEVMAP_BOOTSTRAP_MAP_START - ARM_NOCACHE_KVA_SIZE);
|
return (DEVMAP_BOOTSTRAP_MAP_START - ARM_NOCACHE_KVA_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,10 +113,7 @@ bus_dma_get_range_nb(void)
|
|||||||
void
|
void
|
||||||
cpu_reset()
|
cpu_reset()
|
||||||
{
|
{
|
||||||
if (a10_cpu_reset)
|
a10wd_watchdog_reset();
|
||||||
(*a10_cpu_reset)();
|
|
||||||
else
|
|
||||||
printf("no cpu_reset implementation\n");
|
|
||||||
printf("Reset failed!\n");
|
printf("Reset failed!\n");
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user