Download Embedded.Linux.Primer

Transcript
relatively low-frequency crystal-generated clock source for its primary clock
signal. A phase locked loop internal to the processor generates the CPU's primary
clock (the clock rate we speak of when comparing processor speeds). Because the CPU
typically runs much faster than the memory subsystem, the processor generates a
submultiple of the main CPU clock to feed to the SDRAM subsystem. You need to
configure this clocking ratio for your particular CPU and SDRAM combination.
The processor and memory subsystem clocks must be correctly configured for your
SDRAM to work properly. Your processor manual contains a section on clock setup
and management, and you must consult this to properly set up your particular board
design.
The AMCC 405GP is typical of processors of its feature set. It takes a single crystal-generated clock input source and generates several internal and external
clocks required of its subsystems. It generates clocks for the CPU, PCI interface,
Onboard Peripheral Bus (OPB), Processor Local Bus (PLB), Memory Clock (MemClk), and
several internal clocks for peripherals such as timer and UART blocks. A typical
configuration might look like those in Table D-1.
Table D-1. Typical PPC405GP Clock Configuration
Clock
Rate
Comments
Crystal
33MHz Fundamental reference supplied to processor
reference
CPU clock
133MHz Derived from processor's internal PLL, controlled by hardware
pin strapping and register settings.
PLB clock
66MHz Derived from CPU clock and configured via hardware pin
strapping and register settings. Used for internal processor
local bus data interchange among its high-speed modules.
OPB clock
66MHz Derived from PLB clock and configured via register settings.
Used for internal connection of peripherals that do not need
high-speed connection.
PCI clock
33MHz Derived from PLB clock and configured via register settings.
MemClk
100MHz Drives the SDRAM chips directly. Derived from CPU clock and
configured via register settings.
Decisions about clock setup normally must be made at hardware design time. Pin
strapping options determine initial clock configurations upon application of power