freebsd-skq/sys/mips
landonf ad8bfa4b99 mips/broadcom: Implement CFE-based EARLY_PRINTF support.
This adds support for EARLY_PRINTF via the CFE console; the aim is to
provide a fix for the otherwise cyclic dependency between PMU discovery
and console printf/DELAY:

- We need to parse the bhnd(4) core table to determine the address (and
  type) of the PMU/PLL registers and calculate the CPU clock frequency.
- The core table parsing code will emit a printf() if a parse error is
  hit.
- Safely calling printf() without EARLY_PRINTF requires a working
  DELAY+cninit, which means we need the PMU.

Errors in core table parsing shouldn't happen, but lack of EARLY_PRINTF
makes debugging more difficult.

Approved by:	adrian (mentor)
Differential Revision:	https://reviews.freebsd.org/D7498
2016-08-17 20:24:14 +00:00
..
adm5120 Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
alchemy Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
atheros [arge] add some extra MDIO debugging support 2016-08-05 17:16:35 +00:00
beri Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
broadcom mips/broadcom: Implement CFE-based EARLY_PRINTF support. 2016-08-17 20:24:14 +00:00
cavium sys: use our roundup2/rounddown2() macros when param.h is available. 2016-04-21 19:57:40 +00:00
conf mips/broadcom: Implement CFE-based EARLY_PRINTF support. 2016-08-17 20:24:14 +00:00
gxemul Add 32-bit support for Gxemul's oldtestmips machine emulation 2013-09-04 20:34:36 +00:00
idt Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
include [mips] add support for using the MIPS user register for TLS data. 2016-08-07 01:29:55 +00:00
malta Fixed FreeBSD/mips MALTA support for QEMU 2016-06-29 23:33:44 +00:00
mediatek Build etherswitch support for appropriate Ralink/Mediatek SoCs 2016-05-25 06:47:28 +00:00
mips [mips] fix use-before-initialised. 2016-08-16 07:51:05 +00:00
nlm Consistently use device_t 2016-08-09 19:32:06 +00:00
rmi Consistently use device_t 2016-08-09 19:32:06 +00:00
rt305x Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
sibyte sys: use our roundup2/rounddown2() macros when param.h is available. 2016-04-21 19:57:40 +00:00