freebsd-nq/sys/mips/broadcom
Landon J. Fuller e15461c7e9 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
..
bcm_machdep.c mips/broadcom: Implement CFE-based EARLY_PRINTF support. 2016-08-17 20:24:14 +00:00
bcm_mipscore.c bhnd(4): Fix mips/broadcom core matching and bus pass order. 2016-06-08 21:38:51 +00:00
bcm_mipscore.h
bcm_socinfo.c Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
bcm_socinfo.h Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
files.broadcom Switch mips/sentry5 to bhnd(4), and unify with mips/broadcom 2016-06-04 19:53:47 +00:00
std.broadcom Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
uart_bus_chipc.c bhnd(4): Perform explicit chipc child enumeration. 2016-06-25 04:33:00 +00:00
uart_cpu_chipc.c [mips/broadcom] Fetch UART console configuration from CFE. 2016-08-01 16:29:32 +00:00