summaryrefslogtreecommitdiff
path: root/meta-google/dynamic-layers
diff options
context:
space:
mode:
authorWilly Tu <wltu@google.com>2021-02-10 22:30:01 +0300
committerWilly Tu <wltu@google.com>2021-03-10 23:26:48 +0300
commit085cbb4e5533b823c529683c1cfb11e91327cf60 (patch)
treebb8581e986b7c39d6e108e1a100b4f88893ab0d0 /meta-google/dynamic-layers
parent50c538c2b942fecba6fa1fc3cfe0f5a339f10999 (diff)
downloadopenbmc-085cbb4e5533b823c529683c1cfb11e91327cf60.tar.xz
meta-google: recipes-bsp: images: Import from gBMC
Initial recipes-bsp/images code from gBMC. Google-Bug-Id: 179618483 Upstream: 8ac594bdf054082ca6dbe35c4345759fe4c31669 Signed-off-by: Willy Tu <wltu@google.com> Change-Id: I914a3ac26eee2b121eeb1b92ea0c5636295c4272
Diffstat (limited to 'meta-google/dynamic-layers')
-rw-r--r--meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps-native_%.bbappend3
-rw-r--r--meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps/0001-Set-FIU0_DRD_CFG-and-FIU_Clk_divider-for-gbmc-hoth.patch52
2 files changed, 55 insertions, 0 deletions
diff --git a/meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps-native_%.bbappend b/meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps-native_%.bbappend
new file mode 100644
index 000000000..890ebbb64
--- /dev/null
+++ b/meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps-native_%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend_gbmc_hoth := "${THISDIR}/${BPN}:"
+
+SRC_URI_append_gbmc_hoth = " file://0001-Set-FIU0_DRD_CFG-and-FIU_Clk_divider-for-gbmc-hoth.patch"
diff --git a/meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps/0001-Set-FIU0_DRD_CFG-and-FIU_Clk_divider-for-gbmc-hoth.patch b/meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps/0001-Set-FIU0_DRD_CFG-and-FIU_Clk_divider-for-gbmc-hoth.patch
new file mode 100644
index 000000000..9352bb4ee
--- /dev/null
+++ b/meta-google/dynamic-layers/nuvoton-layer/recipes-bsp/images/npcm7xx-igps/0001-Set-FIU0_DRD_CFG-and-FIU_Clk_divider-for-gbmc-hoth.patch
@@ -0,0 +1,52 @@
+From 98c236c535e6cd8cce3d08bb424f5f0d8a99617d Mon Sep 17 00:00:00 2001
+From: Benjamin Fair <benjaminfair@google.com>
+Date: Wed, 20 Nov 2019 14:20:38 -0800
+Subject: [PATCH] Set FIU0_DRD_CFG and FIU_Clk_divider for gbmc hoth
+
+This is to set the SPI frequency to 20MHz
+
+Signed-off-by: Benjamin Fair <benjaminfair@google.com>
+Signed-off-by: Brandon Kim <brandonkim@google.com>
+---
+ ImageGeneration/references/BootBlockAndHeader_EB.xml | 4 ++--
+ ImageGeneration/references/UbootHeader_EB.xml | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/ImageGeneration/references/BootBlockAndHeader_EB.xml b/ImageGeneration/references/BootBlockAndHeader_EB.xml
+index 775534f..4d5c053 100644
+--- a/ImageGeneration/references/BootBlockAndHeader_EB.xml
++++ b/ImageGeneration/references/BootBlockAndHeader_EB.xml
+@@ -63,7 +63,7 @@
+ <offset>0x108</offset>
+ <size>0x4</size>
+ </config>
+- <content format='32bit'>0x030011BB</content> <!-- content the user should fill -->
++ <content format='32bit'>0x0300100B</content> <!-- content the user should fill -->
+ </BinField>
+
+ <BinField>
+@@ -73,7 +73,7 @@
+ <offset>0x10C</offset>
+ <size>0x1</size>
+ </config>
+- <content format='bytes'>4</content> <!-- content the user should fill -->
++ <content format='bytes'>10</content> <!-- content the user should fill -->
+ </BinField>
+
+ <BinField>
+diff --git a/ImageGeneration/references/UbootHeader_EB.xml b/ImageGeneration/references/UbootHeader_EB.xml
+index 1e72e22..4434504 100644
+--- a/ImageGeneration/references/UbootHeader_EB.xml
++++ b/ImageGeneration/references/UbootHeader_EB.xml
+@@ -63,7 +63,7 @@
+ <offset>0x108</offset> <!-- offset in the header -->
+ <size>0x4</size> <!-- size in the header -->
+ </config>
+- <content format='32bit'>0x030111BC</content> <!-- content the user should fill 0x030032EB -->
++ <content format='32bit'>0x0300100B</content> <!-- content the user should fill 0x030032EB -->
+ </BinField>
+
+ <BinField>
+--
+2.28.0.220.ged08abb693-goog
+