Page MenuHomeFreeBSD

Merge MPC85XX and QorIQ config options
ClosedPublic

Authored by jhibbits on Jul 24 2016, 12:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 3 2024, 1:24 PM
Unknown Object (File)
Dec 29 2023, 9:41 PM
Unknown Object (File)
Dec 28 2023, 6:42 AM
Unknown Object (File)
Dec 20 2023, 12:49 AM
Unknown Object (File)
Sep 16 2023, 6:06 PM
Unknown Object (File)
Sep 16 2023, 6:05 PM
Unknown Object (File)
Sep 16 2023, 6:03 PM
Unknown Object (File)
Sep 16 2023, 4:35 PM
Subscribers

Details

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhibbits retitled this revision from to Merge MPC85XX and QorIQ config options.
jhibbits updated this object.
jhibbits edited the test plan for this revision. (Show Details)
jhibbits added reviewers: PowerPC, nwhitehorn, marcel.
nwhitehorn edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Aug 2 2016, 4:16 PM
This revision was automatically updated to reflect the committed changes.