Fix the 'memeber' typo in doc/driver-model/design.rst.
Signed-off-by: Dario Binacchi
Reviewed-by: Simon Glass
---
Changes in v2:
- Add the commit message
doc/driver-model/design.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-dm, thanks!
Add random number generation APIs to the HTML documentation.
Fix style issues.
Signed-off-by: Heinrich Schuchardt
---
MAINTAINERS | 1 +
doc/api/index.rst | 1 +
doc/api/rng.rst | 17 +
include/rand.h| 6 +++---
include/rng.h | 26 ++
5
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Poonam Aggrwal
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 7 -
board/freescale/bsc9131rdb/Kconfig| 12 -
board/freesc
This is rebased v2 for previous version spi dm-conversion
series[1] on fsl_espi boards.
All these patches dropped the boards which are not converted
spi dm and also the maintainer is accepted to remove the
same.
Rest of the patches in this series are trying to switch spi dm.
Changes for v2:
- reb
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Po Liu
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig| 10 -
board/freescale/c29xpcie/Kconfig| 14 -
board/freescale/c29xpcie
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Naveen Burmi
Patch-cc: Ruchika Gupta
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 9 -
board/freescale/bsc9132qds/Kconfig
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Priyanka Jain
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 9 -
board/freescale/mpc8536ds/Kconfig | 12 -
board/freescale/mpc8536ds/MAI
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Poonam Aggrwal
Patch-cc: Ruchika Gupta
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 11 -
board/freescale/t1040qds/Kconfig | 1
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Timur Tabi
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 9 -
board/freescale/p1022ds/Kconfig | 12 -
board/freescale/p1022ds/MA
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Xiaobo Xie
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 5 -
board/freescale/p1_twr/Kconfig | 12 -
board/freescale/p1_twr/MAINTAINERS |
On Thu, Jun 4, 2020 at 8:52 PM Zhiqiang Hou wrote:
>
> From: Hou Zhiqiang
>
> Merged the following 2 series and added P1010RDB boards into the
> support list.
> https://patchwork.ozlabs.org/project/uboot/list/?series=126119&archive=both&state=%2a
> https://patchwork.ozlabs.org/project/uboot/list/
On Thu, Jun 4, 2020 at 8:52 PM Zhiqiang Hou wrote:
>
> From: Chuanhua Han
>
> Modify the Freescale ESPI driver to support the driver model.
> Also resolved the following problems:
>
> = WARNING ==
> This board does not use CONFIG_DM_SPI. Please update
> the
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Signed-off-by: Jagan Teki
---
arch/powerpc/cpu/mpc85xx/Kconfig| 11 -
board/freescale/t102xqds/Kconfig| 14 -
board/freescale/t102xqds/MAINTAINERS| 12 -
board/freescale/t
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Ashish Kumar
Patch-cc: Ruchika Gupta
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 17 -
board/freescale/b4860qds/Kconfig
DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Ruchika Gupta
Signed-off-by: Jagan Teki
Reviewed-by: Priyanka Jain
---
arch/powerpc/cpu/mpc85xx/Kconfig | 20 -
board/freescale/t4qds/Kconfig | 14 -
board/freescale/t4qds
Enable DM_SPI/DM_SPI_FLASH with associated config
options.
Build fine, but not tested.
Patch-cc: Uri Mashiach
Signed-off-by: Jagan Teki
---
configs/cl-som-imx7_defconfig | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/configs/cl-som-imx7_defconfig b/configs/cl-som-im
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Patch-cc: Nikita Kiryanov
Signed-off-by: Jagan Teki
---
configs/cm_fx6_defconfig | 3 +++
include/configs/cm_fx6.h | 7 ---
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/configs/cm_fx6_def
This series updated boards which are using mxc_spi
driver.
Series has patches for
1) DM_SPI/SPI_FLASH enablement for boards which
already support DM and OF_CONTROL.
2) Drop the boards which doesn't support DM or OF_CONTROL.
Now it's call for board maintainers to update their
board to use devi
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Cc: Ludwig Zenz
Cc: Andreas Geisreiter
Signed-off-by: Jagan Teki
---
configs/dh_imx6_defconfig | 3 +++
include/configs/dh_imx6.h | 6 --
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/con
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this defconfig.
Remove it.
Patch-cc: Markus Niebel
Signed-off-by: Jagan Teki
---
configs/tqma6s_wru4_mmc_defconfig | 81 ---
1 file changed, 81 deletions(-)
delete mode 100644 configs/tqm
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Stefano Babic
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx6/Kconfig | 6 -
board/phytec/pcm058/Kconfig | 12 -
board/phytec/pcm058/MAINTAINERS | 6 -
board/phytec/pcm
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Stefano Babic
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx5/Kconfig | 6 -
board/freescale/mx51evk/Kconfig | 15 -
board/freescale/mx51evk/MAINTAINERS |
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Stefano Babic
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx6/Kconfig | 7 -
board/phytec/pfla02/Kconfig | 18 -
board/phytec/pfla02/MAINTAINERS | 6 -
board/phytec/pfl
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Lucile Quirion
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx5/Kconfig| 5 -
board/technologic/ts4800/Kconfig | 15 --
board/technologic/ts4800/MAINTAINERS | 6 -
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Christian Gmeiner
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx6/Kconfig | 6 -
board/bachmann/ot1200/Kconfig | 12 -
board/bachmann/ot1200/MAINTAINE
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Eric Bénard
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx6/Kconfig | 6 -
board/embest/mx6boards/Kconfig | 12 -
board/embest/mx6boards/MAINTAINERS | 8 -
board/emb
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Otavio Salvador
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx6/Kconfig| 10 -
board/congatec/cgtqmx6eval/Kconfig | 12 -
board/congatec/cgtqmx6eval/MAINTAIN
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Patch-cc: Stefano Babic
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx6/Kconfig | 17 -
board/el/el6x/Kconfig | 25 --
board/el/el6x/MAINTAINERS | 8 -
board/el/el6x/Makefile|
OF_CONTROL, DM_SPI and other driver model migration deadlines
are expired for this board.
Remove it.
Patch-cc: Akshay Bhat
Patch-cc: Ken Lin
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx6/Kconfig| 7 -
board/advantech/dms-ba16/Kconfig | 31 --
board/advantech/dms-b
DM, OF_CONTROL, DM_SPI and other driver model migration
deadlines are expired for this board.
Remove it.
Patch-cc: Stefano Babic
Signed-off-by: Jagan Teki
---
arch/arm/Kconfig| 6 -
board/freescale/mx35pdk/Kconfig | 15 --
board/freescale/mx35pdk/MAINTAINERS
DM, OF_CONTROL, DM_SPI and other driver model migration
deadlines are expired for this board.
Remove it.
Patch-cc: Stefano Babic
Signed-off-by: Jagan Teki
---
arch/arm/Kconfig| 5 -
board/CarMediaLab/flea3/Kconfig | 15 --
board/CarMediaLab/flea3/MAINTAINERS
DM, OF_CONTROL, DM_SPI and other driver model migration
deadlines are expired for this board.
Remove it.
Patch-cc: Magnus Lilja
Signed-off-by: Jagan Teki
---
arch/arm/mach-imx/mx3/Kconfig | 12 --
board/freescale/mx31pdk/Kconfig | 15 ---
board/freescale/mx31pdk/MAINTAINERS
On Sat, Jun 13, 2020 at 07:24:39PM +0530, Jagan Teki wrote:
> This series updated boards which are using mxc_spi
> driver.
>
> Series has patches for
> 1) DM_SPI/SPI_FLASH enablement for boards which
>already support DM and OF_CONTROL.
> 2) Drop the boards which doesn't support DM or OF_CONT
On Wed, May 27, 2020 at 6:26 PM Jagan Teki wrote:
>
> Enable DM_SPI for am355x baltos board.
>
> Build is fine, but not tested.
>
> Cc: Yegor Yefremov
Any comments?
On Wed, May 27, 2020 at 6:26 PM Jagan Teki wrote:
>
> Enable DM_SPI for am355x igep003x board.
>
> Build is fine, but not tested.
>
> Cc: Javier Martínez Canillas
> Signed-off-by: Jagan Teki
> ---
> Changes for v2:
> - new patch
>
> configs/am335x_igep003x_defconfig | 1 +
> 1 file changed, 1 i
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> Enable DM_SPI, DM_SPI_FLASH for siemens draco board.
>
> Build is fine, but not tested.
>
> Cc: Samuel Egli
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> Enable DM_SPI, DM_SPI_FLASH for siemens pxm2 board.
>
> Build is fine, but not tested.
>
> Cc: Samuel Egli
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> Enable DM_SPI, DM_SPI_FLASH for siemens rut board.
>
> Build is fine, but not tested.
>
> Cc: Samuel Egli
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> DM, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Dmitry Lifshitz
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> DM, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Igor Grinberg
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> OF_CONTROL, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Steve Sakoman
Any inputs?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> OF_CONTROL, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Nishanth Menon
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> OF_CONTROL, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Albert ARIBAUD (3ADEV)
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> DM, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Ash Charles
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> DM, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Lokesh Vutla
Any comments?
On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote:
>
> Hi Jagan,
>
> On 27/05/20 6:26 pm, Jagan Teki wrote:
> > DM, DM_SPI and other driver model migration deadlines
> > are expired for this board.
> >
> > Drop it.
> >
> > Cc: Lokesh Vutla
> > Signed-off-by: Jagan Teki
>
> Please hold this patc
On Fri, Jun 5, 2020 at 10:02 AM Lokesh Vutla wrote:
>
> Hi Jagan,
>
> On 27/05/20 6:26 pm, Jagan Teki wrote:
> > DM, DM_SPI and other driver model migration deadlines
> > are expired for this board.
> >
> > Drop it.
> >
> > Cc: Lokesh Vutla
> > Signed-off-by: Jagan Teki
>
> Please hold this patc
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> OF_CONTROL, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Gilles Gameiro
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> OF_CONTROL, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Ash Charles
Any comments?
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote:
>
> OF_CONTROL, DM_SPI and other driver model migration deadlines
> are expired for this board.
>
> Drop it.
>
> Cc: Lothar Felten
Any comments?
This commit adds device tree files supporting
SBC from Seeed Studio based on STM32MP157C.
This works with generic stm32mp1 config.
Right now only booting from SD card is supported.
Signed-off-by: Marcin Sloniewski
---
arch/arm/dts/Makefile | 3 +-
.../dts/odyssey-stm
On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki wrote:
>
> On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote:
> >
> > Hi Jagan,
> >
> > On 27/05/20 6:26 pm, Jagan Teki wrote:
> > > DM, DM_SPI and other driver model migration deadlines
> > > are expired for this board.
> > >
> > > Drop it.
> > >
> > >
On Sun, 14 Jun, 2020, 01:02 Peter Robinson, wrote:
> On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki
> wrote:
> >
> > On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote:
> > >
> > > Hi Jagan,
> > >
> > > On 27/05/20 6:26 pm, Jagan Teki wrote:
> > > > DM, DM_SPI and other driver model migration deadl
On Sun, Jun 14, 2020 at 01:05:53AM +0530, Jagan Teki wrote:
> On Sun, 14 Jun, 2020, 01:02 Peter Robinson, wrote:
>
> > On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki
> > wrote:
> > >
> > > On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote:
> > > >
> > > > Hi Jagan,
> > > >
> > > > On 27/05/20 6:26
чт, 14 мая 2020 г. в 09:44, Roman Stratiienko :
>
> CC: ja...@amarulasolutions.com
>
> пт, 8 мая 2020 г. в 15:29, Roman Stratiienko :
> >
> > Same was done in the kernel for all devices compatible with
> > 'allwinner,sun8i-a33-musb' at [1] and [2].
> >
> > Fixes musb initialization on H6 SOC.
> >
>
On Sun, 14 Jun, 2020, 01:09 Tom Rini, wrote:
> On Sun, Jun 14, 2020 at 01:05:53AM +0530, Jagan Teki wrote:
> > On Sun, 14 Jun, 2020, 01:02 Peter Robinson,
> wrote:
> >
> > > On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki >
> > > wrote:
> > > >
> > > > On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla
>
Hi Roman,
ср, 10 июн. 2020 г. в 19:37, Roman Kovalivskyi
:
>
> Default implementation of fastboot_set_reboot_flag function that depends
> on "bcb" commands could be used in general case if there are no need to
> make any platform-specific implementation, otherwise it could be
> disabled via Kconfi
On Thu, 11 Jun 2020 at 10:17, Ard Biesheuvel wrote:
>
> Some instructions in the ARM ISA have multiple output registers, such
> as ldrd/ldp (load pair), where two registers are loaded from memory,
> but also ldr with indexing, where the memory base register is incremented
> as well when the value
>> > > > > > DM, DM_SPI and other driver model migration deadlines
>> > > > > > are expired for this board.
>> > > > > >
>> > > > > > Drop it.
>> > > > > >
>> > > > > > Cc: Lokesh Vutla
>> > > > > > Signed-off-by: Jagan Teki
>> > > > >
>> > > > > Please hold this patch. I see patches in ML for co
On Sun, Jun 14, 2020 at 12:15:59AM +0100, Peter Robinson wrote:
> >> > > > > > DM, DM_SPI and other driver model migration deadlines
> >> > > > > > are expired for this board.
> >> > > > > >
> >> > > > > > Drop it.
> >> > > > > >
> >> > > > > > Cc: Lokesh Vutla
> >> > > > > > Signed-off-by: Jagan
Hi Walter,
On Mon, 8 Jun 2020 at 10:01, Walter Lozano wrote:
>
> Hi Simon
>
> On 4/6/20 12:59, Simon Glass wrote:
> > On Fri, 29 May 2020 at 12:15, Walter Lozano
> > wrote:
> >> Currently dtoc does not support the property cd-gpios used to declare
> >> the gpios for card detect in mmc.
> >>
> >
This is split from the original series in an attempt to get things applied
in chunks.
This part includes:
- writing basic ACPI code for integers, strings, names, packages
- writing descriptors for GPIO, I2C, interrupts, SPI
- writing code to enable/disable ACPI peripherals via GPIOs
- writing SSDT
This always has a fixed ACPI name so add it as a driver function.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
Reviewed-by: Bin Meng
---
(no changes since v1)
Changes in v1:
- Capitalise ACPI_OPS_PTR
drivers/core/root.c | 13 +
1 file changed, 13 insertions(+)
diff
When generating ACPI tables we need to convert IRQs in U-Boot to the ACPI
structures required by ACPI. This is a SoC-specific conversion and cannot
be handled by generic code, so add a new IRQ method to do the conversion.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes
Add a new file to handle generating ACPI code programatically. This is
used when information must be dynamically added to the tables, e.g. the
SSDT.
Initial support is just for writing simple values. Also add a 'base' value
so that the table can be freed. This likely doesn't happen in normal code,
At present U-Boot does not support the different ACPI status values, but
it is best to put this logic in a central place. Add a function to get the
device status.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpi_device.h | 28 +++
Add a function to write an interrupt descriptor to the generated ACPI
code.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpi_device.h | 15 +
lib/acpi/acpi_device.c | 118 +
test/dm/acpigen.c
Add support for output of strings and streams of bytes.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpigen.h | 19 +++
lib/acpi/acpigen.c | 14 ++
test/dm/acpigen.c | 42 +
Add a function to build up the ACPI path for a device and another for its
scope.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
Reviewed-by: Bin Meng
---
Changes in v3:
- s/NUL/NULL/ for the NUL character, since that is in more common use
Changes in v1:
- Split into more patches for
Add a function to write a GPIO descriptor to the generated ACPI code.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpi_device.h | 22 ++
lib/acpi/acpi_device.c | 151 +
test/dm/acpigen.c
Add a function to write a GPIO descriptor to the generated ACPI code.
Reviewed-by: Wolfgang Wallner
Signed-off-by: Simon Glass
---
Changes in v3:
- Update comment in acpi_device_set_i2c() to talk about scope parameter
Changes in v2:
- Fix memset of I2C descriptor
drivers/i2c/sandbox_i2c.c |
When generating ACPI tables we need to convert GPIOs in U-Boot to the ACPI
structures required by ACPI. This is a SoC-specific conversion and cannot
be handled by generic code, so add a new GPIO method to do the conversion.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no change
Add a function to write a SPI descriptor to the generated ACPI code.
Signed-off-by: Simon Glass
---
Changes in v3:
- Make acpi_device_write_spi() static
- Add an extra comment about scope to acpi_device_set_spi()
- Use BIT() in a few places
- Resist the temptation to go to >80 characters
Change
Some devices use interrupts but some use GPIOs. Since these are fully
specified in the device tree we can automatically produce the correct ACPI
descriptor for a device.
Add a function to handle this.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
Changes in v3:
- Fix 'an GPIO is
It is convenient to write a length value for preceding a block of data.
Of course the length is not known or is hard to calculate a priori. So add
a way to mark the start on a stack, so the length can be updated when
known.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
Changes in
A package collects together several elements. Add an easy way of writing
a package header and updating its length later.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
Changes in v3:
- Fix 'easy of testing' typo
- Move two function comments into the previous patch
include/acpi/a
ACPI supports storing a simple nul-terminated string. Add support for
this.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpigen.h | 10 ++
lib/acpi/acpigen.c | 6 ++
test/dm/acpigen.c | 32 ++
ACPI supports storing integers in various ways. Add a function to handle
this.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpigen.h | 17 ++
lib/acpi/acpigen.c | 51 ++
test/dm/acpigen
Some drivers in Linux support both device tree and ACPI. U-Boot itself
uses Linux device-tree bindings for its own configuration but does not use
ACPI.
It is convenient to copy these values over to the device tree for passing
to linux. Add some convenience functions to help with this.
Signed-off-
ACPI supports writing a UUID in a special format. Add a function to handle
this.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpigen.h | 13 +
lib/acpi/acpigen.c | 38 ++
test/dm/acpigen.c
ACPI supports storing names which are made up of multiple path components.
Several special cases are supported. Add a function to emit a name.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpigen.h | 25 +++
include/test/ut.h | 1
Allowing writing out a reference to a GPIO within the ACPI output. This
can be used by ACPI code to access a GPIO at runtime.
Signed-off-by: Simon Glass
---
Changes in v3:
- Use an enum for the GPIO priority
- Add error checking
include/acpi/acpi_dp.h | 20
lib/acpi/acpi_d
More complex device properties can be provided to drivers via a
device-specific data (_DSD) object.
To create this we need to build it up in a separate data structure and
then generate the ACPI code, due to its recursive nature.
Add an implementation of this.
Signed-off-by: Simon Glass
Reviewed
These are used in ACPI to disable power to various pats of the system when
in sleep. Add a way to create a power resource, with the caller finishing
off the details.
Reviewed-by: Wolfgang Wallner
Signed-off-by: Simon Glass
---
(no changes since v1)
include/acpi/acpigen.h | 22
Add more functions to handle some miscellaneous ACPI opcodes.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
Changes in v3:
- Fix function name in comment for acpigen_write_not()
- Use #defines for the mask values
include/acpi/acpigen.h | 117
Power to some devices is controlled by GPIOs. Add a way to generate ACPI
code to enable and disable a GPIO so that this can be handled within an
ACPI method.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpigen.h | 12 +++
lib/acpi/acpige
Add a way for devices to enable and disable themselves using ACPI code
that updates GPIOs. This takes several timing parameters and supports
enable, reset and stop.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/acpi/acpi_device.h | 41 +
Some devices need to generate code for the Secondary System Descriptor
Table (SSDT). Add a method to handle this.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
Changes in v3:
- Fix 'THe' typo
Changes in v1:
- Switch parameter order of _acpi_fill_ssdt() and make it static
- Fix '
Put this table before MCFG so that it matches the order that coreboot uses
when passing tables to Linux. This is a cosmetic change since the order of
the tables does not otherwise matter.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
Changes in v1:
- Correc
It is useful to be able to control the order of data written to the SSDT
so that we can compare the output against known-good kernel dumps.
Add code to record each item that is added along with the device that
added it. That allows us to reorder things later if needed.
Signed-off-by: Simon Glass
Call the new core function to write the SSDT. This is made up of fragments
generated by devices that have the fill_ssdt() method.
Signed-off-by: Simon Glass
---
Changes in v3:
Drop coreboot_acpi_ids enum
Changes in v1:
- Use OEM_TABLE_ID instead of ACPI_TABLE_CREATOR
- Update ACPI_DSTATUS enum
Add a /chosen property to control the order in which the data appears
in the SSDT. This allows matching up U-Boot's output from a dump of the
known-good data obtained from within Linux.
Signed-off-by: Simon Glass
---
Changes in v3:
- Make find_item() static and rename to find_acpi_item()
- Renam
Some devices need to inject extra code into the Differentiated System
Descriptor Table (DSDT). Add a method to handle this.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
Changes in v3:
- Fix 'THe' typo
- Rename build_type() to sort_acpi_item_type()
Changes in v1:
- Generalise th
Call the new core function to inject ASL programmatically into the DSDT.
This is made up of fragments generated by devices that have the
inject_dsdt() method. The normal, compiled ASL file is added after this.
Signed-off-by: Simon Glass
---
Changes in v3:
- Refactor the code to remove the extra
This function cannot currently be called on the root node. Add a check
for this as well as a test.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
(no changes since v1)
include/dm/device.h | 2 +-
test/dm/pci.c | 14 ++
2 files changed, 15 insertions(+), 1 dele
Add a command that shows the individual blocks of data generated by each
device, effectively splitting the full table into its component parts.
This can be helpful for debugging.
Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Wallner
---
Changes in v3:
- Update acpi_dump_items() to take an en
Some typos have been fixed in the code but the entry docs were not
regenerated. Fix this.
Signed-off-by: Simon Glass
---
(no changes since v1)
tools/binman/README.entries | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/binman/README.entries b/tools/binman/README.e
For many device types it is possible to figure out the name just by
looking at its uclass or parent. Add a function to handle this, since it
allows us to cover the vast majority of cases automatically.
However it is sometimes impossible to figure out an ACPI name for a device
just by looking at it
Now that binman uses tools/ as its base directory for importing modules,
the path to the pylibfdt build by U-Boot is incorrect. Fix it with a new
path.
Signed-off-by: Simon Glass
---
Changes in v2:
- Leave the old (object-directory) path in place
tools/binman/main.py | 1 +
1 file changed, 1 i
Fix an over-length line in this function.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/core/device.c b/drivers/core/device.c
index a7408d9c76..2e3d555ea4 100644
--- a/drivers/core/device
1 - 100 of 147 matches
Mail list logo