summaryrefslogtreecommitdiffstats
path: root/sys/arm/include
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-16 02:21:51 +0000
committerian <ian@FreeBSD.org>2014-05-16 02:21:51 +0000
commit979d09322879c661433d370b8f8f44881d70ea2f (patch)
tree7d5e707d239991534fc6644bdee36afac3a7d110 /sys/arm/include
parent8e2dd9b5e30117e2cab1d46c1cc0c2dfb4b7647e (diff)
downloadFreeBSD-src-979d09322879c661433d370b8f8f44881d70ea2f.zip
FreeBSD-src-979d09322879c661433d370b8f8f44881d70ea2f.tar.gz
MFC r262534, r262548, r262549, r262552, r262568, r262581, r262583, r262584,
r262585, r262587, r262696, r262712 Replace many pasted identical definitions of cpu_initclocks() with a common implementation in arm/machdep.c. aicasm: Don't complain about missing prototypes to ease bootstrap issues. Vybrid: Add driver for Inter-Integrated Circuit (I2C). imx6: Initialize the Low Power Mode bits to keep the ARM cores running during WFI. All our current ARM multi-core systems have all cores in one package with a shared L2 cache, reflect that in the common cpu_topo() routine. mpcore timer: Supply a DELAY() implementation via weak linkage, so that SoC-specific code can supply a better implementation. imx6: Add some rudimentary voltage control. Add an armv7 implementation of cpu_sleep(). Add __used attribute so that the DELAY implementation doesn't get optimized away as unreferenced, causing linker errors when trying to resolve the weak reference to the missing function.
Diffstat (limited to 'sys/arm/include')
-rw-r--r--sys/arm/include/cpufunc.h1
-rw-r--r--sys/arm/include/machdep.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/include/cpufunc.h b/sys/arm/include/cpufunc.h
index f38f9c1..68b15f5 100644
--- a/sys/arm/include/cpufunc.h
+++ b/sys/arm/include/cpufunc.h
@@ -523,6 +523,7 @@ void armv7_setup (char *string);
void armv7_context_switch (void);
void armv7_drain_writebuf (void);
void armv7_sev (void);
+void armv7_sleep (int unused);
u_int armv7_auxctrl (u_int, u_int);
void pj4bv7_setup (char *string);
void pj4b_config (void);
diff --git a/sys/arm/include/machdep.h b/sys/arm/include/machdep.h
index 101adf7..67cc9bf 100644
--- a/sys/arm/include/machdep.h
+++ b/sys/arm/include/machdep.h
@@ -32,6 +32,7 @@ vm_offset_t freebsd_parse_boot_param(struct arm_boot_params *abp);
vm_offset_t linux_parse_boot_param(struct arm_boot_params *abp);
vm_offset_t fake_preload_metadata(struct arm_boot_params *abp);
vm_offset_t parse_boot_param(struct arm_boot_params *abp);
+void arm_generic_initclocks(void);
/*
* Initialization functions called by the common initarm() function in
OpenPOWER on IntegriCloud