Le 30/06/2024 à 20:28, Christophe Leroy a écrit :
Le 30/06/2024 à 16:54, Tom Rini a écrit :
On Sun, Jun 30, 2024 at 10:47:06AM +0200, Christophe Leroy wrote:
Le 27/06/2024 à 21:40, Tom Rini a écrit :
On Thu, Jun 27, 2024 at 01:34:55PM -0600, Tom Rini wrote:
On Thu, Jun 27, 2024 at 10
Le 30/06/2024 à 16:54, Tom Rini a écrit :
On Sun, Jun 30, 2024 at 10:47:06AM +0200, Christophe Leroy wrote:
Le 27/06/2024 à 21:40, Tom Rini a écrit :
On Thu, Jun 27, 2024 at 01:34:55PM -0600, Tom Rini wrote:
On Thu, Jun 27, 2024 at 10:25:21AM +0200, Christophe Leroy wrote:
Commit
Le 27/06/2024 à 21:40, Tom Rini a écrit :
On Thu, Jun 27, 2024 at 01:34:55PM -0600, Tom Rini wrote:
On Thu, Jun 27, 2024 at 10:25:21AM +0200, Christophe Leroy wrote:
Commit 340fdf1303dc ("zlib: Port fix for CVE-2016-9841 to U-Boot")
brings a big performance regression in in
ly reverts commit 340fdf1303dce7e5f53ddd981471836058ff23ef.
Reported-by: Christophe Leroy
Signed-off-by: Tom Rini
Tested-by: Christophe Leroy
--
Cc: Christophe Leroy
Cc: Michal Simek
---
lib/zlib/inffast.c | 117 +
1 file changed, 75 inserti
with 63770 instead of 65535. It is not
a big difference in that case, but lets make the code correct and
cast to u32 instead of u16.
Fixes: 26e8ebcd7cb7 ("watchdog: mpc8xxx: Make it generic")
Signed-off-by: Christophe Leroy
---
drivers/watchdog/mpc8xxx_wdt.c | 2 +-
1 file changed, 1 inser
se of said commit.
Fixes: 340fdf1303dc ("zlib: Port fix for CVE-2016-9841 to U-Boot")
Signed-off-by: Christophe Leroy
---
lib/zlib/inffast.c | 51 --
1 file changed, 40 insertions(+), 11 deletions(-)
diff --git a/lib/zlib/inffast.c b/lib/
Le 26/06/2024 à 17:01, Tom Rini a écrit :
On Tue, Jun 25, 2024 at 09:20:54PM +0200, Christophe Leroy wrote:
Le 25/06/2024 à 17:19, Tom Rini a écrit :
On Tue, Jun 25, 2024 at 03:12:38PM +, LEROY Christophe wrote:
Hi All,
Le 24/06/2024 à 21:30, Tom Rini a écrit :
Hey all,
Well, once
Le 25/06/2024 à 17:19, Tom Rini a écrit :
On Tue, Jun 25, 2024 at 03:12:38PM +, LEROY Christophe wrote:
Hi All,
Le 24/06/2024 à 21:30, Tom Rini a écrit :
Hey all,
Well, once again I need to check my calender reminders since, whoops,
I'm a week late. That said, looking at the list of
Le 15/05/2024 à 23:57, Greg Malysa a écrit :
> [Vous ne recevez pas souvent de courriers de greg.mal...@timesys.com.
> Découvrez pourquoi ceci est important à
> https://aka.ms/LearnAboutSenderIdentification ]
>
> From: Nathan Barrett-Morrison
>
> This adds support for the ADI-specific SPI
and display MCR board address (2024-04-18 15:47:46
+0200)
Christophe Leroy (13):
board: cssi: Fix SPI nodes in DTS
spi: mpc8xx: Add GPIO dependency
spi: mpc8xx: Fix transfert when input or output buffer is NULL
MCR boards are plugged in racks. The position in the rack can be read
in a register.
For MCR3000, that's provided by the FPGA so check it is loaded before
reading the address.
For the other boards, the FPGA is loaded by hardware so it can be
read inconditionnaly.
Signed-off-by: Christophe Leroy
, implemented the load of FPGA in U-boot.
Signed-off-by: Christophe Leroy
---
To avoid spamming your email boxes, the code isn't included in
the emailed patch but will be present in the PULL request
---
arch/powerpc/dts/mcr3000.dts | 6 -
board/cssi/mcr3000/fpga_code.h | 10 +++
board/cssi
Instead of cross using cross-directory makefile directives,
add a Makefile in board/cssi/common/ directory in order to
benefit from HAVE_VENDOR_COMMON_LIB logic.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/Makefile | 2 +-
board/cssi/cmpcpro/Makefile | 2 +-
board/cssi/common
Set the speed requested through mpc8xx_spi_set_speed() instead
of hardcoding a fixed speed.
Signed-off-by: Christophe Leroy
---
drivers/spi/mpc8xx_spi.c | 19 +--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c
in
word mode for the same CPM load.
For small transfers, the load reduction is not worth the CPU load
required to allocate the temporary buffer, so do it only when data
size is over 64 bytes.
Signed-off-by: Christophe Leroy
---
drivers/spi/mpc8xx_spi.c | 44
Perform multiple transfer of size MAX_BUFFER when the data to be
transferred is longer than MAX_BUFFER.
Signed-off-by: Christophe Leroy
---
drivers/spi/mpc8xx_spi.c | 48
1 file changed, 34 insertions(+), 14 deletions(-)
diff --git a/drivers/spi
SDMA configuration register needs to be set up only once and doesn't
belong to drivers. Also, the value to be used is different on mpc885.
So do the init in cpu_init_f() with 0x40 for mpc885 and 0x1 for others.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/cpu_init.c | 6
All CSSI boards have an LM74 chip as temperature sensor.
Enable it.
Signed-off-by: Christophe Leroy
---
arch/powerpc/dts/cmpc885.dts | 12 +++-
arch/powerpc/dts/cmpcpro.dts | 12 +++-
arch/powerpc/dts/mcr3000.dts | 6 ++
configs/CMPC885_defconfig| 3 +++
configs
activates one of the
7 possible chipselects and value 0 sets all chipselets to inactive.
So add a special GPIO driver that simulates GPIOs for those chipselect.
Signed-off-by: Christophe Leroy
---
arch/powerpc/dts/mcr3000.dts | 31 +
board/cssi/mcr3000/Makefile | 1 +
board
LM74 is a SPI temperature sensor.
Implement a driver to read temperature from it.
Signed-off-by: Christophe Leroy
---
drivers/thermal/Kconfig | 6 +
drivers/thermal/Makefile | 1 +
drivers/thermal/ti-lm74.c | 52 +++
3 files changed, 59 insertions
is pretty
low.
Signed-off-by: Christophe Leroy
---
drivers/spi/mpc8xx_spi.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c
index 5c8d760935..2aa9c7d5df 100644
--- a/drivers/spi/mpc8xx_spi.c
+++ b/drivers/spi
Since commit 773ad4ebb1d6 ("spi, mpc8xx: Add support for chipselect via
GPIO and fixups"), DM_GPIO is required for 8xx SPI.
Add the missing dependency to avoid build failures.
Fixes: 773ad4ebb1d6 ("spi, mpc8xx: Add support for chipselect via GPIO and
fixups")
Signed-off-
From: Hugo Dubois
CMPC885 board can be pluged on a mother board with fibre interface, so
fibre interface MAC address must be initialised for that case.
Signed-off-by: Hugo Dubois
Reviewed-by: CASAUBON Jean Michel
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 4 +++-
1
Signed-off-by: Christophe Leroy
---
board/cssi/common/common.c | 36 ++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/board/cssi/common/common.c b/board/cssi/common/common.c
index 7ecf772620..6848efd43b 100644
--- a/board/cssi/common/common.c
+++ b
From: Jean-Michel CASAUBON
HUSH shell is not always wanted/desirable.
Add missing braces in environment in order to allow use without
HUSH shell.
Signed-off-by: Jean-Michel CASAUBON
Cc: DUBOIS Hugo
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.env | 4 ++--
board/cssi
missing compatible for eeprom node.
Signed-off-by: Christophe Leroy
---
arch/powerpc/dts/cmpc885.dts | 6 +++---
arch/powerpc/dts/cmpcpro.dts | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/powerpc/dts/cmpc885.dts b/arch/powerpc/dts/cmpc885.dts
index 7b9566a0fa
From: Jean-Michel CASAUBON
Remove a stray semicolon in MCR3000 board environment.
Signed-off-by: Jean-Michel CASAUBON
Reviewed-by: DUBOIS Hugo
Signed-off-by: Christophe Leroy
---
board/cssi/mcr3000/mcr3000.env | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/cssi
temperature and FPGA support and SPI driver optimisation
Christophe Leroy (13):
board: cssi: Fix SPI nodes in DTS
spi: mpc8xx: Add GPIO dependency
spi: mpc8xx: Fix transfert when input or output buffer is NULL
thermal: Add support for TI LM74
board: cssi: Add support for SPI bus on MCR3000
From: Hugo Dubois
CMPC885 board can be pluged on a mother board with fibre interface, so
fibre interface MAC address must be initialised for that case.
Signed-off-by: Hugo Dubois
Reviewed-by: CASAUBON Jean Michel
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 4 +++-
1
Signed-off-by: Christophe Leroy
---
board/cssi/common/common.c | 36 ++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/board/cssi/common/common.c b/board/cssi/common/common.c
index 7ecf772620..54e8c3cd03 100644
--- a/board/cssi/common/common.c
+++ b
From: Jean-Michel CASAUBON
HUSH shell is not always wanted/desirable.
Add missing braces in environment in order to allow use without
HUSH shell.
Signed-off-by: Jean-Michel CASAUBON
Cc: DUBOIS Hugo
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.env | 4 ++--
board/cssi
From: Jean-Michel CASAUBON
Remove a stray semicolon in MCR3000 board environment.
Signed-off-by: Jean-Michel CASAUBON
Reviewed-by: DUBOIS Hugo
Signed-off-by: Christophe Leroy
---
board/cssi/mcr3000/mcr3000.env | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/cssi
This series contains misc fixes and changes for CSSI boards.
I will send a pull request later before close of the merge window.
Hugo Dubois (2):
board: cssi: Initialise port F on MIAE
board: cssi: Properly initialise MAC address for fibre on CMPC885
board
Jean-Michel CASAUBON (2):
: 4e9bce12432 ("Add support for stack-protector")
Signed-off-by: Christophe Leroy
---
Makefile | 1 +
common/stackprot.c | 5 +
2 files changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index ac65605a26..bddccc94e6 100644
--- a/Makefile
+++ b/Makefile
@@ -741,6 +741,
Remove inclusion of common.h and add relevant
includes when necessary.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/cache.c | 1 -
arch/powerpc/cpu/mpc8xx/cpu.c| 1 -
arch/powerpc/cpu/mpc8xx/cpu_init.c | 1 -
arch/powerpc/cpu/mpc8xx/fdt.c| 1 -
arch/powerpc
Remove inclusion of common.h and add relevant
includes when necessary.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 1 -
board/cssi/cmpc885/nand.c| 1 -
board/cssi/cmpc885/sdram.c | 3 ++-
board/cssi/cmpcpro/cmpcpro.c | 1 -
board/cssi/mcr3000/mcr3000.c | 1 -
board
of
leaving a potentially random value. That should just be fine.
Therefore this change should be ok for powerpc.
Acked-by: Christophe Leroy
>
> Signed-off-by: Simon Glass
> ---
>
> (no changes since v3)
>
> Changes in v3:
> - Mention testing on qemu-ppce500
>
>
fined(CONFIG_ARCH_MX6)
>>>> - /*
>>>> - * timer_init() does not exist on PPC systems. The timer is
>>>> initialized
>>>> - * and enabled (decrementer) in interrupt_init() here.
>>>> - */
>>>>timer_ini
fine.
Therefore this change should be ok for powerpc.
Acked-by: Christophe Leroy
>
> This has been tested on qemu-ppce500
>
>
> Signed-off-by: Simon Glass
> ---
>
> Changes in v3:
> - Mention testing on qemu-ppce500
>
> Changes in v2:
> - Exp
e:
>> On Wed, 5 Jul 2023 at 09:54, Christophe Leroy
>> wrote:
>>>
>>> Uncompressing a 1.7Mbytes FIT image on U-boot 2023.04 takes
>>> approx 7s on a powerpc 8xx.
>>> The same on U-boot 2023.07-rc6 takes approx 28s unless watchdog
>>> is
age decompression now takes 85 milliseconds on a powerpc 8xx.
Fixes: 29caf9305b6 ("cyclic: Use schedule() instead of WATCHDOG_RESET()")
Signed-off-by: Christophe Leroy
---
arch/powerpc/lib/Kconfig | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/powerp
act on other targets.
Fixes: 29caf9305b6 ("cyclic: Use schedule() instead of WATCHDOG_RESET()")
Signed-off-by: Christophe Leroy
---
lib/lzma/LzmaDec.c | 18 --
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/lib/lzma/LzmaDec.c b/lib/lzma/LzmaDec.c
index
Le 15/05/2023 à 23:12, Tom Rini a écrit :
> On Fri, May 05, 2023 at 10:39:39AM +0200, Christophe Leroy wrote:
>
>> A lot of errors are encountered when building with sparse checking
>> activated (make C=1 or make C=2).
>>
>> Many of them are fixed in Linux
Le 11/05/2023 à 14:50, Tom Rini a écrit :
> On Thu, May 11, 2023 at 08:16:49AM +0200, Christophe Leroy wrote:
>
>> After converting my targets from CFG_EXTRA_ENV_SETTINGS to
>> CONFIG_EXTRA_ENV_TEXT as suggested by Tom, I discovered that
>> fw_setenv doesn't set the e
/u-boot-mpc8xx/-/pipelines/16326
That's the only CI test that fails AFAICS.
Could you help with a solution ? This needs to be fixed.
Thanks
Christophe
>8
From: Christophe Leroy
Subject: [RFC PATCH] envtools: Fix default environment
After converting some targets f
: Activate SMC relocation on CMPC885 board for MIAE device
(2023-05-05 07:26:53 +0200)
Christophe Leroy (11):
board: cssi: Remove duplicated FPGA loading sequence on CMPC885
board: cssi: Remove stale macro from cmpcpro.c
to be relocated. In order to do so, a CPM microcode patch
is required.
Binary data for that patch is copied from Linux kernel.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/Kconfig | 20 +
arch/powerpc/cpu/mpc8xx/Makefile | 1 +
arch/powerpc/cpu/mpc8xx
yet so remove the printfs.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 25 +
configs/CMPC885_defconfig| 1 -
2 files changed, 5 insertions(+), 21 deletions(-)
diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c
index
will be corrupted.
Add capability to load the related microcode to fix it.
The microcode binary data is copied from Linux kernel.
Other microcode will be added in following patch so make it
a Kconfig choice.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/Kconfig
Instead of inhibiting parameter RAM relocation, take it into account.
Signed-off-by: Christophe Leroy
---
drivers/spi/mpc8xx_spi.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c
index 734b0751a9..5c8d760935 100644
Three unused macros were left over. Remove them.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpcpro/cmpcpro.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/board/cssi/cmpcpro/cmpcpro.c b/board/cssi/cmpcpro/cmpcpro.c
index 3e9ba6a4cc..8a30c48e35 100644
--- a/board/cssi/cmpcpro
A duplicated FPGA loading sequence appears after FPGA reset.
Remove it.
Fixes: dac3c6f625 ("board: cssi: Add new board MCR3000_2G")
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 14 --
1 file changed, 14 deletions(-)
diff --git a/board/cssi/cmpc885/c
Instead of inhibiting parameter RAM relacation, take
into account the configured one.
It means INIT_TRX command cannot be used and must be done
manually as explained in the microcode patch application note.
Signed-off-by: Christophe Leroy
---
drivers/serial/serial_mpc8xx.c | 22
'' of expression
This is because of (void *) casts for using memcpy() as a substitute.
Do like other architectures, __force the cast to silence the warning
Signed-off-by: Christophe Leroy
---
arch/powerpc/include/asm/io.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch
-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/cpu.c| 2 +-
arch/powerpc/include/asm/cpm_8xx.h | 18 +-
arch/powerpc/include/asm/immap_8xx.h | 8 +---
drivers/serial/serial_mpc8xx.c | 2 +-
drivers/spi/mpc8xx_spi.c | 2 +-
5 files changed, 13
n CPM dpram")
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/start.S| 8 +---
arch/powerpc/include/asm/cpm_8xx.h | 16
include/configs/cmpc885.h | 1 +
include/configs/mcr3000.h | 1 +
4 files changed, 15 insertions(+), 11 deletions(-)
is unused.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 4
configs/CMPC885_defconfig| 2 ++
2 files changed, 6 insertions(+)
diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c
index 40128f170a..5e6aa8b8cf 100644
--- a/board/cssi/cmpc885/cmpc885
warnings
Christophe Leroy (11):
board: cssi: Remove duplicated FPGA loading sequence on CMPC885
board: cssi: Remove stale macro from cmpcpro.c
board: cssi: Load CMPC885's motherboard FPGA earlier
powerpc: mpc8xx: CPM parameter RAM can be anywhere
powerpc: mpc8xx: Reorganise init RAM
powerpc
it creates is worse than the warning it is trying to fix.
Signed-off-by: Christophe Leroy
---
Makefile | 6 +-
include/linux/build_bug.h | 40 ---
include/linux/stddef.h| 8 +---
3 files changed, 14 insertions(+), 40 deletions(-)
Le 04/05/2023 à 21:55, Tom Rini a écrit :
> On Thu, May 04, 2023 at 05:32:12PM +0000, Christophe Leroy wrote:
>>
>>
>> Le 04/05/2023 à 19:22, Christophe Leroy a écrit :
>>>
>>>
>>> Le 04/05/2023 à 15:54, Tom Rini a écrit :
>>>> On T
Le 04/05/2023 à 19:22, Christophe Leroy a écrit :
>
>
> Le 04/05/2023 à 15:54, Tom Rini a écrit :
>> On Thu, May 04, 2023 at 06:15:13AM +0000, Christophe Leroy wrote:
>>>
>>>
>>> Le 03/05/2023 à 22:02, Tom Rini a écrit :
>>>> On Thu, Ja
Le 04/05/2023 à 15:54, Tom Rini a écrit :
> On Thu, May 04, 2023 at 06:15:13AM +0000, Christophe Leroy wrote:
>>
>>
>> Le 03/05/2023 à 22:02, Tom Rini a écrit :
>>> On Thu, Jan 26, 2023 at 07:17:48PM +0100, Christophe Leroy wrote:
>>>
>>>>
Le 04/05/2023 à 12:07, Joakim Tjernlund a écrit :
> On Thu, 2023-05-04 at 10:56 +0200, Christophe Leroy wrote:
>> Using SMC relocation microcode patch or USB-SOF microcode patch
>> will disable DPRAM memory from 0x2000 to 0x2400 and from 0x2f00
>> to 0x3000.
>>
>
Instead of inhibiting parameter RAM relacation, take
into account the configured one.
It means INIT_TRX command cannot be used and must be done
manually as explained in the microcode patch application note.
Signed-off-by: Christophe Leroy
---
drivers/serial/serial_mpc8xx.c | 22
n CPM dpram")
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/start.S| 9 +
arch/powerpc/include/asm/cpm_8xx.h | 16
include/configs/cmpc885.h | 1 +
include/configs/mcr3000.h | 1 +
4 files changed, 15 insertions(+), 12 deletion
Instead of inhibiting parameter RAM relocation, take it into account.
Signed-off-by: Christophe Leroy
---
drivers/spi/mpc8xx_spi.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c
index 734b0751a9..5c8d760935 100644
to be relocated. In order to do so, a CPM microcode patch
is required.
Binary data for that patch is copied from Linux kernel.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/Kconfig | 20 +
arch/powerpc/cpu/mpc8xx/Makefile | 1 +
arch/powerpc/cpu/mpc8xx
-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/cpu.c| 2 +-
arch/powerpc/include/asm/cpm_8xx.h | 18 +-
arch/powerpc/include/asm/immap_8xx.h | 8 +---
drivers/serial/serial_mpc8xx.c | 2 +-
drivers/spi/mpc8xx_spi.c | 2 +-
5 files changed, 13
will be corrupted.
Add capability to load the related microcode to fix it.
The microcode binary data is copied from Linux kernel.
Other microcode will be added in following patch so make it
a Kconfig choice.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/Kconfig
yet so remove the printfs.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 25 +
configs/CMPC885_defconfig| 1 -
2 files changed, 5 insertions(+), 21 deletions(-)
diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c
index
is unused.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 4
configs/CMPC885_defconfig| 2 ++
2 files changed, 6 insertions(+)
diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c
index 40128f170a..5e6aa8b8cf 100644
--- a/board/cssi/cmpc885/cmpc885
This series adds misc fixes for cssi boards and activates
CPM relocation in order to enable the use of SCC4 in
QMC (QUICC Multi-Channel) mode.
Christophe Leroy (10):
board: cssi: Remove duplicated FPGA loading sequence on CMPC885
board: cssi: Remove stale macro from cmpcpro.c
board: cssi
A duplicated FPGA loading sequence appears after FPGA reset.
Remove it.
Fixes: dac3c6f625 ("board: cssi: Add new board MCR3000_2G")
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 14 --
1 file changed, 14 deletions(-)
diff --git a/board/cssi/cmpc885/c
Three unused macros were left over. Remove them.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpcpro/cmpcpro.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/board/cssi/cmpcpro/cmpcpro.c b/board/cssi/cmpcpro/cmpcpro.c
index 3e9ba6a4cc..8a30c48e35 100644
--- a/board/cssi/cmpcpro
Le 03/05/2023 à 22:02, Tom Rini a écrit :
> On Thu, Jan 26, 2023 at 07:17:48PM +0100, Christophe Leroy wrote:
>
>> When doing a build with C=2, the following failure is encountered on
>> several files:
>>
>>CHECK arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
&g
2:23 +0200)
----
Christophe Leroy (15):
powerpc: mpc8xx: Migrate to CONFIG_SYS_CLK_FREQ
watchdog: mpc8xx: Rename it mpc8xxx
watchdog: mpc8xxx: Make it generic
watchdog: mpc8xxx: Add support for mpc83xx
powerpc: mpc832x: Fix reset word
powerpc: mpc83xx:
Use a hashed password instead of clear text in order to
improve board security.
Signed-off-by: Christophe Leroy
---
Will be part of soon to come pull request
configs/CMPC885_defconfig | 5 -
configs/MCR3000_defconfig | 5 -
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git
in the most significant byte while
received data is located in second byte. So perform the
necessary shifts.
In order to differentiate with other CPUs, a new compatible is
added for mpc832x: fsl,mpc832x-spi
Signed-off-by: Christophe Leroy
Cc: Rasmus Villemoes
---
arch/powerpc/include/asm
then
receive the content of the EEPROM so that there don't be
3 dummy bytes at the beginning of the buffer.
And move the function into common.c so that it can be
reused by the board that will be added in a future patch.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 35
CSSI has another CPU board, similar to the CMPC885 board
that get plugged on the two base boards MCR3000_2G and MIAE.
That CPU board is called CMPCPRO because it has a MPC8321E CPU,
also known as Power QUICC II PRO.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc83xx/Kconfig | 5
In preparation of the new cssi board called cmpcpro which
we be introduce in a future patch, move common
functions into a dedicated file in a common directory.
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/Makefile | 2 +-
board/cssi/cmpc885/cmpc885.c | 54
The mpc832x has GPIOs handled by the QUICC Engine.
The registers are different from the one for the
non QE mpc83xx GPIOs.
Implement a GPIO driver for those.
Signed-off-by: Christophe Leroy
---
arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 5 +
drivers/gpio/Kconfig
All the code used to manage the mother boards will be
common to soon to come CPU board.
Move all that code into common.c
Signed-off-by: Christophe Leroy
---
board/cssi/cmpc885/cmpc885.c | 152 +--
board/cssi/common/common.c | 124
mpc8xx, mpc83xx and mpc86xx have similar watchdog with almost same
memory registers.
Rename it mpc8xxx which is the generic name used for drivers supporting
several mpc families.
The driver will be made more generic in following patch.
Signed-off-by: Christophe Leroy
---
arch/powerpc/Kconfig
Introduce a new compatible "fsl,pq2pro-wdt"
On mpc83xx, the prescaling factor is 0x1.
Don't write the watchdog configuration register in
start.S as it can be written only once.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc83xx/cpu.c | 2 +-
arch/powerpc/cpu/mpc83xx/s
gd->arch.sdhc_clk only exists when CONFIG_FSL_ESDHC is set,
so enclose it inside ifdefs.
gd->arch.qe_clk and gd->arch.brg_clk must be populated when
CONFIG_QE is set.
Signed-off-by: Christophe Leroy
---
drivers/clk/mpc83xx_clk.c | 7 +++
1 file changed, 7 insertions(+)
d
There are helpers included in soc.h
Declare them static inline so that soc.h can be
included in several places.
Signed-off-by: Christophe Leroy
---
arch/powerpc/include/asm/arch-mpc83xx/soc.h | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/powerpc
from Kconfig.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/Kconfig| 3 +-
arch/powerpc/cpu/mpc8xx/cpu_init.c | 5 +--
arch/powerpc/dts/cmpc885.dts | 12 ++---
arch/powerpc/dts/mcr3000.dts | 20 -
board/cssi/mcr3000/mcr3000.c | 14 --
configs
According to the reference manual, the Reset Configuration
Word Low Register bits 2-3 must be set to 0b10.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc83xx/hrcw/Kconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/powerpc/cpu/mpc83xx/hrcw/Kconfig
b
entries to provide initial RAM.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc83xx/start.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/cpu/mpc83xx/start.S b/arch/powerpc/cpu/mpc83xx/start.S
index 4329b173db..6749263da8 100644
--- a/arch/powerpc/cpu
board
This series is based on today's next tree and has passed CI tests at
https://source.denx.de/u-boot/custodians/u-boot-mpc8xx/-/pipelines/15928
Christophe Leroy (14):
powerpc: mpc8xx: Migrate to CONFIG_SYS_CLK_FREQ
watchdog: mpc8xx: Rename it mpc8xxx
watchdog: mpc8xxx: Make it generic
8xx has CONFIG_8xx_GCLK_FREQ which is similar to
CONFIG_SYS_CLK_FREQ, and doesn't set CONFIG_SYS_CLK_FREQ.
Due to that, get_board_sys_clk() returns 0.
Remove CONFIG_8xx_GCLK_FREQ and use CONFIG_SYS_CLK_FREQ instead.
Signed-off-by: Christophe Leroy
---
arch/powerpc/cpu/mpc8xx/Kconfig | 3
to KBUILD_LDFLAGS in order to suppress this warning.
Reported-by: Stephane Franjou
Signed-off-by: Christophe Leroy
---
arch/powerpc/config.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk
index 725a4f48aa..53124f4e80 100644
--- a/arch
9c5df7a2a9 ("mpc83xx: Migrate LBLAW_* to Kconfig")
Signed-off-by: Christophe Leroy
Fixes: 9fd9abedcc ("TQM834x: remove defines causing gcc4.4 warnings")
---
arch/powerpc/cpu/mpc83xx/cpu_init.c | 16
1 file changed, 16 deletions(-)
diff --git a/arch/powerpc/
moved from whitelist by
commit 8cca60a2cb ("Kconfig: Remove some symbols from the whitelist")
Signed-off-by: Christophe Leroy
Fixes: fae2ea5951 ("ppc: Remove MPC8349EMDS board and ARCH_MPC8349 support")
---
arch/powerpc/cpu/mpc83xx/cpu_init.c | 8
1 file changed, 8 del
Le 14/03/2023 à 18:55, Tom Rini a écrit :
> On Tue, Mar 14, 2023 at 05:27:34AM +0000, Christophe Leroy wrote:
>> Hi Tom,
>>
>> Le 14/03/2023 à 01:53, Tom Rini a écrit :
>>> Hey all,
>>>
>>> It's the scheduled day for -rc4, and once again it
Hi Tom,
Le 14/03/2023 à 01:53, Tom Rini a écrit :
> Hey all,
>
> It's the scheduled day for -rc4, and once again it's the end of my day.
> The delta between -rc3 and -rc4 is about what I would hope for. I still
> hope to see a PR to fix m68k, and to address some mpc8xx problems as
> well, but
d it so that you now just have to provide the raw
value of each register in Kconfig. However, all fine-grained
Kconfig items remained allthough they are not used anymore.
Remove them all.
Fixes: c7fad78ec0 ("Convert CONFIG_SYS_BR0_PRELIM et al to Kconfig")
Signed-off-by: Christophe Leroy
08:47:58 +0100)
--------
Christophe Leroy (9):
powerpc/mpc8xx: Zero boot_flags arg for calling board_init_f()
board: MCR3000: Use lowercase filenames
board: MCR3000: Migrate to using CONFIG_EXTRA_ENV_TEXT
board: MCR3000: Modernis
was originally written by Charles Frey who's
email address is not valid anymore as he left the company.
Signed-off-by: Christophe Leroy
Reviewed-by: FRANJOU Stephane
---
arch/powerpc/cpu/mpc8xx/Kconfig | 4 +
arch/powerpc/dts/Makefile | 1 +
arch/powerpc/dts/cmpc885.dts| 94
board
1 - 100 of 343 matches
Mail list logo