You-Cheng Syu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32120
Change subject: google/kukui: Configure AP_IN_SLEEP_L correctly.
......................................................................
google/kukui: Configure AP_IN_SLEEP_L correctly.
This pin should be set to its alternative function SRCLKENA0 instead of
GPIO, so that SPM can control it.
BUG=b:113367227
BRANCH=none
TEST=1. Boot. Run 'powerinfo' in EC console and see power state in S0.
2. Run 'powerd_dbus_suspend --wakeup_timeout=10', and then
run 'powerinfo' in EC console and see power state in S3.
3. Wait until AP resume.
4. Run 'powerinfo' in EC console and see power state back to S0.
Change-Id: I0a7e34f95381dec17eb6d166d6552c12e021bd9a
Signed-off-by: You-Cheng Syu <youcheng(a)google.com>
---
M src/mainboard/google/kukui/early_init.c
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/32120/1
diff --git a/src/mainboard/google/kukui/early_init.c b/src/mainboard/google/kukui/early_init.c
index a16a335..1193bb3 100644
--- a/src/mainboard/google/kukui/early_init.c
+++ b/src/mainboard/google/kukui/early_init.c
@@ -32,8 +32,7 @@
setup_chromeos_gpios();
- /* Declare we are in S0 */
- gpio_output(AP_IN_SLEEP_L, 1);
+ gpio_set_mode(AP_IN_SLEEP_L, PAD_SRCLKENA0_FUNC_SRCLKENA0);
mtk_spi_init(CONFIG_DRIVER_TPM_SPI_BUS, SPI_PAD0_MASK, 1 * MHz);
gpio_eint_configure(CR50_IRQ, IRQ_TYPE_EDGE_RISING);
--
To view, visit https://review.coreboot.org/c/coreboot/+/32120
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0a7e34f95381dec17eb6d166d6552c12e021bd9a
Gerrit-Change-Number: 32120
Gerrit-PatchSet: 1
Gerrit-Owner: You-Cheng Syu <youcheng(a)google.com>
Gerrit-MessageType: newchange
nsekar(a)codeaurora.org has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31176
Change subject: qcs405: Reduce the reserved memory size
......................................................................
qcs405: Reduce the reserved memory size
Lets us reserve only for ATF use and give the rest back to Kernel
Change-Id: Ibe576b4934e9aa3e5bf1bda71d65c496b42e10f0
Signed-off-by: Nitheesh Sekar <nsekar(a)codeaurora.org>
---
M src/soc/qualcomm/qcs405/include/soc/memlayout.ld
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/31176/1
diff --git a/src/soc/qualcomm/qcs405/include/soc/memlayout.ld b/src/soc/qualcomm/qcs405/include/soc/memlayout.ld
index 46d4673..ace2e70 100644
--- a/src/soc/qualcomm/qcs405/include/soc/memlayout.ld
+++ b/src/soc/qualcomm/qcs405/include/soc/memlayout.ld
@@ -56,7 +56,7 @@
DRAM_START(0x80000000)
/* Various hardware/software subsystems make use of this area */
- REGION(dram_reserved, 0x85000000, 0x1A800000, 4096)
+ REGION(dram_reserved, 0x86000000, 0x400000, 4096)
POSTRAM_CBFS_CACHE(0x9F800000, 384K)
RAMSTAGE(0x9F860000, 128K)
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/31176
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibe576b4934e9aa3e5bf1bda71d65c496b42e10f0
Gerrit-Change-Number: 31176
Gerrit-PatchSet: 1
Gerrit-Owner: nsekar(a)codeaurora.org
Gerrit-MessageType: newchange
nsekar(a)codeaurora.org has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30902
Change subject: mistral: qcs405: Updated the layout info as in Gale
......................................................................
mistral: qcs405: Updated the layout info as in Gale
Changed the Mistral's layout as in Gale.
Change-Id: I61a82bd8dc6a2f86b72beb8efedaee35897fd66f
Signed-off-by: Nitheesh Sekar <nsekar(a)codeaurora.org>
---
M src/mainboard/google/mistral/chromeos.fmd
1 file changed, 24 insertions(+), 43 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/30902/1
diff --git a/src/mainboard/google/mistral/chromeos.fmd b/src/mainboard/google/mistral/chromeos.fmd
index e8b9978..a9bdd7b 100644
--- a/src/mainboard/google/mistral/chromeos.fmd
+++ b/src/mainboard/google/mistral/chromeos.fmd
@@ -1,52 +1,33 @@
-##
-## This file is part of the coreboot project.
-##
-## Copyright (C) 2018, The Linux Foundation. All rights reserved.
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License version 2 and
-## only version 2 as published by the Free Software Foundation.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-
FLASH@0x0 0x800000 {
- WP_RO@0x0 0x300000 {
- RO_SECTION@0x0 0x2FE000 {
- BOOTBLOCK@0 248K
- COREBOOT(CBFS)@0x3E000 0x1E0000
- FMAP@0x21E000 0x1000
- GBB@0x21F000 0xDEF00
- RO_FRID@0x2FDF00 0x100
+ WP_RO@0x0 0x400000 {
+ RO_SECTION@0x0 0x3e0000 {
+ BOOTBLOCK@0 128K
+ COREBOOT(CBFS)@0x20000 0x2e0000
+ FMAP@0x300000 0x1000
+ GBB@0x301000 0xdef00
+ RO_FRID@0x3dff00 0x100
}
- RO_VPD@0x2FE000 0x2000
+ RO_VPD@0x3e0000 0x20000
}
-
- RW_NVRAM@0x300000 0x8000
- RW_ELOG@0x308000 0x8000
- RW_VPD@0x310000 0x8000
- RW_CDT@0x318000 0x8000
-
- RW_SECTION_A@0x320000 0x268000 {
+ RW_SECTION_A@0x400000 0x160000 {
VBLOCK_A@0x0 0x2000
- FW_MAIN_A(CBFS)@0x2000 0x1E1F00
- RW_FWID_A@0x1E3F00 0x100
- RW_DDR_TRAINING_A@0x1E4000 0x4000
- RW_XBL_BUFFER_A@0x1E8000 0x4000
+ FW_MAIN_A(CBFS)@0x2000 0x14df00
+ RW_FWID_A@0x14ff00 0x100
+ RW_SHARED@0x150000 0x10000 {
+ SHARED_DATA@0x0 0x10000
+ }
}
-
- RW_SHARED@0x588000 0x10000 {
- SHARED_DATA@0x0 0x10000
+ RW_GPT@0x560000 0x20000 {
+ RW_GPT_PRIMARY@0x0 0x10000
+ RW_GPT_SECONDARY@0x10000 0x10000
}
-
- RW_SECTION_B@0x598000 0x268000 {
+ RW_SECTION_B@0x580000 0x160000 {
VBLOCK_B@0x0 0x2000
- FW_MAIN_B(CBFS)@0x2000 0x1E1F00
- RW_FWID_B@0x1E3F00 0x100
- RW_DDR_TRAINING_B@0x1E4000 0x4000
- RW_XBL_BUFFER_B@0x1E8000 0x4000
+ FW_MAIN_B(CBFS)@0x2000 0x14df00
+ RW_FWID_B@0x14ff00 0x100
}
+ RW_VPD@0x6e0000 0x8000
+ RW_ELOG@0x6e8000 0x8000
+ RW_NVRAM@0x6f0000 0x10000
+ RW_LEGACY(CBFS)@0x700000 0x100000
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/30902
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I61a82bd8dc6a2f86b72beb8efedaee35897fd66f
Gerrit-Change-Number: 30902
Gerrit-PatchSet: 1
Gerrit-Owner: nsekar(a)codeaurora.org
Gerrit-MessageType: newchange
Jacob Garber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32054
Change subject: nb/intel/pineview: Correct unsigned integer check in msbpos
......................................................................
nb/intel/pineview: Correct unsigned integer check in msbpos
The check i >= 0 is always true for an unsigned integer, causing
msbpos(0) to hang. We correct it to i != 0.
Note this has no material change since the code guards against
finding the msb of 0 anyway, but it fixes Coverity CID 1347386.
Signed-off-by: Jacob Garber <jgarber1(a)ualberta.ca>
Change-Id: Ic5be50846cc545dcd48593e5ed3fd6068a6104cb
---
M src/northbridge/intel/pineview/raminit.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/32054/1
diff --git a/src/northbridge/intel/pineview/raminit.c b/src/northbridge/intel/pineview/raminit.c
index fa5122a..4f9a0b4 100644
--- a/src/northbridge/intel/pineview/raminit.c
+++ b/src/northbridge/intel/pineview/raminit.c
@@ -336,7 +336,7 @@
static u8 msbpos(u8 val) //Reverse
{
u8 i;
- for (i = 7; (i >= 0) && ((val & (1 << i)) == 0); i--);
+ for (i = 7; (i != 0) && ((val & (1 << i)) == 0); i--);
return i;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/32054
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic5be50846cc545dcd48593e5ed3fd6068a6104cb
Gerrit-Change-Number: 32054
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber <jgarber1(a)ualberta.ca>
Gerrit-MessageType: newchange
Jacob Garber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32125
Change subject: soc/intel/baytrail: Correct array bounds check
......................................................................
soc/intel/baytrail: Correct array bounds check
If `gms == ARRAY_SIZE(gms_size_map)`, then we will have an
out of bounds read. Fix the check to exclude this case.
This was partially fixed in 04f68c1 (baytrail: fix range
check).
Found-by: Coverity Scan, CID 1229677 (OVERRUN)
Signed-off-by: Jacob Garber <jgarber1(a)ualberta.ca>
Change-Id: I8c8cd59df49beea066b46cde3cf00237816aff33
---
M src/soc/intel/baytrail/gfx.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/32125/1
diff --git a/src/soc/intel/baytrail/gfx.c b/src/soc/intel/baytrail/gfx.c
index 73c0d15..eaec46b 100644
--- a/src/soc/intel/baytrail/gfx.c
+++ b/src/soc/intel/baytrail/gfx.c
@@ -50,7 +50,7 @@
gms = pci_read_config32(dev, GGC) & GGC_GSM_SIZE_MASK;
gms >>= 3;
- if (gms > ARRAY_SIZE(gms_size_map))
+ if (gms >= ARRAY_SIZE(gms_size_map))
return;
gmsize = gms_size_map[gms];
--
To view, visit https://review.coreboot.org/c/coreboot/+/32125
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8c8cd59df49beea066b46cde3cf00237816aff33
Gerrit-Change-Number: 32125
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber <jgarber1(a)ualberta.ca>
Gerrit-MessageType: newchange