On 17.09.20 13:23, Vignesh Raghavendra wrote:
Caller would need gracefully handle failures of dma_get_device(),
therefore reduce pr_err() to pr_debug() when DMA device is not found.
Signed-off-by: Vignesh Raghavendra
Reviewed-by: Stefan Roese
Thanks,
Stefan
---
drivers/dma/dma-uclass.c
On 20/05/2020 00.12, Rasmus Villemoes wrote:
> On 20/03/2020 11.14, Rasmus Villemoes wrote:
>> I have a board for which doing "sf erase 0x10 0x8"
>> consistently causes the external watchdog circuit to reset the
>> board. Make sure to pet the watchdog during slow operations such as
>> erasi
On 29.08.20 00:35, Luka Kovacic wrote:
Add support for the marvell,armada8040-puzzle-m801 compatible string
in the board/Marvell/mvebu_armada-8k/board.c file to initialize the
networking on iEi Puzzle-M801 board (2x CP1 1 Gb ports).
Signed-off-by: Luka Kovacic
Cc: Luka Perkov
Reviewed-by: St
On 29.08.20 00:35, Luka Kovacic wrote:
Add initial U-Boot support for the iEi Puzzle-M801 board based on the
Marvell Armada 88F8040 SoC.
Currently supported hardware:
1x USB 3.0
4x Gigabit Ethernet
2x SFP+ (with NXP PCA9555 and NXP PCA9544)
1x SATA 3.0
1x M.2 type B
1x RJ45 UART
1x SPI flash
1x
On 22.09.20 13:21, Pali Rohár wrote:
As required by PCI Express spec a delay for at least 100ms after
de-asserting PERST# signal is needed before link training is enabled.
Linux kernels prior to 5.8 version do not automatically disable link
training before de-asserting PERST# signal, therefore t
Include missing log.h and change _ofnode_to_np() to ofnode_to_np() so
that compiling with OF_CHECKS enabled does not break.
Signed-off-by: Stefan Roese
Cc: Simon Glass
---
include/dm/ofnode.h | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/dm/ofnode.h b/includ
On Wed, Sep 23, 2020 at 2:46 AM Simon Glass wrote:
>
> Note: This is part D of this effort. With this, Coral includes all
> required ACPI tables.
>
> At present on x86 U-Boot supports creating ACPI (Advanced Configuration
> and Power Interface) tables using the Intel ACPI Source Language (ASL)
> c
Hi Simon,
On 22.09.20 15:51, Simon Glass wrote:
Hi Stefan,
On Mon, 21 Sep 2020 at 07:28, Stefan Roese wrote:
Hi Andre,
(added Simon)
On 18.09.20 19:45, Andre Przywara wrote:
The cfi-flash driver uses an open-coded version of the generic
algorithm to decode and translate multiple frames of
On Wed, Sep 23, 2020 at 11:16 AM Simon Glass wrote:
>
> At present the 'bdinfo' command shows the framebuffer address, but not the
> address of the copy framebuffer, if present. Add support for this.
>
> Signed-off-by: Simon Glass
> Reviewed-by: Bin Meng
> ---
>
> Changes in v3:
> - Update heade
On Wed, Sep 23, 2020 at 4:54 AM Simon Glass wrote:
>
> This series adds a few more features to some x86-specific commands.
>
> Changes in v2:
> - Fix '93' typo
> - Capitalise 'System'
>
> Simon Glass (5):
> x86: hob: Add way to show a single hob entry
> x86: hob: Try to show a name instead of
Hi Rasmus,
Am 22.09.2020 um 16:34 schrieb Rasmus Villemoes:
Hi Heiko
I'm struggling somewhat with getting our mpc8309-derived board converted
to DM_ETH. I just get
Net: No ethernet found.
where I used to get
Net: UEC0, UEC1, UEC2
:-(
Ok, I currently have no access to the hardware, I w
Hi Bin,
On Tue, 22 Sep 2020 at 14:55, Simon Glass wrote:
>
> At present the 'bdinfo' command shows the framebuffer address, but not the
> address of the copy framebuffer, if present. Add support for this.
>
> Signed-off-by: Simon Glass
> Reviewed-by: Bin Meng
> ---
>
> (no changes since v1)
>
>
This series adds a few more features to some x86-specific commands.
Changes in v3:
- Update header file to avoid build error with !DM_VIDEO
Changes in v2:
- Fix '93' typo
- Capitalise 'System'
Simon Glass (5):
x86: hob: Add way to show a single hob entry
x86: hob: Try to show a name instead
At present the 'bdinfo' command shows the framebuffer address, but not the
address of the copy framebuffer, if present. Add support for this.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3:
- Update header file to avoid build error with !DM_VIDEO
cmd/bdinfo.c| 26 +
Hi Tom,
this contains some small fixes isolated to two MIPS boards which are
currently broken.
Gitlab CI: https://gitlab.denx.de/u-boot/custodians/u-boot-mips/-/pipelines/4758
The following changes since commit 5949f36f083515e2bb55f1a9c9110b287fbab587:
Merge branch '2020-09-22-assorted-bugfi
Am Samstag, den 19.09.2020, 18:03 +0200 schrieb Heinrich Schuchardt:
> Add the description of the global data pointer to the generated HTML
> documentation.
>
> Signed-off-by: Heinrich Schuchardt
> ---
> doc/develop/global_data.rst | 53 +
> doc/develop/index.
Am Sonntag, den 20.09.2020, 18:28 +0200 schrieb Mauro Condarelli:
> There are two distinct things here:
> - a few small fixes specific to vocore2 board.
> - fixes to SquashFS to allow compilation on 32-bit architectures.
>
> Mauro Condarelli (3):
> Small fixes to reduce size and ensure correct c
Am Sonntag, den 20.09.2020, 21:21 -0400 schrieb Tom Rini:
> On Sun, Sep 20, 2020 at 06:29:01PM +0200, Mauro Condarelli wrote:
>
> > Signed-off-by: Mauro Condarelli
> > ---
> > fs/squashfs/sqfs.c| 45 +--
> > fs/squashfs/sqfs_inode.c | 8 +++
> >
Hi Heinrich,
On Tue, 22 Sep 2020 at 13:10, Heinrich Schuchardt wrote:
>
> On 9/22/20 8:48 PM, Simon Glass wrote:
> > Hi Heinrich,
> >
> > On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt
> > wrote:
> >>
> >> Some drivers use macro pr_cont() for continuing a message sent via printk.
> >> Hence
Hi Bin,
On Tue, 22 Sep 2020 at 01:11, Bin Meng wrote:
>
> Hi Simon,
>
> On Fri, Sep 4, 2020 at 9:28 AM Simon Glass wrote:
> >
> > At present it is painful to put Edison in a hardware lab because it has
> > two separate recovery modes. When the board has a functioning U-Boot, DFU
> > can be used.
Hi Tom,
This is for upstream/next
Build here:
https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/4750
The following changes since commit 2512b3b88ba6b193c3cada7e29e386613e8f9a6b:
Merge branch '2020-09-14-generic-phy-error-trace' into next (2020-09-21
16:44:16 -0400)
are availab
Some HOBs include information that can be decoded. Add a -v option to the
hob command, to allow this to be displayed. Add the ability to decode a
resource descriptor.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2:
- Capitalise 'System'
cmd/x86/hob.c | 49 +
GUIDs are one of the seven evils of the computer world. They obfuscate the
meaning and require people to look up long hex strings to decode it.
Luckily only a miniscule fraction of the 10^38 possible GUIDs are in use.
Add a way to decode the GUIDs known to U-Boot. Add a few more to the list
for g
The 'hob' command currently lists all HOB entries. Add way to list a
single entry, by index.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
cmd/x86/hob.c | 16 +++-
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/cmd/x86/hob.c b/cmd/x86/h
At present the mtrr command only support 8 MTRRs. Some SoCs have more than
that. Update the implementation to support up to 10. Read the number of
MTRRs dynamically instead.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
arch/x86/cpu/mtrr.c | 12 +++
At present the 'bdinfo' command shows the framebuffer address, but not the
address of the copy framebuffer, if present. Add support for this.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
cmd/bdinfo.c | 26 +-
1 file changed, 25 insertions(
This series adds a few more features to some x86-specific commands.
Changes in v2:
- Fix '93' typo
- Capitalise 'System'
Simon Glass (5):
x86: hob: Add way to show a single hob entry
x86: hob: Try to show a name instead of a GUID
x86: Allow showing details about a HOB entry
x86: Add suppo
On Mon, Sep 21, 2020 at 09:48:24AM +0200, Rasmus Villemoes wrote:
> Fix build failure, it used to get this implicitly through common.h
> until f7ae49fc4f (common: Drop log.h from common header).
>
> Signed-off-by: Rasmus Villemoes
> Reviewed-by: Heiko Schocher
Applied to u-boot/master, thanks!
On Sun, Sep 20, 2020 at 12:31:47PM +0200, Heinrich Schuchardt wrote:
> The install command is missing for an apt-get command.
>
> Signed-off-by: Heinrich Schuchardt
Applied to u-boot/master, thanks!
--
Tom
signature.asc
Description: PGP signature
On Fri, Sep 18, 2020 at 04:26:06PM +0200, Rasmus Villemoes wrote:
> Somewhere between v2020.04 and v2020.07 the mpc8xxx_spi driver broke,
> I'm guessing due to this hunk
>
> @@ -559,6 +560,8 @@ int dm_gpio_set_dir_flags(struct gpio_desc *desc, ulong
> flags)
> if (ret)
>
On Mon, Sep 07, 2020 at 10:37:35AM +1200, Chris Packham wrote:
> Setting CONFIG_ENV_ADDR to something other than 0 stops gd->env_addr
> from being allocated dynamically. When the environment is in SPI we need
> it to be allocated as we can't use a direct memory mapped address.
>
> Signed-off-by:
On Thu, Sep 17, 2020 at 05:57:21PM +0200, Heinrich Schuchardt wrote:
> 512 * 2^32 bytes equals 2 tebibytes.
>
> Signed-off-by: Heinrich Schuchardt
> Reviewed-by: Simon Glass
Applied to u-boot/master, thanks!
--
Tom
signature.asc
Description: PGP signature
On Tue, Sep 22, 2020 at 08:49:20PM +0200, Heinrich Schuchardt wrote:
> On 9/22/20 8:42 PM, Tom Rini wrote:
> > On Tue, Sep 22, 2020 at 08:03:49PM +0200, Heinrich Schuchardt wrote:
> >
> >> Most users don't need the standalone API examples. Distributions like Suse
> >> do not supply libgcc for cross
On 9/22/20 8:48 PM, Simon Glass wrote:
> Hi Heinrich,
>
> On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt wrote:
>>
>> Some drivers use macro pr_cont() for continuing a message sent via printk.
>> Hence if we want to convert printk messaging to using the logging system,
>> we must support contin
On 9/22/20 8:49 PM, Simon Glass wrote:
> Hi Heinrich,
>
> On Sat, 19 Sep 2020 at 10:05, Heinrich Schuchardt wrote:
>>
>> Sphinx documentation is only available for enums not for #defines.
>> Anyway it is better to keep related definitions in an enum.
>>
>> Signed-off-by: Heinrich Schuchardt
>> --
On Sat, 19 Sep 2020 at 10:10, Heinrich Schuchardt wrote:
>
> Add the missing Sphinx documentation for struct global_data and
> gd_board_type().
>
> Signed-off-by: Heinrich Schuchardt
> ---
> include/asm-generic/global_data.h | 357 ++
> 1 file changed, 309 insertions(
On Sat, 19 Sep 2020 at 10:10, Heinrich Schuchardt wrote:
>
> Add the description of the global data pointer to the generated HTML
> documentation.
>
> Signed-off-by: Heinrich Schuchardt
> ---
> doc/develop/global_data.rst | 53 +
> doc/develop/index.rst
On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt wrote:
>
> Provide a unit test checking that a continuation message will use the same
> log level and log category as the previous message.
>
> Signed-off-by: Heinrich Schuchardt
> ---
> test/log/Makefile| 4 +++-
> test/log/cont_test.c | 52
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote:
>
> In prepartion to remove CONFIG_DEFAULT_CONSOLE, fold the current users.
>
> Signed-off-by: Andre Heider
> ---
> include/configs/odroid.h| 7 +--
> include/configs/odroid_xu3.h| 6 +-
> include/configs/s5p_goni.h
Hi Heinrich,
On Sat, 19 Sep 2020 at 10:05, Heinrich Schuchardt wrote:
>
> Sphinx documentation is only available for enums not for #defines.
> Anyway it is better to keep related definitions in an enum.
>
> Signed-off-by: Heinrich Schuchardt
> ---
> include/asm-generic/global_data.h | 104 +
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote:
>
> There're no users left.
>
> Signed-off-by: Andre Heider
> ---
> scripts/config_whitelist.txt | 1 -
> 1 file changed, 1 deletion(-)
Reviewed-by: Simon Glass
On Sat, 19 Sep 2020 at 12:05, Heinrich Schuchardt wrote:
>
> Reformat the command line options chapter so that the command line options
> clearly stand out.
>
> Signed-off-by: Heinrich Schuchardt
> ---
> doc/arch/sandbox.rst | 57 +---
> 1 file changed, 33
On Sat, 19 Sep 2020 at 12:05, Heinrich Schuchardt wrote:
>
> Add doc/arch/sandbox.rst to the scope of SANDBOX.
>
> Signed-off-by: Heinrich Schuchardt
> ---
> MAINTAINERS | 1 +
> 1 file changed, 1 insertion(+)
>
Reviewed-by: Simon Glass
Hi Heinrich,
On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt wrote:
>
> Some drivers use macro pr_cont() for continuing a message sent via printk.
> Hence if we want to convert printk messaging to using the logging system,
> we must support continuation of log messages too.
>
> As pr_cont() doe
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote:
>
> Unused.
>
> Signed-off-by: Andre Heider
> ---
> include/configs/smdkv310.h | 3 ---
> 1 file changed, 3 deletions(-)
>
Reviewed-by: Simon Glass
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote:
>
> These are all unused.
>
> Signed-off-by: Andre Heider
> ---
> This sets completely removes CONFIG_DEFAULT_CONSOLE from the tree.
> Only compile time tested.
>
> include/configs/arndale.h | 2 --
> include/configs/espresso7420.h | 3 ---
>
On Thu, 10 Sep 2020 at 10:44, Patrick Delaunay wrote:
>
> The cell_count argument is required when cells_name is NULL.
>
> This patch adds this parameter in live tree API
> - of_count_phandle_with_args
> - ofnode_count_phandle_with_args
> - dev_count_phandle_with_args
>
> This parameter solves iss
On 9/22/20 8:42 PM, Tom Rini wrote:
> On Tue, Sep 22, 2020 at 08:03:49PM +0200, Heinrich Schuchardt wrote:
>
>> Most users don't need the standalone API examples. Distributions like Suse
>> do not supply libgcc for cross-compiling and we cannot do without on ARMv8
>> for building examples/.
>>
>> M
On Sun, 20 Sep 2020 at 02:04, Heinrich Schuchardt wrote:
>
> Sphinx documentation is only available for enums not for #defines.
> Anyway it is better to keep related definitions in an enum.
>
> Signed-off-by: Heinrich Schuchardt
> ---
> v2:
> enum gd_flags must not be exposed to assembler
Hi Ning,
On Mon, 14 Sep 2020 at 13:26, zhangn1...@outlook.com
wrote:
>
> Hi, Simon
>
> I find a guide in mainline uboot code, which updated by you.
> This guide is for chromebook_jerry, can it apply to Flip C100p (minnie)?
>
> If it can apply to minnie, my understanding are:
> Build u-boot-spl-dt
Use the correct name of the ACPI structure being created.
Signed-off-by: Simon Glass
---
Changes in v4:
- Add new patch to use I2cSerialBusV2() instead of I2cSerialBus()
include/acpi/acpi_device.h | 2 +-
lib/acpi/acpi_device.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
At present this function only supports FSP-M but it is also used to read
FSP-S, in which case FSP-M may be zero. Add support for showing whichever
address is present in the FSP binary.
Also change the debug() statements to log_debug() while here.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Hi Heinrich,
On Tue, 22 Sep 2020 at 12:04, Heinrich Schuchardt wrote:
>
> Most users don't need the standalone API examples. Distributions like Suse
> do not supply libgcc for cross-compiling and we cannot do without on ARMv8
> for building examples/.
>
> Make examples customizable via symbol CON
Add some documentation provided by Andy Shevchenko to describe how to
use struct acpi_gpio.
Signed-off-by: Simon Glass
---
Changes in v4:
- Add Andy's documentation to struct acpi_gpio
include/acpi/acpi_device.h | 22 ++
1 file changed, 22 insertions(+)
diff --git a/includ
Enable new features and provide require device-tree config so that U-Boot
produces the correct ACPI tables on Coral.
Signed-off-by: Simon Glass
---
Changes in v4:
- Correct DPTF enable property
- Correct compatible string for gma device
Changes in v3:
- Rebase to master
Changes in v2:
- Rebase
A few fields have an open-coded length. Use the defines for this purpose
instead.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
include/acpi/acpi_table.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/acpi/acpi_table.h b/include/a
Some boards want to reserve extra regions of memory. Add a 'chosen'
property to support this.
Reviewed-by: Bin Meng
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/lib/fsp/fsp_dram.c | 17 +
doc/device-tree-bindings/chosen.txt | 18 ++
2 f
At present linux/bitops.h is included in ACPI code. This is not needed and
can cause a problem in fls64.h since BITS_PER_LONG is not defined. Move
the #include into the part not used by ACPI.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v2)
Changes in v2:
- Add new pa
This file doesn't currently have a log category. Add one so that items
are logged correctly.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
arch/x86/lib/acpi_table.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi
If locating the FSP header hangs for whatever reason it is useful to see
where it got stuck. Add a debug print. Also show the address of the FSP-S
entry point as a sanity check.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
arch/x86/lib/fsp2/fsp_silicon_init.c | 4
If U-Boot is not running FSP-S it should not do the pre-init either. Add a
condition to handle this.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/cpu/apollolake/fsp_s.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollol
Add files describing the various audio configurations supported on coral.
These are passed to Linux in the ACPI tables.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Add new patch with coral audio descriptor files
.../chromebook_coral/dialog-2ch-48khz-24b.dat| Bin
This provides information about a v1 TPM in the system. Generate this
table if the TPM is present.
Add a required new bloblist type and correct the header order of one
header file.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/lib/acpi_table.c | 54
This provides information about a v2 TPM in the system. Generate this
table if the TPM is present.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/lib/acpi_table.c | 74 +++
include/acpi/acpi_table.h | 11 ++
include/bloblist.h| 1
At present if hyperthreading is disabled the CPU numbering is not
sequential. Fix this.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/lib/acpi_table.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_tabl
This file cannot currently be included in ASL files. Add a header guard
to permit this.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
arch/x86/include/asm/acpi_table.h | 4
1 file changed, 4 insertions(+)
diff --git a/arch/x86/include/asm/acpi_table.h
b/arc
Send this notification when U-Boot is about to boot into Linux, as
requested by the FSP.
Currently this causes a crash with the APL FSP, so leave it disabled for
now.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/cpu/cpu.c| 15 +++
arch/x86/lib/fsp/fsp_
This is currently in the wrong place, so including the file in the device
tree fails. Fix it.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v1)
Changes in v1:
- Update commit message with a comma
arch/x86/include/asm/e820.h | 3 +--
1 file changed, 1 insertion(+), 2
At present the MTRR registers are programmed with the list the U-Boot
builds up in the same order. In some cases this list may be out of order.
It looks better in Linux to have the registers in order, so sort them,
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/cpu/mtrr.c | 12 +
Generate ACPI information for this device so that Linux can use it
correctly.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Capitalise ACPI_OPS_PTR
- Update for acpi_device_write_i2c_dev() return-value change
- Use acpi,ddn instead of acpi,desc
drivers/tpm/cr50_i2c.c |
This new method is intended to be called when UEFI shuts down the 'boot
services', i.e. any lingering code in the boot loader that might be used
by the OS.
Add a definition for this new method and update the comments a little.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes si
Add ACPI generation to the APL CPU driver.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Capitalise ACPI_OPS_PTR
- Handle table generation without callbacks
arch/x86/cpu/apollolake/cpu.c | 77 ++
arch/x86/lib/Makefile | 3
Add support for this new field in the common code used by most x86 CPU
drivers.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/cpu/i386/cpu.c | 23 +++
arch/x86/cpu/intel_common/cpu.c | 1 +
arch/x86/cpu/x86_64/cpu.c | 5 +
arch/x86/includ
Support generating a DMAR table and add a few helper routines as well.
Also set up NHLT so that audio works.
Signed-off-by: Simon Glass
---
Changes in v4:
Drop extra acpi_align() in apl_acpi_hb_write_tables()
Changes in v1:
- Add support for NHLT table
- Capitalise ACPI_OPS_PTR
- Move the acpi.
We don't have CONFIG_PCI in TPL but it is present in SPL, etc. So this
code is not needed. Drop it, and fix a code-style nit just above.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/cpu/apollolake/pmc.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git
Add support for generating various ACPI tables for Apollo Lake. Add a few
S3 definitions that are needed.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Drop unnecessary callbacks
arch/x86/cpu/apollolake/Makefile| 1 +
arch/x86/cpu/apollolake/acpi.c
Add an ACPI table for the LPC on Apollo Lake.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Capitalise ACPI_OPS_PTR
arch/x86/cpu/apollolake/lpc.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/arch/x86/cpu/apollolake/lpc.c b/arch/x86/cpu/apollo
Apollo Lake needs to generate a few more table types used on Intel SoCs.
Add support for these into the x86 ACPI code.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Move this code into an x86-specific file
- Update commit message
- Use OEM_TABLE_ID instead of ACPI_TABLE_
Allow this header to be included in ASL files by adding a header guard and
a few definitions that are needed.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/p2sb.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/p2sb.h b/include/p2sb.h
index 93e1155dca6..a2517
These are needed for the CPU tables. Add them into an x86-specific file
since we do not support them on sandbox, or include tests.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Split PCT and PTC tables into a separate patch
arch/x86/include/asm/acpigen.h | 35 +
Add various tables that are common to Intel CPUs. These functions can be
used by arch-specific CPU code.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/cpu/intel_common/Makefile | 2 +
arch/x86/cpu/intel_common/acpi.c | 377 +
arch/x86/cpu/intel_c
This adds tables relating to P-States and C-States.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/acpi/acpigen.h | 162 +++
lib/acpi/acpigen.c | 167 +++
test/dm/acpigen.c | 294 +
3 files c
Some Atom SoCs use SWSMISCI for SMI control. Add a Kconfig to select this.
It is used on Apollo Lake.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/Kconfig| 6 ++
arch/x86/cpu/apollolake/Kconfig | 1 +
2 files changed, 7 insertions(+)
diff --git a/arch/x86/
Add a few functions to permit reading of various useful base addresses
provided by the hostbridge.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Add comments
arch/x86/cpu/apollolake/hostbridge.c | 27
.../include/asm/arch-apollolake/systemagen
ACPI has a number of CPU-related tables. Add utility functions to write
out the basic packages.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/acpi/acpigen.h | 39 +++
lib/acpi/acpigen.c | 55 +
test/dm/acpigen.c | 106 ++
Add an implementation of the DBG2 (Debug Port Table 2) ACPI table.
Adjust one of the header includes to be in the correct order, before
adding more.
Note that the DBG2 table is generic but the PCI UART is x86-specific at
present since it assumes an ns16550 UART. It can be generalised later
if nece
Add an implementation of the HPET (High Precision Event Timer) ACPI
table. Since this is x86-specific, put it in an x86-specific file
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Put this code in an x86-specific place and update commit message
arch/x86/include/asm/acp
U-Boot does not support SMM (System Management Mode) at present, but needs
a few definitions to correctly set up the ACPI table. Add these.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/include/asm/smm.h | 27 +++
1 file changed, 27 insertions(+)
create
Add functions to query CPU information, needed for ACPI.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Add more comments and rename cpu_get_bus_clock to cpu_get_bus_clock_khz()
arch/x86/cpu/intel_common/cpu.c | 64 +++
arch/x86/include/asm
Add some more definitions to the iomap. These will be used by
ACPI-generation code as well as the device tree.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/include/asm/arch-apollolake/iomap.h | 16
1 file changed, 16 insertions(+)
diff --git a/arch/x86/includ
Add SCI and power-state definitions required by ACPI tables. Fix the
license to match the original source file.
Als update the guard on acpi_pmc.h to avoid an error when buiding ASL.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Use SHIFT and MASK for defines
arch/x86
This function currently accepts the IRQ-polarity type. Fix it to use the
GPIO type instead.
Signed-off-by: Simon Glass
---
(no changes since v2)
Changes in v2:
- add new patch to fix polarity type in acpi_dp_add_gpio()
drivers/sound/max98357a.c | 2 +-
include/acpi/acpi_dp.h| 2 +-
lib/ac
Intel WiFi chips can use a common routine to write the information needed
by linux. Add an implementation of this.
Enable it for coral.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Capitalise ACPI_OPS_PTR
- Use acpi,ddn instead of acpi,desc
arch/x86/Kconfig
This table is needed by the Linux graphics driver to handle graphics
correctly. Write it to ACPI.
Signed-off-by: Simon Glass
---
(no changes since v1)
Changes in v1:
- Capitalise ACPI_OPS_PTR
- Don't build for SPL
arch/x86/Kconfig | 8 +
arch/x86/cpu/apollolake/Kco
Many I2C devices produce roughly the same ACPI data with just things like
the GPIO/interrupt information being different.
This can be handled by a generic driver along with some information in the
device tree.
Add a generic i2c driver for this purpose.
Signed-off-by: Simon Glass
Reviewed-by: He
Some devices can wake the system from sleep, e.g opening the lid on a
clamshell or moving a USB mouse.
Add a wake to specify this for USB devices and add the settings for Apollo
Lake.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/include/asm/arch-apollolake/gpe.h | 135 ++
A 'Power Resource for Wake' list the resources a device depends on for
wake. Add a function to generate this.
Signed-off-by: Simon Glass
---
Changes in v4:
- Correct comment for dm_test_acpi_write_prw()
include/acpi/acpigen.h | 10 ++
lib/acpi/acpigen.c | 10 ++
test/dm/acp
The extra ACPI code increases U-Boot above it current size limit. Move
the start earlier to provide space.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
(no changes since v2)
Changes in v2:
- Add new patch to allow more space for U-Boot on link
configs/chromebook_link_defconfig | 2 +-
Add a function to generate ACPI code for a _DSM method for a device.
This includes functions for starting and ending each part of the _DSM.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/acpi/acpi_device.h | 14 +
include/acpi/acpigen.h | 99
Add functions to support generating ACPI code for condition checks and
return values.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/acpi/acpigen.h | 93 ++
lib/acpi/acpigen.c | 68 ++
test/dm/acpigen.c
1 - 100 of 252 matches
Mail list logo