Hi Priyanka,
> -Original Message-
> From: Priyanka Jain
> Sent: Monday, October 21, 2019 11:13 AM
> To: Wasim Khan ; Z.q. Hou
> Cc: u-boot@lists.denx.de
> Subject: RE: [PATCH 3/8] pci: layerscape: Update API names for layerscape
> fixup
>
>
> >-Original Message-
> >From: Wasim
On 21/10/2019 08:32, Keerthy wrote:
On 15/10/19 12:27 PM, Lokesh Vutla wrote:
[..snip..]
+};
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index f431f3bf29..605b52905e 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -31,6 +31,7 @@ enum uclass_id {
UC
>-Original Message-
>From: Mathew McBride
>Sent: Saturday, October 19, 2019 2:16 AM
>To: Priyanka Jain ; u-boot@lists.denx.de; Pramod
>Kumar
>Subject: RE: [PATCH 1/2] armv8: dts: ls1088a: add PSCI binding for LS1088A
>
>Hell Priyanka,
>
>
>>-Original Message-
>>From: Mathew McBr
>-Original Message-
>From: Wasim Khan
>Sent: Friday, October 18, 2019 7:38 PM
>To: Priyanka Jain
>Cc: u-boot@lists.denx.de; Wasim Khan
>Subject: [PATCH 3/8] pci: layerscape: Update API names for layerscape fixup
>
>Update API names for layerscape fixup.
Better description woul be suffix
>-Original Message-
>From: Wasim Khan
>Sent: Friday, October 18, 2019 7:38 PM
>To: Priyanka Jain
>Cc: u-boot@lists.denx.de; Wasim Khan
>Subject: [PATCH 2/8] pci: layerscape: Add stream_id_cur field to ls_pcie
>structure
>
>Add stream_id_cur field to ls_pcie structure and initialize it w
>-Original Message-
>From: Wasim Khan
>Sent: Friday, October 18, 2019 7:38 PM
>To: Priyanka Jain
>Cc: u-boot@lists.denx.de; Wasim Khan
>Subject: [PATCH 1/8] driver/pci : enable pcie layerscape code for pcie gen4
>code
>
>lx2 rev2 has SNP controller. Enable pcie_layerscape code for
>CON
On 15/10/19 12:27 PM, Lokesh Vutla wrote:
[..snip..]
+};
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index f431f3bf29..605b52905e 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -31,6 +31,7 @@ enum uclass_id {
UCLASS_ADC, /* Analog-to-
Hi Kever,
On Fri, Oct 18, 2019 at 4:26 PM Kever Yang wrote:
>
> Jagan,
>
>
> On 2019/10/18 上午3:07, Jagan Teki wrote:
> > idbloader.img name is specific to rockchip,
>
> This is specific for rockchip, like rksd, rkspi type in mkimage, since
> it's clear for what it stands for,
>
> I think it can a
>-Original Message-
>From: Laurentiu Tudor
>Sent: Friday, October 18, 2019 7:34 PM
>To: u-boot@lists.denx.de; Priyanka Jain
>Cc: Horia Geanta
>Subject: Re: [PATCH v2 1/6] armv8: fsl-layerscape: guard caam specific defines
>
>Hi Priyanka,
>
>On 18.10.2019 12:01, Laurentiu Tudor wrote:
>>
Both versions of FSP can use the same graphics support, so move it into
the common directory.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/lib/fsp/Makefile | 3 +++
arch/x86/lib/{fsp1 => fsp}/fsp_graphics.c | 2 +-
arch/x86/lib/fsp1/Makefile
Hi Lukasz,
My patches depends on your patches
https://patchwork.ozlabs.org/project/uboot/list/?series=129069, do you have
plan to update it? I saw that the status is "changes required", any comments?
Thanks
Xiaowei
> -Original Message-
> From: Lukasz Majewski
> Sent: 2019年8月23日 4:48
>
Apollolake (APL) only supports hardware sequencing. Add support for this
into the SPI driver, as an option.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 205 +-
drivers/spi/ich.h | 39 +
2 files
The memory and silicon init parts of the FSP need support code to work.
Add this for apollolake.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add bootstage timing for reading vbt
- Add fspm_done() hook to handle FSP-S wierdness (it breaks SPI flash)
- Don't allow BOOT_FROM_FAST_SPI_FLASH with
Add a simple command to show information about the PMC.
Signed-off-by: Simon Glass
---
Changes in v3:
- Rename power-mgr uclass to acpi-pmc
Changes in v2: None
arch/Kconfig | 1 +
cmd/Kconfig | 8 ++
cmd/Makefile | 1 +
cmd/pmc.c| 81 +++
This driver models the hostbridge as a northbridge. It simply sets up the
graphics BAR. It supports of-platdata.
Signed-off-by: Simon Glass
---
Changes in v3:
- Move pad programming into the hostbridge to reduce TPL device-tree size
- Use pci_get_devfn()
Changes in v2: None
arch/x86/cpu/apoll
In TPL we try to minimise code size so do not include the PCI subsystem.
We can use fixed BARs and drivers can directly program the devices that
they need.
However we do need to bind the devices on the PCI bus and without PCI this
does not ordinarily happen. As a work-around, define a fake PCI bus
Include the IFWI section and the FSP-M binary. The FSP-T binary is not
currently used, as CAR is set up manually.
Also drop the FSP binary as this relates only to FSP1.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add FSP-S and VBT also
Changes in v2: None
arch/x86/dts/u-boot.dtsi | 35 ++
Adds a driver for the apollolake Primary-to-sideband bus. This supports
various child devices. It supposed both device tree and of-platdata.
Signed-off-by: Simon Glass
---
Changes in v3:
- Use pci_get_devfn()
Changes in v2: None
arch/x86/cpu/apollolake/Makefile | 1 +
arch/x86/cpu/apollolak
We don't need to know every detail about the CPU in TPL. Drop some
superfluous functions to reduce code size. Add a simple CPU detection
algorithm which just supports Intel and AMD, since we only support TPL
on Intel, so far.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
Add these entries to the ROM so that we can list the contents of an image
with 'binman ls'. The image-header is not essential but does speed up
access.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/dts/u-boot.dtsi | 5 +
1 file changed, 5 insertions(+)
di
We don't need to do this and it is done (in more detail) in U-Boot proper.
Drop this to save code space.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/lib/tpl.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c
ind
It is annoying to have some of the init code in a different part of the
file. Move ich_init_controller() to just above probe() to keep things
together.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 122 +++---
Add some fixed IO and mmap addresses for use in the device tree and with
some early-init code.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/arch-apollolake/iomap.h | 28
1 file changed, 28 insertions(+)
create mode 100644 arc
With of-platdata we need to create drivers for particular chips, or at
least drivers that are separate from the standard code, since C structures
are created by dtoc which are private to that driver.
To avoid duplicating the probing code, export this probe function for use
by these drivers.
Signe
Add a driver for the apollolake power unit. It is modelled as a syscon
driver since it only needs to be probed.
Signed-off-by: Simon Glass
---
Changes in v3:
- Use pci_get_devfn()
Changes in v2: None
arch/x86/cpu/apollolake/Makefile | 3 +
arch/x86/cpu/apollolake/punit.c | 121
FSP-S is used by the notify call after it has been used for silicon init.
To avoid having to load it again, add a field to store the location.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/global_data.h | 3 +++
1 file changed, 3 insertions(+)
dif
The current 'fsp' command only works with FSP1. Update it to handle FSP2
as well. Convert everything to hex which is what U-Boot uses.
Signed-off-by: Simon Glass
---
Changes in v3:
- Convert code to use hex increased of decimal
- Update the 'fsp' command for FSP2, instead of disabling it
Change
This driver the LPC and provides a few functions to set up LPC features.
These should probably use ioctls() or perhaps, better, have specific
uclass methods.
Signed-off-by: Simon Glass
---
Changes in v3:
- Drop unused code in lpc_configure_pads()
- Fix value of LPC_BC_LE
Changes in v2: None
a
At present the records are 4KB in size. This is unnecessarily large when
the SPI-flash erase size is 256 bytes. Reduce it so it will be more
efficient with Apollolake's 24-byte variable-data record.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/mrc
Reduce the size of the probe function but putting this code into its own
function.
Also remove the assumption that the PCH is always a parent of the SPI
controller, as this is not the case APL platforms. Use driver model to
find the PCH instead.
Signed-off-by: Simon Glass
---
Changes in v3: Non
These drivers are not needed on all platforms. While they are small, it
is useful in TPL to drop then. Add Kconfig control to allow this.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2:
- Change 'queensbay' to 'baytrail' in help
- Fix 'proides' typo
dri
Add support for coral which is a range of apollolake-based Chromebook
released in 2017. This also includes reef released in 2016, since it is
based on the same SoC.
Signed-off-by: Simon Glass
---
Changes in v3:
- Ad FSP-S support
- Add CONFIG_TPL_X86_ASSUME_CPUID to reduce code size
- Add Chrome
At present if SPL sets up the microcode then it is still included in
U-Boot as well. This is wasteful as microcode is large. Adjust the logic
in the image to prevent this.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/dts/u-boot.dtsi | 7 +++
1 file change
The existing work-around for positioning U-Boot in the ROM when it
actually runs from RAM still exists and there is not obvious way to change
this.
Add a proper Kconfig option to handle this case. This also adds a new bool
property to indicate whether CONFIG_SYS_TEXT_BASE exists.
Signed-off-by: S
Add a simple PMC for sandbox to permit tests to run.
Signed-off-by: Simon Glass
---
Changes in v3:
- Rename power-mgr uclass to acpi-pmc
Changes in v2: None
Makefile | 3 +-
arch/Kconfig | 2 +
arch/sandbox/dts/sandbox.dtsi | 14 ++
arch/
Add support for some important configuration options and FSP memory init.
The memory init uses swizzle tables from the device tree.
Support for the FSP_S binary is also included.
Bootstage timing is used for both FSP_M and FSP_M and memory-mapped SPI
reads.
Signed-off-by: Simon Glass
---
Chang
At present we have to have an xfer() method even if it does nothing. This
is not correct, so fix it.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c| 9 +
drivers/spi/spi-uclass.c | 5 -
include/spi.h| 2 +-
3 files chang
Change the algorithm to first find the flash device then read the
properties using the livetree API. With this change the device is not
probed so this needs to be done in mrccache_save().
Signed-off-by: Simon Glass
---
Changes in v3:
- Update mrccache livetree patch to just convert to livetree
At present with fsp a single DRAM bank is added which extends to the
whole size of memory. However there is typically only 2GB of memory
available below the 4GB boundary, and this is what is used by U-Boot while
running in 32-bit mode.
Scan the tables to set the banks correct. The first bank is se
This generic FSP file should include the generic FSP support header, not
the FSP1 version. Fix it.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/lib/fsp/fsp_support.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/lib/fsp/fsp_supp
At present we reuse the mrc_output char * to also point to the cache
record after it has been set up. This is confusing and doesn't save much
data space.
Add a new mrc_cache member instead.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/
Add a bare-bones CPU driver so that CPUs can be probed.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add two more defines for the CPU driver
- Expand comments for BOOT_FROM_FAST_SPI_FLASH
Changes in v2: None
arch/x86/cpu/apollolake/Makefile | 1 +
arch/x86/cpu/apollolake/cpu.c
Use debug() instead of printf() to reduce code size and change a bool
return value to the use the 'bool' type. Also drop the global data
declaration since it not actually used. Finally, set the log category.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich
We don't generally have enough space to run this, so don't build it into
TPL. This helps reduce the size of TPL.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/lib/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/li
We don't normally need this on x86 unless the size of SPI flash devices is
larger than 16MB. This can be enabled by particular SoCs as needed, since
it adds to code size.
Drop the default enabling of this option on x86.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
dr
This driver models some sort of interrupt thingy but there are so many
abreviations that I cannot find out what it stands for. Possibly something
to do with interrupts.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add snapshot/restore for IRQs
- Use the IRQ uclass instead of ITSS
Changes in
In TPL we want to reduce code size and support running with CONFIG_PCI
disabled. Add special code to handle this using a fixed BAR programmed
into the SPI on boot. Also cache the SPI flash to speed up boot.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.
Update this uclass to support the needs of the apollolake ITSS. It
supports four operations.
Move the uclass into a separate directory so that sandbox can use it too.
Add a new Kconfig to control it and enable this on x86.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add two more operations
The x86 power unit handles power management. Support initing this device
which is modelled as a new type of system controller since there are no
operations needed.
Signed-off-by: Simon Glass
---
Changes in v3:
- Fix 'err-%d' typo
Changes in v2: None
arch/x86/include/asm/cpu.h | 1 +
arch/x86
We don't want to pull in libfdt if of-platdata is being used, since it
reduces the available code-size saves. Also, SPI flash is seldom needed
in TPL.
Drop these options.
Signed-off-by: Simon Glass
---
Changes in v3:
- Don't imply SPI flash either
- Rewrite commit message
Changes in v2: None
At present the value of the timer base is used to determine whether the
timer has been set up or not. It is true that the timer is essentially
never exactly 0 when it is read. However 'time 0' may indicate the time
that the machine was reset so it is useful to be able to denote that.
Update the co
Add a driver for the apollolake GPIOs. It also handles pinctrl since this
is not very well separated on x86.
Signed-off-by: Simon Glass
---
Changes in v3:
- Fix mixed case in GPIO defines
- Rework how pads configuration is defined in TPL and SPL
- Use the IRQ uclass instead of ITSS
Changes in v
Add a driver for the apollolake SoC. It supports the basic operations and
can use device tree or of-platdata.
Signed-off-by: Simon Glass
---
Changes in v3:
- Use pci_get_devfn()
Changes in v2: None
arch/x86/cpu/apollolake/Makefile | 5 +
arch/x86/cpu/apollolake/pmc.c |
With apollolake we need to support a normal cache, which almost never
changes and a much smaller 'variable' cache which changes every time.
Update the code to add a cache type, use an array for the caches and use a
for loop to iterate over the caches.
Signed-off-by: Simon Glass
---
Changes in v
Add support for a second cache type, for apollolake.
Signed-off-by: Simon Glass
---
Changes in v3:
- Move the mrccache_get_region() change into this patch
Changes in v2: None
arch/x86/include/asm/mrccache.h | 1 +
arch/x86/lib/mrccache.c | 3 ++-
2 files changed, 3 insertions(+), 1 de
The FSP-S may do this but at least for coral it does not. Set this up so
that graphics is not deathly slow.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/lib/fsp/fsp_graphics.c | 4
1 file changed, 4 insertions(+)
diff --git a/arch/x86/lib/fsp/fsp_graphi
Set up MTRRs for the FST SDRAM regions to improve performance.
Signed-off-by: Simon Glass
---
Changes in v3:
- Move mtrr_add_request() call into this patch
Changes in v2: None
arch/x86/lib/fsp/fsp_dram.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/x86/lib/fsp/fsp_dram.c b/ar
Many Intel SoCs require a FIT in order to boot properly. Add an option to
include this and enable it by default.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add help to CONFIG_FIT and don't make it 'default y'
Changes in v2: None
arch/x86/Kconfig | 9 +
arch/x86/dts/u-boot
Add this method so that the memory-mapped location of the SPI flash can
be queried.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 32
1 file changed, 32 insertions(+)
diff --git a/drivers/spi/ich.c b/drivers/spi/ich
Add a driver for the apollolake UART. It uses the standard ns16550 device
but also sets up the input clock with LPSS and supports configuration via
of-platdata.
Signed-off-by: Simon Glass
---
Changes in v3:
- Use the LPSS code from a separate file
Changes in v2: None
arch/x86/cpu/apollolake/M
It is useful to store the mmio base in platdata. It reduces the amount of
casting needed. Update the code and move the struct to the C file at the
same time, as we will need to use with of-platdata.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 27 +
The Intel Fast SPI interface is similar to ICH. Add of-platdata support
for this using the "intel,fast-spi" compatible string.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 17 ++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff
At present binman does not support updating a device tree that is part of
U-Boot (i.e u-boot.bin). Separate the entries into two so that we can get
updated entry information. This makes binman_entry_find() work correctly.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
a
This incorrectly shortens read operations if there is a maximum write size
but no maximum read size. Fix it.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/ich.c b/
We already a message indicating that U-Boot is about to jump to SPL, so
make this one a debug() to reduce code size.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/lib/tpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/lib/tpl.c
With FSP2 we need to run silicon init early after relocation. Add a new
hook for this.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
common/board_r.c | 3 +++
include/init.h | 11 +++
2 files changed, 14 insertions(+)
diff --git a/common/board_r.c b/common/
On some platforms the timer is reset to 0 when the SoC is reset. Having
this as the timer base is useful since it provides an indication of how
long it takes before U-Boot is running.
When U-Boot sets the timer base to something else, time is lost and we
no-longer have an accurate account of the t
Intel x86 SoCs have a power manager/controller which handles several
power-related aspects of the platform. Add a uclass for this, with a few
useful operations.
Signed-off-by: Simon Glass
---
Changes in v3:
- Rename power-mgr uclass to acpi-pmc
Changes in v2: None
drivers/power/Kconfig
Add a sandbox driver and PCI-device emulator for p2sb. Also add a test
which uses a simple 'adder' driver to test the p2sb functionality.
Signed-off-by: Simon Glass
---
Changes in v3:
- Fix build errors in sandbox_spl, etc
Changes in v2: None
arch/sandbox/cpu/state.c | 1 +
arch/s
We don't expect an exception in TPL and don't need to print out full
details if one happens. Add a reduced version of the code for TPL.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/cpu/i386/interrupt.c | 13 +
1 file changed, 13 insertions(+)
dif
Add code to init the system both in TPL and SPL. Each phase has its own
procedure.
Signed-off-by: Simon Glass
---
Changes in v3:
- Adjust fast_spi_cache_bios_region() to avoid using SPI driver
- Drop calls to x86_cpu_init_f(), x86_cpu_reinit_f()
- Fix build error when debug UART is disabled
- In
Add very basic support for taking an lpss device out of reset.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/cpu/apollolake/Makefile | 1 +
arch/x86/cpu/apollolake/lpss.c | 31 +++
arch/x86/include/asm/lpss.h | 11 ++
The fsp_notify() API is the same for FSP1 and FSP2. Move it into a new
common API file.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/fsp/fsp_api.h | 27 +++
arch/x86/include/asm/fsp1/fsp_api.h | 21 +++--
2
For apollolake we need to take the I2C bus controller out of reset before
using this. Add this functionality to the driver.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add a weak function to avoid errors on other platforms
Changes in v2: None
drivers/i2c/dw_i2c_pci.c | 20
This function is a bit confusing at present due to the error handling.
Update it to remove the goto, returning errors as they happen.
While we are here, use hex for the data size since this is the norm in
U-Boot.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3:
- Move an add
This is used on several boards so add it to the common file. Also add a
useful power-limit value while we are here.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/arch-broadwell/cpu.h | 1 -
arch/x86/include/asm/arch-ivybridge/model_206ax.h
This driver handles communication with the systemagent which needs to be
told when U-Boot has completed its init.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/cpu/apollolake/Makefile | 2 ++
arch/x86/cpu/apollolake/systemagent.c | 19 +++
Newer Intel SoCs have different ways of setting up cache-as-ram (CAR).
Add support for these along with suitable configuration options.
Signed-off-by: Simon Glass
---
Changes in v3:
- Drop unneeded Kconfig file
Changes in v2: None
arch/x86/Kconfig| 16 +
arch/x86/cpu/
Add a simple sandbox test for this uclass.
Signed-off-by: Simon Glass
---
Changes in v3:
- Change the sandbox test from ITSS to IRQ
Changes in v2: None
arch/sandbox/dts/test.dts | 4 +++
configs/sandbox_defconfig | 3 +-
configs/sandbox_flattree_defconfig | 1 +
configs/s
Move the header files into the right order.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index 7c29369a169..516b859a674 100644
--- a/drivers
At present the interrupt table is included in all phases of U-Boot. Allow
it to be omitted, e.g. in TPL, to reduce size.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3:
- Move write_pirq_routing_table() to avoid 64-bit build error
Changes in v2: None
arch/x86/cpu/Makefile
Add support for Apollolake to the ICH driver. This involves adjusting the
mmio address and skipping setting of the bbar.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 19 ++-
drivers/spi/ich.h | 1 +
2 files changed, 15 insertions(+
For apollolake SPL is run from CAR (cache-as-RAM) which is in a different
location from where SPL must be placed in ROM. In other words, although
SPL runs before SDRAM is set up, it is not execute-in-place (XIP).
Add a Kconfig option for the ROM position.
Signed-off-by: Simon Glass
---
Changes
This should take account of the end of the new cache record since a record
cannot extend beyond the end of the flash region. This problem was not
seen before due to the alignment of the relatively small amount of MRC
data.
But with apollolake the MRC data is about 45KB, even if most of it is
zeroe
Define this symbol so that we can use binman symbols correctly.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/cpu/u-boot-spl.lds | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/cpu/u-boot-spl.lds b/arch/x86/cpu/u-boot-spl.lds
i
At present we call spl_init() before identifying the CPU. This is not a
good idea - e.g. if bootstage is enabled then it will try to set up the
timer which works better if the CPU is identified.
Put explicit code at each entry pointer to identify the CPU.
Signed-off-by: Simon Glass
---
Changes
For TPL we only need to set up the features and identify the CPU to a
basic level. Add a function to handle that.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/x86/cpu/i386/cpu.c | 8
arch/x86/include/asm/u-boot-x86.h | 9 +
2 files chan
Most of the timer-calibration methods are not needed on recent Intel CPUs
and just increase code size. Add an option to use the known-good way to
get the clock frequency in TPL. Size reduction is about 700 bytes.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/ti
This function needs to be different for FSP2, so move the existing
function into the fsp1 directory. Since it is only called from one file,
drop it from the header file.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
arch/x86/include/asm/fsp/fsp_s
Add a driver for the apollolake Platform Controller Hub. It does not have
any functionality and is just a placeholder for now.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2:
- Drop probe() function
- Implement set_spi_protect()
arch/x86/cpu/apollolake/Makefile | 1
Add a note about the driver name in the of-platdata documentation since
the naming must follow the compatible string.
Signed-off-by: Simon Glass
---
Changes in v3:
- Rework patch now that the original CONFIG_IS_ENABLED() problems is fixed
Changes in v2: None
doc/driver-model/of-plat.rst | 2 +
Use dev_get_driver_data() to obtain the device type. It has the same
effect and is shorter.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/ich.c | 22 +-
1 file changed, 5 insertions(+), 17 deletions(-)
diff --git a/drivers/spi/ich.c b/d
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 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 discovered at r
At present we don't support loading microcode with FSP2. The correct way
to do this is by adding it to the FIT. For now, disable including
microcode in the image.
Signed-off-by: Simon Glass
---
Changes in v3:
- Drop unnecessary #else part of CONFIG_HAVE_MICROCODE
Changes in v2: None
arch/x86/
Add basic plumbing to allow apollolake support to be used.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add MMC, video, USB configs
- Add an APL_SPI_FLASH_BOOT option to enable non-mmap boot
- Fix the incorrect value of CPU_ADDR_BITS
Changes in v2: None
arch/x86/Kconfig| 1
The Primary-to-Sideband bus (P2SB) is used to access various peripherals
through memory-mapped I/O in a large chunk of PCI space. The space is
segmented into different channels and peripherals are accessed by
device-specific means within those channels. Devices should be added in
the device tree as
Add loaders for SPL and TPL so that the next stage can be loaded from
memory-mapped SPI or, failing that, the Fast SPI driver.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add a driver for APL SPI for TPL (using of-platdata)
- Support TPL without CONFIG_TPL_SPI_SUPPORT
- Support bootstage ti
These are mostly specific to a particular SoC. Add the definitions for
apollolake.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add VBT signature
- Add structures for FSP-S also
- Drop struct fsp_usp_header as it is now in the API file
Changes in v2: None
.../asm/arch-apollolake/fsp/fsp_co
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 boot-device type first, then the priority. This
produces the expected behaviour.
Signed-off-by: Simon Glass
This reverts commit 96ac4def8b6686de8566b91419ce98cd5765079b.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/sandbox/cpu/state.c | 12 ++--
arch/sandbox/include/asm/state.h | 5 +
cmd/nvedit.c | 8
include/configs/
1 - 100 of 132 matches
Mail list logo