freebsd-dev/sys/powerpc
Justin Hibbits 6cedae09a2 Merge MPC85XX and QorIQ config options
Summary:
MPC85XX and QorIQ are very similar.  When the DPAA dTSEC driver was
added, QORIQ_DPAA was brought in as a config option to support the differences
in hardware register settings between QorIQ (e500mc-, e5500- based) SoCs and
QUICC (e500v1/e500v2-based) SoCs, particularly in the Local Access Window (LAW)
target settings.

Unify these settings using macros to hide details and ease porting, and use a
new function (mpc85xx_is_qoriq()) to distinguish between QorIQ and QUICC SoCs at
runtime.

An alternative to using the function could be to use a variable initialized at
platform attach time, which may incur less overhead at runtime.  Since it's not
in the critical path once booted, this optimization doesn't seem necessary at
first pass.

Reviewed by: nwhitehorn
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D7294
2016-08-03 01:22:11 +00:00
..
aim Do not rely on firmware having pre-enabled the MMU in a reasonable way for 2016-06-29 14:40:43 +00:00
booke Use label math instead of hard-coding offsets for return addresses. 2016-07-23 02:27:42 +00:00
conf Merge MPC85XX and QorIQ config options 2016-08-03 01:22:11 +00:00
cpufreq
fpu Fix build of powerpc FPU emulator after changes in r295132 to restore the 2016-02-04 17:43:56 +00:00
include Remove booke_enable_l3_cache declaration and remaining definition. 2016-07-17 19:24:28 +00:00
mambo
mikrotik
mpc85xx Merge MPC85XX and QorIQ config options 2016-08-03 01:22:11 +00:00
ofw Remove dead code. This should have been removed in r297392, when these 2016-07-11 17:02:17 +00:00
powermac Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
powerpc Replace a number of conflations of mp_ncpus and mp_maxid with either 2016-07-06 14:09:49 +00:00
ps3 Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
pseries Use our nitems() macro when param.h is available. 2016-04-20 15:45:55 +00:00
psim Use OF_prop_free instead of direct call to free(9) 2016-05-14 20:06:38 +00:00