Hi Simon,
On Wednesday, September 25, 2019 8:40:48 PM PDT Bin Meng wrote:
> External Email
>
> --
> +Simon
>
> Hi Aaron,
>
> On Thu, Sep 26, 2019 at 11:10 AM Aaron Williams
wrote:
> > Hi all,
> >
> > I have an issue where I
Hi
On Wed, Sep 25, 2019 at 8:19 PM Alexander von Gluck IV
wrote:
>
> Just rounding this one out.. I was definitely looking at the wrong uart. After
> moving to uart2, things are working as expected (minus hdmi output from
> u-boot)
This can be enabled, but it's not the default on tinker
Ls1028a has 4 personalities: ls1028a, ls1027a, ls1017a and ls1018a.
Both ls1027a and ls1017a personalities are lower functionality version
which doesn't support the multimedia subsystems, like LCD, GPU.
To disable multimedia feature on non-multimedia version, set the status
property to disabled
Hi Vagrant,
On Thu, Sep 26, 2019 at 8:57 AM Vagrant Cascadian wrote:
>
> Haven't heard any comment on this; is there someone better to CC?
>
Sorry I missed this.
> Would be really nice if it could be considered for v2019.10.
>
> Thanks!
>
> live well,
> vagrant
>
> On 2019-07-15, Vagrant
On 2019-09-26, Bin Meng wrote:
> On Thu, Sep 26, 2019 at 8:57 AM Vagrant Cascadian wrote:
>> On 2019-07-15, Vagrant Cascadian wrote:
>> > This allows booting an initrd without headers generated by mkimage,
>> > which is generally needed when using distro_bootcmd with
>> > extlinux-style boot
Hi all,
I have an issue where I have a nexus driver and a sub serial driver on top of
it. The base nexus driver is getting bound and probed properly, however the
serial drivers (pci-console) below it are not.
My device tree looks something like this:
pci-console-nexus@0x0300 {
Hi Robert,
Thanks very much for your comments, please see my comments inline.
>-Original Message-
>From: Robert Hancock
>Sent: 2019年9月25日 23:50
>To: Peng Ma ; s...@chromium.org; Prabhakar X
>; ja...@openedev.com;
>bmeng...@gmail.com; Andy Tang
>Cc: andre.przyw...@arm.com;
+Simon
Hi Aaron,
On Thu, Sep 26, 2019 at 11:10 AM Aaron Williams wrote:
>
> Hi all,
>
> I have an issue where I have a nexus driver and a sub serial driver on top of
> it. The base nexus driver is getting bound and probed properly, however the
> serial drivers (pci-console) below it are not.
>
Hi Bin,
On Thu, Sep 26, 2019 at 7:26 AM Bin Meng wrote:
>
> Hi Sagar,
>
> On Thu, Sep 26, 2019 at 1:54 AM Sagar Kadam wrote:
> >
> > Hi Bin,
> >
> > On Wed, Sep 18, 2019 at 1:23 PM Bin Meng wrote:
> > >
> > > Hi Sagar,
> > >
> > > On Tue, Sep 10, 2019 at 11:44 PM Sagar Shrikant Kadam
> > >
On 2019-08-21, David Abdurachmanov wrote:
> Commit 37304aaf60bf92a5dc3ef222ba520698bd862a44 removed preboot
> commands in RISC-V targets and broke extlinux support as reported
> by Fu Wei .
>
> The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT
> to Kconfig.
Tested using
Hi Sagar,
On Thu, Sep 26, 2019 at 1:54 AM Sagar Kadam wrote:
>
> Hi Bin,
>
> On Wed, Sep 18, 2019 at 1:23 PM Bin Meng wrote:
> >
> > Hi Sagar,
> >
> > On Tue, Sep 10, 2019 at 11:44 PM Sagar Shrikant Kadam
> > wrote:
> > >
> > > U-Boot currently is missing GPIO support for FU540-C000 SoC which
On Mon, Aug 26, 2019 at 01:06:15PM +0200, Pierre-Jean Texier wrote:
> Since commit d3716dd ("env: Rename the redundancy flags"), the
> definitions of ENV_REDUND_OBSOLETE & ENV_REDUND_ACTIVE was moved
> to env.h.
>
> Fixes:
>
> tools/env/fw_env.c:122:22: error: ‘ENV_REDUND_ACTIVE’ redeclared as
On Mon, Aug 26, 2019 at 01:06:18PM +0200, Pierre-Jean Texier wrote:
> This commit add envtools suppport to CI to verify if there
> is no build issues.
>
> Signed-off-by: Pierre-Jean Texier
> Acked-by: Heiko Schocher
> Reviewed-by: Simon Glass
Applied to u-boot/master, thanks!
--
Tom
On Mon, Aug 26, 2019 at 01:06:17PM +0200, Pierre-Jean Texier wrote:
> Since commit af95f20 ("env: Create a new file for environment functions"),
> a new header file exists.
>
> So, this commit add a missing header file.
>
> Fixes:
>
> include/env.h:158:1: error: unknown type name ‘ulong’; did
On Mon, Aug 26, 2019 at 01:06:16PM +0200, Pierre-Jean Texier wrote:
> The following error appears:
>
> tools/env/fw_env.c:1149:25: error: lvalue required as unary ‘&’ operand
> rc = write(fd, _REDUND_OBSOLETE, sizeof(ENV_REDUND_OBSOLETE));
>
> Fixes: d3716dd ("env: Rename the redundancy
This fixes commit <91435cd40d30> "ARM: i.MX6: exclude the ARM errata
from i.MX6 UP system"
for nitrogen6x. The above commit removed the errata for the board
since MX6Q/MXDL/MX6S is selected via CONFIG_SYS_EXTRA_OPTIONS
This restores the errata configs.
Signed-off-by: Troy Kisky
---
Note:
Haven't heard any comment on this; is there someone better to CC?
Would be really nice if it could be considered for v2019.10.
Thanks!
live well,
vagrant
On 2019-07-15, Vagrant Cascadian wrote:
> This allows booting an initrd without headers generated by mkimage,
> which is generally needed
Add function and new command "auth_cntr" for secure boot support.
When booting with life cycle set to OEM closed, we need to use
this function to authenticate the OS container and load kernel & FDT
from OS container to their destination.
Also add image authentication call when loading container
Add secure boot script, use ahab to verify image
Signed-off-by: Peng Fan
---
include/configs/imx8qm_mek.h | 64 +---
1 file changed, 49 insertions(+), 15 deletions(-)
diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h
index
Add secure boot script, use ahab to verify image
Signed-off-by: Peng Fan
---
include/configs/imx8qxp_mek.h | 64 +--
1 file changed, 49 insertions(+), 15 deletions(-)
diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h
index
J721E uses TISCI protocol to reset the device and does not
support PSCI reset. So disable PSCI reset.
Signed-off-by: Lokesh Vutla
---
configs/j721e_evm_a72_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig
index
Hi
On 24/09/19 9:45 PM, Eugeniy Paltsev wrote:
> Hi Vignesh,
> sorry for delay, I was pretty busy with another project :(
>
> I've tried to test SPI with CONFIG_SPI_FLASH_SFDP_SUPPORT enabled, however it
> doesn't seem to work.
>
> CONFIG_SPI_FLASH_SFDP_SUPPORT enabled:
>
AM65x uses TISCI protocol to reset the device and does not
support PSCI reset. So disable PSCI reset.
Signed-off-by: Lokesh Vutla
---
configs/am65x_evm_a53_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig
index
On 25/09/19 1:57 PM, Simon Goldschmidt wrote:
> Hi Vignesh,
>
> On Wed, Sep 25, 2019 at 10:20 AM Vignesh Raghavendra wrote:
>>
>> Simon,
>>
>> On 24/09/19 5:54 PM, tudor.amba...@microchip.com wrote:
>>> Hi, Simon,
>>>
>>> On 09/24/2019 02:47 PM, Simon Goldschmidt wrote:
External E-Mail
On 24/09/19 10:53 PM, Eugeniy Paltsev wrote:
> Hi Vignesh,
>
> I've check this patches on top of 31e086e460f.
> The read/write/erase seems to work.
>
> However, as I can see 'sf protect lock' doesn't work - it finish successfully
> but the area remains unlocked.
Did you verify that area is
Hi Vignesh,
On Wed, Sep 25, 2019 at 10:20 AM Vignesh Raghavendra wrote:
>
> Simon,
>
> On 24/09/19 5:54 PM, tudor.amba...@microchip.com wrote:
> > Hi, Simon,
> >
> > On 09/24/2019 02:47 PM, Simon Goldschmidt wrote:
> >> External E-Mail
> >>
> >>
> >> On Tue, Sep 24, 2019 at 7:55 AM Vignesh
Simon,
On 24/09/19 5:54 PM, tudor.amba...@microchip.com wrote:
> Hi, Simon,
>
> On 09/24/2019 02:47 PM, Simon Goldschmidt wrote:
>> External E-Mail
>>
>>
>> On Tue, Sep 24, 2019 at 7:55 AM Vignesh Raghavendra wrote:
>>>
>>> Newer variants of n25q256* and n25q512* flashes support 4 Byte
>>>
Hi Priyanka,
Please see my reply inline.
> -Original Message-
> From: Priyanka Jain
> Sent: 2019年9月25日 13:43
> To: Andy Tang
> Cc: u-boot@lists.denx.de
> Subject: RE: [U-Boot] [PATCH v2] armv8: ls1028a: add more personalities
> support
>
>
>
> >-Original Message-
> >From:
This patch adds codes to enable FIFO and disable flow control taken from
ns16550 driver.
Signed-off-by: Weijie Gao
---
drivers/serial/serial_mtk.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c
index
This patch adds a clock driver for MediaTek MT7628/7688 SoC.
It provides clock gate control as well as getting clock frequency for
CPU/SYS/XTAL and some peripherals.
Signed-off-by: Weijie Gao
---
v2: Changed to a more generic clock driver rather than a gateing only driver.
Now supports
This patch adds a dts property cd-active-high for builtin-cd mode to make
it configurable instead of using hardcoded active-low.
Signed-off-by: Weijie Gao
---
v3: Simplify logic of card-detection.
---
drivers/mmc/mtk-sd.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
On 25. 09. 19 13:03, Luca Ceresoli wrote:
> Hi Michal,
>
> On 25/09/19 12:38, Michal Simek wrote:
>> All boards are using the same prompt that's why add it as default value to
>> Kconfig to simplify defconfigs.
>>
>> Signed-off-by: Michal Simek
>> ---
>>
>> cmd/Kconfig
On Tue, Sep 24, 2019 at 2:08 PM Simon Goldschmidt
wrote:
>
> Hi Vignesh,
>
> On Tue, Sep 24, 2019 at 1:54 PM Vignesh Raghavendra wrote:
> >
> > Simon,
> >
> > On 24-Sep-19 5:15 PM, Simon Goldschmidt wrote:
> > > Hi Tudor,
> > >
> > > On Tue, Sep 24, 2019 at 1:36 PM wrote:
> > >>
> > [...]
> >
>
This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/{fsp1 => fsp}/fsp_fv.h | 0
arch/x86/include/asm/fsp1/fsp_support.h | 2 +-
2 files
This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/{fsp1 => fsp}/fsp_types.h | 0
arch/x86/include/asm/fsp1/fsp_support.h| 2 +-
2
This header file is the same for FSP v1 and v2, although there may be
some additions to come. Move it into the generic fsp directory.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/{fsp1 => fsp}/fsp_bootmode.h | 0
At present SPI-flash testing relies on a sandbox driver which emulates the
SPI bus and implements a flash chip behind that emulated bus.
This provides good coverage but can only implement features supported by
the SPI bus.
Add a new 'direct' SPI flash which is implemented directly by sandbox.
At present this driver uses the wrong condition for including the code and
drivers in SPL/TPL. Update it so that the code is only included if
DM_SERIAL is enabled for SPL/TPL.
Signed-off-by: Simon Glass
---
Changes in v2: None
drivers/serial/ns16550.c | 6 +++---
1 file changed, 3
At present if CONFIG_SPL_GPIO_SUPPORT is enabled then the GPIO uclass
is included in SPL/TPL without any control for boards. Some boards may
want to disable this to reduce code size where GPIOs are not needed in
SPL or TPL.
Add a new Kconfig option to permit this. Default it to 'y' so that
When TPL is running, broadwell needs to do different init from SPL. There
is no need for this code to be in the generic x86 SPL file, so move it to
arch_cpu_init().
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/x86/cpu/broadwell/cpu.c | 5 +
On x86 platforms the SPI flash can be mapped into memory so that the
contents can be read with normal memory accesses.
Add a new SPI flash method to find the location of the SPI flash in
memory. This differs from the existing device-tree "memory-map" mechanism
in that the location can be
At present these two functions are defined in efi_loader.h but only if
CONFIG_EFI_LOADER is enabled. But these are functions that are useful to
other code, such as that which deals with Intel Handoff Blocks (HOBs).
Move these to the top of the function.
Possibly ascii2unicode() should not be an
This image loader works on systems where the flash is directly mapped to
the last part of the 32-bit address space. On recent Intel systems (such
as apollolake) this is not the case.
Reduce the priority of this loader so that another one can override it.
While we are here, rename the loader to
Apollolake is an Intel SoC generation aimed at relatively low-end embedded
systems. It was released in 2016 but has become more popular recently with
some embedded boards using it.
This series adds support for apollolake. As an example it adds an
implementation of chromebook_coral (a large range
Two functions in this file return early for no good reason. Adjust the
code to match the standard DM style of returning 0 at the end of the
function on success.
Oddly enough this save 12 bytes of code size on ARM.
Signed-off-by: Simon Glass
---
drivers/core/uclass.c | 14 ++
1
When device-tree compilation fails it is sometimes tricky to see which
line is broken, since the input file to dtc is a pre-processed version
of the device tree.
Add a line that points to the file that needs to be checked:
Output is something like this:
Error:
At present tests that are marked as only for livetree fail when executed
on sandbox_flattree. They cannot actually be executed, but we should not
resport them as 'not found', since this causes errors. Instead, they
should be silently skipped.
Signed-off-by: Simon Glass
---
test/dm/test-main.c
We have a 'safe' version of this function but sometimes it is not needed.
Add a normal version too and update a few places that can use it.
Signed-off-by: Simon Glass
---
arch/arm/mach-uniphier/pinctrl-glue.c | 4 ++--
drivers/block/blk-uclass.c| 4 ++--
include/dm/device.h
At present U-Boot runs autoconfig in SPL but this is best left to U-Boot
proper. For TPL and SPL we can normally used fixed BARs and save code size
and time.
Signed-off-by: Simon Glass
---
drivers/pci/pci-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
At present these functions are stubbed out. For more comprehensive testing
with PCI devices it is useful to be able to fully emulate I/O access. Add
simple implementations for these.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/cpu.c | 51
These functions are available on x86 but not sandbox. They are useful
shortcuts and clarify the code, so add them to sandbox.
Signed-off-by: Simon Glass
---
arch/sandbox/include/asm/io.h | 42 ++-
arch/sandbox/lib/pci_io.c | 12 +-
2 files changed,
The image-header currently sets it offset assuming that skip-at-start is
zero. This does not work on x86 where offsets end at 4GB. Add in this
value so that the offset is correct.
Signed-off-by: Simon Glass
---
tools/binman/etype/image_header.py | 1 +
1 file changed, 1 insertion(+)
diff
Some x86 sections have special offsets which currently result in empty
data being returned from the 'extract' command. Fix this by taking account
of the skip-at-start property.
Add a little more debugging while we are here.
Signed-off-by: Simon Glass
---
tools/binman/entry.py | 6
These functions are the same on modern Intel CPUs, so use common code to
set them.
Signed-off-by: Simon Glass
---
arch/x86/cpu/broadwell/cpu.c | 7 ++
arch/x86/cpu/broadwell/cpu_full.c | 9 ---
arch/x86/cpu/intel_common/cpu.c | 20
Remove the duplicate definition as it is not needed.
Signed-off-by: Simon Glass
---
arch/x86/cpu/broadwell/cpu.c | 2 +-
arch/x86/cpu/broadwell/cpu_full.c | 2 +-
arch/x86/cpu/intel_common/cpu.c | 2 +-
arch/x86/include/asm/cpu_common.h | 2 --
4 files changed, 3 insertions(+), 5
Since there is now a new version of the FSP and it is incompatible with
the existing version, move the code into an fsp1 directory. This will
allow us to put FSP v2 code into an fsp2 directory.
Add a Kconfig which defines which version is in use.
Some of the code in this new fsp1/ directory is
This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.
Signed-off-by: Simon Glass
---
Changes in v3:
- Drop struct efi_guid and add a comment about forward declarations
Changes in v2:
- Rewrite to make azalia a common file for FSP1 and FSP2
At present these options can be enabled when bloblist is not enabled for
SPL or TPL. This is incorrect as SPL handoff requires bloblist. Fix it.
Signed-off-by: Simon Glass
---
Changes in v2: None
common/spl/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
Pass in the toolpath in case binman needs to use tools compiled in the
U-Boot tools/ directory.
Signed-off-by: Simon Glass
---
Changes in v2: None
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 0178cdffddb..c5caec8267e 100644
--- a/Makefile
+++
At present spi_flash is defined to be spi_nor which is confusing since it
is not possible to find the 'spi_flash' by normal text search. Add a
comment to help with this.
Signed-off-by: Simon Glass
---
Changes in v2: None
include/linux/mtd/spi-nor.h | 8 +++-
1 file changed, 7
Use the standard hang() function when booting fails since this implements
the defined U-Boot behaviour for this situation.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/x86/lib/spl.c | 3 +--
arch/x86/lib/tpl.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git
Add definitions for the FSP signature and the FSP init phase.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/x86/include/asm/fsp/fsp_infoheader.h | 15 ++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/fsp/fsp_infoheader.h
This MSR number is used on most modern Intel processors, so drop the
confusing NHM prefix (which might mean Nehalem).
Signed-off-by: Simon Glass
---
Changes in v2:
- Rebase to master
arch/x86/cpu/broadwell/cpu_full.c | 2 +-
arch/x86/include/asm/msr-index.h | 2 +-
2 files changed, 2
At present this code passes an fdt_addr_t pointer as a u64 pointer which
is not save, since sizeof(fdt_addr_t) may be 4, e.g. with sandbox. Correct
this to avoid a stack corruption problem.
Fixes: e679d03b08 (core: ofnode: Add ofnode_get_addr_size_index)
Signed-off-by: Simon Glass
---
Sometimes devices don't appear and it can be confusing. Add a few notes to
help with this situation.
Signed-off-by: Simon Glass
---
doc/driver-model/debugging.rst | 62 ++
1 file changed, 62 insertions(+)
create mode 100644 doc/driver-model/debugging.rst
diff
Rename this ID to SANDBOX_PCI_SWAP_CASE_EMUL_ID since it is more
descriptive and allows us to add new PCI emulators without any conflict or
confusion.
Signed-off-by: Simon Glass
---
arch/sandbox/include/asm/test.h | 2 +-
drivers/misc/swap_case.c| 5 +++--
test/dm/pci.c
This function is useful in PCI emulators. More it into the header file to
avoid duplicating it in other drivers.
Signed-off-by: Simon Glass
---
drivers/misc/swap_case.c | 7 ++-
include/pci.h| 4
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git
This method is not used anymore since the bus/device/function of PCI
devices can be obtained from their (parent's per-child) platform data.
Drop it.
Signed-off-by: Simon Glass
---
drivers/misc/swap_case.c | 8
include/pci.h| 7 ---
2 files changed, 15 deletions(-)
U-Boot already supports using -D to indicate that it should use the normal
device tree. It is sometimes useful to run with the test device tree, e.g.
when running a test. Add a -T option for this along with some
documentation.
It can be used like this:
/tmp/b/sandbox/u-boot -T -c "ut dm
If PCI auto-config runs out of memory, show a few more details to help
diagnose the problem.
Signed-off-by: Simon Glass
---
drivers/pci/pci_auto_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c
index
At present this function is not present in the Entry base class so it is
hard to find the documentation for it. Move the docs from the section
class and expand it a little.
Signed-off-by: Simon Glass
---
tools/binman/entry.py | 16
1 file changed, 16 insertions(+)
diff --git
At present libfdt is included in SPL/TPL if SPL/TPL_OF_CONTROL is enabled.
But if of-platdata is in use this is not required. Update the condition to
avoid building this extra code. This ensures that if a libfdt function is
used it will produce a link error rather than silently increasing the
U-Boot has two distinct phases: before and after relocation. These are
commonly referred to as F (running from Flash) and R (Relocated and
running from RAM). Some drivers want to do different things in these
phases so update the SPL phase function to return a different value for
each.
This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/fsp1/fsp_support.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
This header file is different for each version of FSP. Move it into the
fsp_arch.h header file.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/fsp1/fsp_support.h | 1 -
arch/x86/include/asm/fsp_arch.h | 1 +
2 files
At present the name of the image comes first in the linker-list symbol
used. This means that the name of the function sets the sort order, which
is not the intention.
Update it to put the board device type first, then the priority. This
produces the expected behaviour.
Signed-off-by: Simon Glass
At present the bloblist is set up in spl_common_init() which can be called
from spl_early_init(), i.e. before SDRAM is ready. This prevents the
bloblist from being located in SDRAM, which is useful on some platforms
where SRAM is inaccessible after U-Boot relocates (e.g. x86 CAR region).
It
The comments in the FSP code use a different style from the rest of the
x86 code. I am not sure it this is intentional.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/x86/include/asm/fsp/fsp_support.h | 42 -
arch/x86/include/asm/fsp1/fsp_support.h | 30
Support a new BINMAN_VERBOSE option to the build, to allow passing the
-v flag to binman.
Signed-off-by: Simon Glass
---
Changes in v2: None
Makefile| 3 ++-
tools/binman/README | 6 ++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index
At present there is an arch-specific area in the SPL handoff area intended
for use by arch-specific code, but there is no explicit call to fill in
this data. Add a hook for this.
Also use the hook to remove the sandbox-specific test code from
write_spl_handoff().
Signed-off-by: Simon Glass
---
Most of the DRAM functionality can be shared between FSP1 and FSP2. Move
it into a shared file.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/x86/include/asm/fsp/fsp_support.h | 9 +++
arch/x86/lib/Makefile | 1 +
arch/x86/lib/fsp/Makefile | 5 ++
Add cpu_intel_get_info() to find out the CPU info on modern Intel CPUs.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/x86/cpu/broadwell/cpu_full.c| 9 +
arch/x86/cpu/intel_common/cpu.c | 13 +
arch/x86/cpu/ivybridge/model_206ax.c | 8 ++--
Some of this file can be shared between FSP1 and FSP2. Move it into a
shared file.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/x86/include/asm/fsp/fsp_support.h | 17
arch/x86/include/asm/fsp1/fsp_support.h | 10 ---
arch/x86/lib/fsp/Makefile | 1 +
The useable RAM is calculated when the RAM is inited. Save this value so
that it can be easily used in U-Boot proper.
Also save a pointer to the hob list so that it is accessible (before
relocation only) in U-Boot proper. This avoids having to scan it in SPL,
for everything U-Boot proper might
The pr_debug() functions do not response to setting the log level and in
fact have their own separate log level. Use U-Boot logging instead.
Perhaps we should make these options redirect to log_debug(), etc.?
Signed-off-by: Simon Glass
---
drivers/core/lists.c | 20
1
This is currently a decimal value which is not as convenient or
meaningful. Also U-Boot tends to use hex everywhere.
Convert this option to hex and add a comment for the size_check macro.
Signed-off-by: Simon Glass
---
Makefile| 10 +++---
Add a few more CPU functions that are common on Intel CPUs. Also add
attribution for the code source.
Signed-off-by: Simon Glass
---
arch/x86/cpu/intel_common/cpu.c | 60 +++
arch/x86/include/asm/cpu_common.h | 49 +
2 files changed, 109
At present running sandbox with valgrind produces some warnings due to the
MMC emulator not filling in all the expected fields. Fix it.
Signed-off-by: Simon Glass
---
drivers/mmc/sandbox_mmc.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/sandbox_mmc.c
We have the ability to enforce a maximum size for SPL but not yet for TPL.
Add a new option for this.
Document the size check macro while we are here.
Signed-off-by: Simon Glass
---
Makefile | 7 +++
common/spl/Kconfig | 8
2 files changed, 15 insertions(+)
diff --git
At present the 'iod' command differs from 'md' in that it only shows a
single value. It is useful to see a dump of multiple values, particularly
when x86 peripherals contain register sets accessible via I/O ports.
Enhance the command to match md.
Signed-off-by: Simon Glass
---
cmd/io.c | 84
Fix these spelling errors the header file and documentation.
Fix a small typo in the PCI documentation.
Signed-off-by: Simon Glass
---
doc/driver-model/pci-info.rst | 2 +-
include/pci.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
At present PCI address transaction is not supported so drivers must
manually read the correct BAR after reading the device tree info. The
ns16550 has a suitable implementation, so move this code into the core
DM support.
Note that there is no live-tree equivalent at present.
Signed-off-by: Simon
These warnings appear every thing sandbox is run (see below) and dwarf the
actual useful output. Suppress them.
Hopefully at some point a way can be found to fix the root cause.
U-Boot 2019.10-rc2
Model: sandbox
DRAM: 128 MiB
Warning: host_lo MAC addresses don't match:
Address in ROM is
This code appears in a few places, so move it to a common file.
Signed-off-by: Simon Glass
---
arch/x86/cpu/broadwell/cpu_full.c| 20 +---
arch/x86/cpu/intel_common/cpu.c | 22 ++
arch/x86/cpu/ivybridge/model_206ax.c | 25 +++--
When this UART is used early in boot (before PCI is set up) it is
convenient to store the PCI BDF of the UART so that it can be manually
configured. This is useful when it is used as a debug UART, for example.
Add a new field to hold this information, so that drivers can simply use
the existing
Provide these values which are part of the EC interface now.
Signed-off-by: Simon Glass
---
include/ec_commands.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 392c1f1a43a..444ba61e591 100644
--- a/include/ec_commands.h
+++
On 2019-09-24 9:33 p.m., Sergio de Almeida Lenzi wrote:
note that NetBSD only uses ONE boot file...
Ah, I'm not familiar with the U-Boot package in NetBSD; I've been
working from the main U-Boot repository. So I'm don't know how pkgsrc
builds that image or what it contains.
So the
At present the x86 FSP (Firmware Support Package) code assumes that FSP
version 1 is used. Since this code was added to U-Boot a new version
(FSP2) has been produced by Intel.
In preparation for adding support for FSP2, move the existing code into
a directory that indicates it is used for FSP1.
At present fsp_support.h includes fsp_vpd.h which is an FPSv1 concept
(VPD means Vital Product Data). For FSPv2 only UPD (Updatable Product
Data) is used.
To avoid mangling header files, put these two includes in a separate
header which we can adjust as necessary for FSPv2.
Signed-off-by: Simon
This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h| 0
arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h |
1 - 100 of 279 matches
Mail list logo