npcm8xx-bootloader: Support set FIU clock speed in machine config

Since new nuvoton kernel is set FIU speed in settings.json, modified the
current bbappend config to support set FIU speed in machine config file.

Tested:
Set FIU0 divider to 5 (50.0 MHz)
Set FIU1 divider to 10 (25.0 MHz)
Set FIU2 divider to 10 (25.0 MHz)

PWRON = 0x00003fff

Final clk settings:
PLL0 = 1000.0 MHz
PLL1 = 1000.0 MHz
PLL2/2 = 480.0 MHz
PLLCON0  = 0x80282101
PLLCON1  = 0x80502201
PLLCON2  = 0x80c02105
CLKSEL   = 0x01e98e09
CLKDIV1  = 0x04069a5d
CLKDIV2  = 0xea4fcf99
CLKDIV3  = 0x0009310e
CLKDIV4  = 0x70009000

CPU CLK = 1000.0 MHz
MC CLK = 1000.0 MHz
APB1 = 62.500 MHz
APB2 = 62.500 MHz
APB3 = 62.500 MHz
APB4 = 31.250 MHz
APB5 = 125.0 MHz
SPI0 = 50.0 MHz
SPI1 = 25.0 MHz
SPI3 = 25.0 MHz
SPIX = 31.250 MHz
ADC  = 25.0 MHz
CP/TIP= 250.0 MHz
GFX  = 142.857 MHz
PCI  = 125.0 MHz
MMC  = 50.0 MHz
SD   = 50.0 MHz
CLKOUT= 1.562 MHz
PIXEL = 25.173 MHz
OHCI  = 48.0 MHz
UTMI  = 30.0 MHz
RC,I3C= 100.0 MHz
UART  = 3.571 MHz
GMAC  = 125.0 MHz

Google-Bug-Id: 427126802
Fusion-Link: https://fusion2.corp.google.com/6b6a7e52-8649-3be2-a212-e51b87877e8a
https://fusion2.corp.google.com/0fdd7436-f483-392d-95e9-a16e10693d9d
https://fusion2.corp.google.com/5836961a-241c-36cc-a223-3e658411349c
https://fusion2.corp.google.com/347bbb18-7f13-3971-8c97-40f3e889a8e8
Change-Id: I3ac530891942462d5cfbe43a2bc5c2f3b01a9ce1
Signed-off-by: Steven Cho <cho.steven@inventec.corp-partner.google.com>
1 file changed
tree: 2065bd46813a32e31cb84090ae1d66b73fd76d8d
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.