Blame view

doc/README.MPC866 1.09 KB
687660944   wdenk   * Implement adapt...
1
2
  The current implementation allows the user to specify the desired CPU
  clock value, in MHz, via an environment variable "cpuclk".
66ca92a5b   wdenk   * Patch by Yuli B...
3
  Four compile-time constants are used:
687660944   wdenk   * Implement adapt...
4

66ca92a5b   wdenk   * Patch by Yuli B...
5
  	CONFIG_8xx_OSCLK          - input quartz clock
6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
6
7
  	CONFIG_SYS_8xx_CPUCLK_MIN        - minimum allowed CPU clock
  	CONFIG_SYS_8xx_CPUCLK_MAX        - maximum allowed CPU clock
66ca92a5b   wdenk   * Patch by Yuli B...
8
  	CONFIG_8xx_CPUCLK_DEFAULT - default CPU clock value
687660944   wdenk   * Implement adapt...
9
10
11
12
  
  If the "cpuclk" environment variable value is within the CPUCLK_MIN /
  CPUCLK_MAX limits, the specified value is used. Otherwise, the
  default CPU clock value is set.
75d1ea7f6   wdenk   Fix variable CPU ...
13
14
15
  Please make sure you understand what you are doing, and understand
  the restrictions of your hardware (board, processor). For example,
  ethernet will stop working for CPU clock frequencies below 25 MHz.
66ca92a5b   wdenk   * Patch by Yuli B...
16
17
18
19
20
21
  Please note that the new clock-handling code is enabled if
  CONFIG_8xx_CPUCLK_DEFAULT is defined. Since this mechanism supports
  only MPC866 and newer CPUs, this constant MUST NOT be defined for
  MPC823/850/860/862 series. The clock generation algorithm for older
  chips is different and has not been implemented yet. If you need it,
  your patch is welcome.