[PATCH] powerpc: Suppress 'executable stack' warning at link

2023-03-24 Thread Christophe Leroy
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

[PATCH 1/2] mpc83xx: Remove stale CONFIG_SYS_LBLAWBAR{4/5/6/7}_PRELIM

2023-03-14 Thread Christophe Leroy
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/

[PATCH 2/2] mpc83xx: Remove CONFIG_SYS_GPIO{1/2}_PRELIM and related

2023-03-14 Thread Christophe Leroy
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

Re: [ANN] U-Boot v2023.04-rc4 released

2023-03-14 Thread Christophe Leroy
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

Re: [ANN] U-Boot v2023.04-rc4 released

2023-03-13 Thread Christophe Leroy
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

[PATCH] powerpc, mpc83xx: Remove CONFIG_ELBC_BRx_ORx

2023-02-26 Thread Christophe Leroy
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

[GIT PULL] Please pull u-boot-mpc8xx

2023-02-12 Thread 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

[PATCH v2 7/8] board: cssi: Add new board MCR3000_2G

2023-02-11 Thread Christophe Leroy
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

[PATCH v2 8/8] board: cssi: Add MIAE & VGoIP devices

2023-02-11 Thread Christophe Leroy
eliminates unrelated nodes based on detected hardware. This patch 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 --- board/cssi/cmpc885/cmpc885.c | 286

[PATCH v2 5/8] driver, gpio: Add support for MPC 8xx CPU ports

2023-02-11 Thread Christophe Leroy
Ports A, C and D are 16 bits ports. Ports B and E are 32 bits ports. The "compatible" is used to determine each port type. This patch 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-b

[PATCH v2 2/8] board: MCR3000: Migrate to using CONFIG_EXTRA_ENV_TEXT

2023-02-11 Thread Christophe Leroy
We can move all of the environment changes to come from CONFIG_EXTRA_ENV_TEXT. Suggested-by: Tom Rini Signed-off-by: Christophe Leroy --- board/cssi/mcr3000/mcr3000.env | 14 +++ include/configs/mcr3000.h | 43 -- 2 files changed, 14 insertions

[PATCH v2 3/8] board: MCR3000: Modernise the settings to properly work on lastest u-boot version

2023-02-11 Thread Christophe Leroy
increase CFG_SYS_BOOTMAPSZ to 32Mbytes and define CONFIG_SYS_BOOTM_LEN with the same value, otherwise it defaults to 8M which is not sufficient anymore with nowadays Linux kernels. And set the netmask to 255.255.255.0 as a class C address is used. Signed-off-by: Christophe Leroy Reviewed-by: FRANJOU

[PATCH v2 1/8] board: MCR3000: Use lowercase filenames

2023-02-11 Thread Christophe Leroy
Rename MCR3000.* to mcr3000.* to be more in line with other boards. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig | 2 +- board/cssi/MAINTAINERS | 2 +- board/cssi/{MCR3000 => mcr3000}/Kconfig | 4 ++-- bo

[PATCH v2 0/8] Add new equipment from CSSI - v2

2023-02-11 Thread Christophe Leroy
/-/pipelines/15137 Christophe Leroy (8): board: MCR3000: Use lowercase filenames board: MCR3000: Migrate to using CONFIG_EXTRA_ENV_TEXT board: MCR3000: Modernise the settings to properly work on lastest u-boot version board: MCR3000: Remove update of non-existing e1-wan DT node driver

[PATCH v2 6/8] spi, mpc8xx: Add support for chipselect via GPIO and fixups

2023-02-11 Thread Christophe Leroy
by board_early_init_r(). This patch 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 --- drivers/spi/mpc8xx_spi.c | 96 1 file changed, 59 insertions

[PATCH v2 4/8] board: MCR3000: Remove update of non-existing e1-wan DT node

2023-02-11 Thread Christophe Leroy
-wan:channel-phase, err=FDT_ERR_NOTFOUND Unable to update property /localbus/e1-wan:rising-edge-sync-pulse, err=FDT_ERR_NOTFOUND Signed-off-by: Christophe Leroy Reviewed-by: FRANJOU Stephane --- board/cssi/mcr3000/mcr3000.c | 12 1 file changed, 12 deletions(-) diff --git

[PATCH 6/7] board: cssi: Add new board MCR3000_2G

2023-01-30 Thread Christophe Leroy
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

[PATCH 5/7] spi, mpc8xx: Add support for chipselect via GPIO and fixups

2023-01-30 Thread Christophe Leroy
by board_early_init_r(). This patch 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 --- drivers/spi/mpc8xx_spi.c | 96 1 file changed, 59 insertions

[PATCH 4/7] driver, gpio: Add support for MPC 8xx CPU ports

2023-01-30 Thread Christophe Leroy
Ports A, C and D are 16 bits ports. Ports B and E are 32 bits ports. The "compatible" is used to determine each port type. This patch 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-b

[PATCH 7/7] board: cssi: Add MIAE & VGoIP devices

2023-01-30 Thread Christophe Leroy
eliminates unrelated nodes based on detected hardware. This patch 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 --- board/cssi/CMPC885/cmpc885.c | 286

[PATCH 2/7] board: MCR3000: Modernise the settings to properly work on lastest u-boot version

2023-01-30 Thread Christophe Leroy
increase CONFIG_SYS_BOOTMAPSZ to 32Mbytes and define CONFIG_SYS_BOOTM_LEN with the same value, otherwise it defaults to 8M which is not sufficient anymore with nowadays Linux kernels. Signed-off-by: Christophe Leroy Reviewed-by: FRANJOU Stephane --- configs/MCR3000_defconfig | 8 ++-- include

[PATCH 3/7] board: MCR3000: Remove update of non-existing e1-wan DT node

2023-01-30 Thread Christophe Leroy
-wan:channel-phase, err=FDT_ERR_NOTFOUND Unable to update property /localbus/e1-wan:rising-edge-sync-pulse, err=FDT_ERR_NOTFOUND Signed-off-by: Christophe Leroy Reviewed-by: FRANJOU Stephane --- board/cssi/MCR3000/mcr3000.c | 12 1 file changed, 12 deletions(-) diff --git

[PATCH 0/7] Add new equipment from CSSI

2023-01-30 Thread Christophe Leroy
included MCR3000 board in order to get more similarities. Christophe Leroy (7): board: MCR3000: Use lowercase filename board: MCR3000: Modernise the settings to properly work on lastest u-boot version board: MCR3000: Remove update of non-existing e1-wan DT node driver, gpio: Add support

[PATCH 1/7] board: MCR3000: Use lowercase filename

2023-01-30 Thread Christophe Leroy
Rename MCR3000.c to mcr3000.c to be more in line with other boards. Signed-off-by: Christophe Leroy --- board/cssi/MCR3000/Makefile | 2 +- board/cssi/MCR3000/{MCR3000.c => mcr3000.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename board/cssi/MCR3000/{MCR300

[PATCH] powerpc/mpc8xx: Zero boot_flags arg for calling board_init_f()

2023-01-30 Thread Christophe Leroy
This patch sets the r3 register that is used to pass the boot_flags argument from the start.S board_init_f() call to 0 prior to the function call to avoid unknown content to end up in gd->flags. Signed-off-by: Christophe Leroy Fixes: 09f3ca3dd53 ("arm, powerpc: select SYS_GENERIC_BOARD"

Re: U-boot 2023.01 not booting anymore MCR3000 board - Bisected 50128aeb0f8 ("cyclic: get rid of cyclic_init()")

2023-01-30 Thread Christophe Leroy
Le 28/01/2023 à 11:08, Christophe Leroy a écrit : > Hi, > > I'm trying to boot MCR3000 board with U-boot 2023.01 and it crashes in > the weed in fdtdec_setup(). > > I bisected the issue to commit 50128aeb0f8 ("cyclic: get rid of > cyclic_init()") > >

U-boot 2023.01 not booting anymore MCR3000 board - Bisected 50128aeb0f8 ("cyclic: get rid of cyclic_init()")

2023-01-28 Thread Christophe Leroy
Hi, I'm trying to boot MCR3000 board with U-boot 2023.01 and it crashes in the weed in fdtdec_setup(). I bisected the issue to commit 50128aeb0f8 ("cyclic: get rid of cyclic_init()") At the time being I don't understand what happens. The problem is here below, idx is in the weed, I don't

[PATCH] mpc83xx: Don't allow W and G bits in IBATs

2023-01-27 Thread Christophe Leroy
nce Manual" says the same: "Neither the W or G bits of the IBAT registers should be set. Attempting to write to these bits causes boundedly-undefined results." Remove the possibility to set those bytes. Fixes: 30915ab95d9 ("mpc83xx: Migrate BATS config to Kconfig") Signed-

Re: [PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-01-27 Thread Christophe Leroy
Le 27/01/2023 à 08:43, Rasmus Villemoes a écrit : > [Vous ne recevez pas souvent de courriers de rasmus.villem...@prevas.dk. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > On 26/01/2023 19.17, Christophe Leroy wrote: >&g

[PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-01-26 Thread Christophe Leroy
volatile [noderef] *addr arch/powerpc/cpu/mpc8xxx/fsl_lbc.c:155:33:got unsigned int [usertype] *mxmr Signed-off-by: Christophe Leroy --- CC: Masahiro Yamada --- include/linux/build_bug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/build_bug.h b/include/linux

Re: [PATCH] powerpc: dts: keymile: Deduplicate binman code

2022-12-18 Thread Christophe Leroy
Le 18/12/2022 à 11:59, Pali Rohár a écrit : > On Sunday 18 December 2022 09:29:23 Christophe Leroy wrote: >>>>>>>> - binman { >>>>>>>> - filename = "u-boot-with-dtb.bin"; >>>>>

Re: [PATCH] powerpc: dts: keymile: Deduplicate binman code

2022-12-18 Thread Christophe Leroy
Le 17/12/2022 à 23:15, Pali Rohár a écrit : > + Christophe and Mario: Could you please take this u-boot ppc patch? > > On Friday 16 December 2022 19:16:38 Pali Rohár wrote: >> PING? >> >> On Monday 21 November 2022 18:40:41 Pali Rohár wrote: >>> + Tom >>> >>> On Tuesday 01 November 2022

[PATCH] Update email address and company name

2022-05-12 Thread Christophe Leroy
This patch updates my email address and company name. Signed-off-by: Christophe Leroy --- board/cssi/MAINTAINERS | 4 ++-- doc/git-mailrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/board/cssi/MAINTAINERS b/board/cssi/MAINTAINERS index cbf1406a54..7d237b0b20

[PATCH] net: mpc8xx_fec: Migrate to DM_ETH

2022-05-12 Thread Christophe Leroy
Migrate mpc8xx_fec driver to DM_ETH. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu.c | 12 --- arch/powerpc/dts/mcr3000.dts | 4 + configs/MCR3000_defconfig | 1 + drivers/net/Kconfig | 1 + drivers/net/mpc8xx_fec.c | 189

Re: [PATCH 1/2] powerpc: mpc8xx: drop CONFIG_SYS_RESET_ADDRESS

2022-01-31 Thread Christophe Leroy
Le 31/01/2022 à 08:20, Ovidiu Panait a écrit : > There are no boards that define CONFIG_SYS_RESET_ADDRESS, so drop the > associated mpc8xx code that checks for it. > > Signed-off-by: Ovidiu Panait Acked-by: Christophe Leroy > --- > > arch/powerpc/

Re: [ANN] U-Boot v2021.10-rc4 released

2021-09-17 Thread Christophe Leroy
Hi Tom, Le 15/09/2021 à 01:01, Tom Rini a écrit : Hey all, Alright, I'm a day late, but, here's v2021.10-rc4. We've had a few regressions pop up of late, unfortunately. I've pushed the fix for (what I believe are) existing FIT images showing a problem where we calculated the crc32 wrong.

Re: [PATCH v2] powerpc: mpc: Put U-Boot version string at correct place by linker script

2021-08-23 Thread Christophe Leroy
Le 08/08/2021 à 13:20, Pali Rohár a écrit : It is unknown why version string is placed at specific position on these powerpc mpc platforms. But there is no need to overload version_string symbol. Just use common definition of version_string and modify linker script to put it at "correct

Re: Erroneous modification of u-boot's MAINTAINERS ?

2021-08-23 Thread Christophe Leroy
Forgot to CC the list Le 24/08/2021 à 07:17, Christophe Leroy a écrit : Jway, Alex, Your commit 047e31ed4b4d ("led: led_cortina: Add CAxxx LED support") changed the email address of POWERPC MPC8XX maintainer. What's the reason ? Can you please revert that change ? Thanks Christo

Re: [PATCH v2] powerpc: mpc: Put U-Boot version string at correct place by linker script

2021-08-23 Thread Christophe Leroy
Le 08/08/2021 à 13:36, Pali Rohár a écrit : Christophe, could you please review this change? According to your commit https://source.denx.de/u-boot/u-boot/-/commit/907208c452999427cb2f43450308045bf8b42958 mpc8xx code will have to be maintained until at least 2027. On Sunday 08 August 2021

Re: [PATCH] watchdog: use time_after_eq() in watchdog_reset()

2021-04-15 Thread Christophe Leroy
uot; check just needs to be tweaked a little to allow the now==next_reset case as well. Suggested-by: Christophe Leroy Signed-off-by: Rasmus Villemoes --- It's the option I dislike the most (because of the DT abuse), but I also do accept that it's the one with the minimal code impact, and

Re: [PATCH] powerpc, wdt: disable ratelimiting when disabling interrupts

2021-04-09 Thread Christophe Leroy
Le 09/04/2021 à 16:12, Rasmus Villemoes a écrit : On powerpc, time as measured by get_timer() ceases to pass when interrupts are disabled (since on powerpc get_timer() returns the value of a volatile variable that gets updated via a timer interrupt). That in turn means the watchdog_reset()

[PATCH] MAINTAINERS: POWERPC MPC8XX: Update email address

2020-05-12 Thread Christophe Leroy
Our email addresses have changed from @c-s.fr to @csgroup.eu Update entry in MAINTAINERS Signed-off-by: Christophe Leroy --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index ec59ce8b8802..d67112479700 100644 --- a/MAINTAINERS +++ b

Re: reset on mpc83xx

2020-05-01 Thread Christophe Leroy
Le 30/04/2020 à 21:06, Rasmus Villemoes a écrit : On 30/04/2020 17.03, Christophe Leroy wrote: Le 30/04/2020 à 16:44, Rasmus Villemoes a écrit : Hi, I'm wondering why the sysreset_mpc83xx driver (as well as the similar code in arch/powerpc/cpu/mpc83xx/cpu.c) removes the MSR_IR and MSR_DR

Re: reset on mpc83xx

2020-04-30 Thread Christophe Leroy
Le 30/04/2020 à 16:44, Rasmus Villemoes a écrit : Hi, I'm wondering why the sysreset_mpc83xx driver (as well as the similar code in arch/powerpc/cpu/mpc83xx/cpu.c) removes the MSR_IR and MSR_DR bits from MSR. On my mpc8309, that seems to simply make the board hang right after writing the

Re: [PATCH] powerpc: remove WATCHDOG_RESET call from wait_ticks()

2020-03-17 Thread Christophe Leroy
Le 17/03/2020 à 14:07, Rasmus Villemoes a écrit : In any case it seems to me a board specific redefinition of the WATCHDOG_RESET macro would be less intrusive and risky than changing code that has been there since the beginning of time (well, at least more than 18 years). The point is,

Re: [U-Boot-Custodians] RFC: Migration target date for DM_ETH

2020-02-26 Thread Christophe Leroy
Le 09/08/2019 à 08:30, Heinrich Schuchardt a écrit : Currently dozens of boards still do not use the driver model for the network devices. This makes integration between devices in the UEFI sub-system with the U-Boot devices complicated. See:

Re: [PATCH] watchdog: mpc8xx: Revert the 8xx watchdog back to CONFIG_HW_WATCHDOG

2020-02-26 Thread Christophe Leroy
Le 25/02/2020 à 17:40, Tom Rini a écrit : On Thu, Feb 20, 2020 at 07:39:51AM +, Christophe Leroy wrote: Commit f3729ba6e7b2 ("watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup") switched the watchdog to CONFIG_WATCHDOG. But this is not compatible with the 8xx because

[PATCH] watchdog: Don't select CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG at the same time

2020-02-26 Thread Christophe Leroy
ive. Make CONFIG_WATCHDOG dependent on !CONFIG_HW_WATCHDOG Fixes: 06985289d452 ("watchdog: Implement generic watchdog_reset() version") Cc: Stefan Roese Signed-off-by: Christophe Leroy --- drivers/watchdog/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchd

[PATCH] watchdog: mpc8xx: Revert the 8xx watchdog back to CONFIG_HW_WATCHDOG

2020-02-19 Thread Christophe Leroy
29ba6e7b2 ("watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup") Fixes: b3134ffbd944 ("watchdog: Kconfig: Sort entry alphabetically") Signed-off-by: Christophe Leroy Cc: Stefan Roese Cc: Patrice Chotard --- arch/powerpc/cpu/mpc8xx/Kconfig | 4 drivers/watchdog

Re: [PATCH 3/4 v5] watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup

2020-02-19 Thread Christophe Leroy
On 02/20/2020 05:37 AM, Stefan Roese wrote: Hi Christophe, On 19.02.20 20:15, Christophe Leroy wrote: Hi Stefan, On 04/25/2019 07:17 AM, Stefan Roese wrote: With the generic watchdog driver now implemented, this patch removes some legacy stuff from the MPC8xx watchdog driver and its

Re: [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2020-02-19 Thread Christophe Leroy
On 02/20/2020 05:43 AM, Stefan Roese wrote: Hi Christophe On 19.02.20 20:21, Christophe Leroy wrote: Le 25/04/2019 à 09:17, Stefan Roese a écrit : This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog device

Re: [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2020-02-19 Thread Christophe Leroy
Schwierzeck Cc: Maxim Sloyko Cc: Erik van Luijk Cc: Ryder Lee Cc: Weijie Gao Cc: Simon Glass Cc: "Álvaro Fernández Rojas" Cc: Philippe Reynes Cc: Christophe Leroy Cc: Chris Packham Reviewed-by: Michal Simek Tested-by: Michal Simek (on zcu100) --- [...] diff --git a/drivers/

Re: [PATCH 3/4 v5] watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup

2020-02-19 Thread Christophe Leroy
, as the watchdog will now get serviced via the DM infrastructure if enabled via CONFIG_WATCHDOG. Signed-off-by: Stefan Roese Cc: Christophe Leroy --- v5: - No change v4: - New patch arch/powerpc/Kconfig| 2 +- arch/powerpc/cpu/mpc8xx/Kconfig | 6 +++--- drivers/watchdog/Kconfig| 1

Unwanted change in Kconfig for mpc8xx_wdt watchdog ?

2020-02-19 Thread Christophe Leroy
Hello Patrice, In commit b3134ffbd9 ("watchdog: Kconfig: Sort entry alphabetically") you bring back the line "select CONFIG_MPC8xx_WATCHDOG" removed by Stefan in commit f3729ba6e7 ("watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup") three weeks before. Was that wanted ? Thanks

[PATCH] watchdog: mpc8xx_wdt: Allow selection of watchdog mode through environment

2020-02-19 Thread Christophe Leroy
variable 'watchdog_mode'. If it is 'off', the watchdog is not started. If it is 'nmi', the watchdog is started in NMI mode. Otherwise, it is started in reset mode which is the default mode. Signed-off-by: Charles Frey Signed-off-by: Christophe Leroy --- drivers/watchdog/mpc8xx_wdt.c | 10

Re: [PATCH] mpc8xx: Expose show_regs()

2020-01-29 Thread Christophe Leroy
Le 29/01/2020 à 17:07, Tom Rini a écrit : To match the other PowerPC platforms the function show_regs() must not be marked static but instead be an exposed global function. Cc: Christophe Leroy Cc: Wolfgang Denk Signed-off-by: Tom Rini Acked-by: Christophe Leroy --- I stumbled

Re: [U-Boot] [PATCH v2 9/9] spi, mpc8xx: migrate to DM_SPI

2018-11-29 Thread Christophe LEROY
Le 21/11/2018 à 10:09, Jagan Teki a écrit : On Wed, Nov 21, 2018 at 2:21 PM Christophe Leroy wrote: Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 179 --- Update Kconfig to move the config definition in DM_SPI area. You did

Re: [U-Boot] [PATCH v2 9/9] spi, mpc8xx: migrate to DM_SPI

2018-11-29 Thread Christophe LEROY
Le 21/11/2018 à 11:18, Jagan Teki a écrit : On Wed, Nov 21, 2018 at 2:39 PM Jagan Teki wrote: On Wed, Nov 21, 2018 at 2:21 PM Christophe Leroy wrote: Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 179 --- How did you handle

[U-Boot] [PATCH v2 6/9] board: MCR3000: migrate to DM_SERIAL

2018-11-21 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 7 +++ configs/MCR3000_defconfig| 1 + 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/dts/mcr3000.dts b/arch/powerpc/dts/mcr3000.dts index ef423d73c20..5abf111dc5f 100644 --- a/arch/powerpc/dts/mcr3000.dts

[U-Boot] [PATCH v2 8/9] board_r: fix build with DM_SPI

2018-11-21 Thread Christophe Leroy
CC common/board_r.o common/board_r.c:747:2: error: ‘initr_spi’ undeclared here (not in a function) initr_spi, ^ make[1]: *** [common/board_r.o] Error 1 Fixes: ebe76a2df9f6 ("dm: Remove spi_init() from board_r.c when using driver model") Signed-off-by: Christophe Leroy -

[U-Boot] [PATCH v2 5/9] drivers: serial: migrate mpc8xx to DM

2018-11-21 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/serial/serial_mpc8xx.c | 77 -- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index 292912b7ee2..f2d241417a4 100644 --- a/drivers

[U-Boot] [PATCH v2 7/9] drivers: serial: get rid of non DM mpc8xx driver

2018-11-21 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/serial/serial.c| 2 - drivers/serial/serial_mpc8xx.c | 97 ++ include/serial.h | 1 - 3 files changed, 14 insertions(+), 86 deletions(-) diff --git a/drivers/serial/serial.c b/drivers

[U-Boot] [PATCH v2 4/9] board: MCR3000: use new DM watchdog

2018-11-21 Thread Christophe Leroy
This patch switches MCR3000 board to the new DM watchdog. The change in u-boot.lds is because MCR3000.o grows a bit with this patch and doesn't fit anymore below env_offset on some versions of GCC. Signed-off-by: Christophe Leroy --- v2: fixed build failure for lack of space before env_offset

[U-Boot] [PATCH v2 9/9] spi, mpc8xx: migrate to DM_SPI

2018-11-21 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 179 --- 1 file changed, 30 insertions(+), 149 deletions(-) diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index 285fd4d2cc0..b020ce2b9d7 100644 --- a/drivers/spi

[U-Boot] [PATCH v2 3/9] drivers: watchdog: add a DM driver for the MPC8xx watchdog

2018-11-21 Thread Christophe Leroy
wdt_start() to stop the watchdog, but cannot be called if wdt_start() has been called. Signed-off-by: Christophe Leroy --- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/mpc8xx_wdt.c | 51 +++ 2 files changed, 58 insertions(+) diff --git

[U-Boot] [PATCH v2 2/9] board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL

2018-11-21 Thread Christophe Leroy
Add mcr3000 device tree and activate CONFIG_DM and CONFIG_OF_CONTROL Signed-off-by: Christophe Leroy --- arch/powerpc/dts/Makefile | 1 + arch/powerpc/dts/mcr3000.dts | 12 board/cssi/MCR3000/u-boot.lds | 6 ++ configs/MCR3000_defconfig | 3 +++ 4 files changed, 22

[U-Boot] [PATCH v2 1/9] powerpc, mpc8xx: clear top of stack

2018-11-21 Thread Christophe Leroy
Reported-by: Joakim Tjernlund Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/start.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc8xx/start.S b/arch/powerpc/cpu/mpc8xx/start.S index 8dde4beeea1..b8bdaaec2fa 100644 --- a/arch/powerpc/cpu

Re: [U-Boot] [U-Boot,4/9] board: MCR3000: use new DM watchdog

2018-11-20 Thread Christophe LEROY
Le 20/11/2018 à 15:56, Tom Rini a écrit : On Tue, Nov 06, 2018 at 11:25:41AM +, Christophe Leroy wrote: Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 3 +++ board/cssi/MCR3000/MCR3000.c | 16 configs/MCR3000_defconfig| 3 +++ 3 files

Re: [U-Boot] [PATCH] spi: Zap mpc8xx_spi driver

2018-11-06 Thread Christophe LEROY
Le 05/11/2018 à 11:11, Jagan Teki a écrit : On Fri, Mar 2, 2018 at 3:17 PM Christophe LEROY wrote: Le 26/02/2018 à 15:43, Jagan Teki a écrit : - Driver not used by any boards This driver should be used by MCR3000 board. For the time being SPI is not activated on that board because we

[U-Boot] [PATCH 9/9] spi, mpc8xx: migrate to DM_SPI

2018-11-06 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 179 --- 1 file changed, 30 insertions(+), 149 deletions(-) diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index 285fd4d2cc0..b020ce2b9d7 100644 --- a/drivers/spi

[U-Boot] [PATCH 5/9] drivers: serial: migrate mpc8xx to DM

2018-11-06 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/serial/serial_mpc8xx.c | 77 -- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index 292912b7ee2..f2d241417a4 100644 --- a/drivers

[U-Boot] [PATCH 7/9] drivers: serial: get rid of non DM mpc8xx driver

2018-11-06 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/serial/serial.c| 2 - drivers/serial/serial_mpc8xx.c | 97 ++ include/serial.h | 1 - 3 files changed, 14 insertions(+), 86 deletions(-) diff --git a/drivers/serial/serial.c b/drivers

[U-Boot] [PATCH 8/9] board_r: fix build with DM_SPI

2018-11-06 Thread Christophe Leroy
CC common/board_r.o common/board_r.c:747:2: error: ‘initr_spi’ undeclared here (not in a function) initr_spi, ^ make[1]: *** [common/board_r.o] Error 1 Fixes: ebe76a2df9f6 ("dm: Remove spi_init() from board_r.c when using driver model") Signed-off-by: Christophe Leroy -

[U-Boot] [PATCH 6/9] board: MCR3000: migrate to DM_SERIAL

2018-11-06 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 7 +++ configs/MCR3000_defconfig| 1 + 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/dts/mcr3000.dts b/arch/powerpc/dts/mcr3000.dts index ef423d73c20..5abf111dc5f 100644 --- a/arch/powerpc/dts/mcr3000.dts

[U-Boot] [PATCH 4/9] board: MCR3000: use new DM watchdog

2018-11-06 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 3 +++ board/cssi/MCR3000/MCR3000.c | 16 configs/MCR3000_defconfig| 3 +++ 3 files changed, 22 insertions(+) diff --git a/arch/powerpc/dts/mcr3000.dts b/arch/powerpc/dts/mcr3000.dts index e4b222857b5

[U-Boot] [PATCH 3/9] drivers: watchdog: add a DM driver for the MPC8xx watchdog

2018-11-06 Thread Christophe Leroy
wdt_start() to stop the watchdog, but cannot be called if wdt_start() has been called. Signed-off-by: Christophe Leroy --- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/mpc8xx_wdt.c | 51 +++ 2 files changed, 58 insertions(+) diff --git

[U-Boot] [PATCH 1/9] powerpc, mpc8xx: clear top of stack

2018-11-06 Thread Christophe Leroy
Reported-by: Joakim Tjernlund Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/start.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc8xx/start.S b/arch/powerpc/cpu/mpc8xx/start.S index 8dde4beeea1..b8bdaaec2fa 100644 --- a/arch/powerpc/cpu

[U-Boot] [PATCH 2/9] board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL

2018-11-06 Thread Christophe Leroy
Add mcr3000 device tree and activate CONFIG_DM and CONFIG_OF_CONTROL Signed-off-by: Christophe Leroy --- arch/powerpc/dts/Makefile | 1 + arch/powerpc/dts/mcr3000.dts | 12 board/cssi/MCR3000/u-boot.lds | 6 ++ configs/MCR3000_defconfig | 3 +++ 4 files changed, 22

Re: [U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-08-21 Thread Christophe LEROY
Hi Mario, Le 10/08/2018 à 09:57, Mario Six a écrit : Hi Christophe, On Fri, Aug 10, 2018 at 9:35 AM Christophe LEROY wrote: Hello Mario, Le 26/04/2018 à 10:36, Mario Six a écrit : Hi Joakim, On Thu, Apr 26, 2018 at 10:23 AM, Joakim Tjernlund wrote: On Thu, 2018-04-26 at 11:35 +0530

Re: [U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-08-10 Thread Christophe LEROY
Hello Mario, Le 26/04/2018 à 10:36, Mario Six a écrit : Hi Joakim, On Thu, Apr 26, 2018 at 10:23 AM, Joakim Tjernlund wrote: On Thu, 2018-04-26 at 11:35 +0530, Jagan Teki wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless

Re: [U-Boot] [PATCH] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-26 Thread christophe leroy
Le 26/05/2018 à 11:33, Chris Packham a écrit : Now that there are more boards defining this it can be removed from the whitelist. You mean 'no more' boards ? Christophe Signed-off-by: Chris Packham --- scripts/config_whitelist.txt | 1 - 1 file changed, 1

Re: [U-Boot] [PATCH RFCv2 0/6] Beginning of migration of MPC8xx to DM model

2018-05-04 Thread Christophe LEROY
Hi Mario, Le 04/05/2018 à 11:56, Mario Six a écrit : Hi Christophe, On Fri, May 4, 2018 at 7:20 AM, Christophe LEROY <christophe.le...@c-s.fr> wrote: Hello, Le 16/03/2018 à 17:32, Christophe Leroy a écrit : This serie is the beginning of MPC8xx migration to DM model. I didn't g

Re: [U-Boot] [PATCH RFCv2 0/6] Beginning of migration of MPC8xx to DM model

2018-05-03 Thread Christophe LEROY
Hello, Le 16/03/2018 à 17:32, Christophe Leroy a écrit : This serie is the beginning of MPC8xx migration to DM model. I didn't get any feedback on this serie. I don't feel totally confortable as it is my first implementation of DM and also the first time powerpc uses DT for U-boot. I'd

[U-Boot] [PATCH RFCv2 4/6] drivers: serial: migrate mpc8xx to DM

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- drivers/serial/serial_mpc8xx.c | 77 -- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index 7a590

[U-Boot] [PATCH RFCv2 2/6] drivers: watchdog: add a DM driver for the MPC8xx watchdog

2018-03-16 Thread Christophe Leroy
wdt_start() to stop the watchdog, but cannot be called if wdt_start() has been called. Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/mpc8xx_wdt.c | 51 +++ 2 files chang

[U-Boot] [PATCH RFCv2 6/6] drivers: serial: get rid of non DM mpc8xx driver

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- drivers/serial/serial.c| 2 - drivers/serial/serial_mpc8xx.c | 97 ++ include/serial.h | 1 - 3 files changed, 14 insertions(+), 86 deletions(-) diff --git a/d

[U-Boot] [PATCH RFCv2 5/6] board: MCR3000: migrate to DM_SERIAL

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- arch/powerpc/dts/mcr3000.dts | 7 +++ configs/MCR3000_defconfig| 1 + 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/dts/mcr3000.dts b/arch/powerpc/dts/mcr3000.dts index ef423d73c20..5abf111dc5f 100644 ---

[U-Boot] [PATCH RFCv2 3/6] board: MCR3000: use new DM watchdog

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- arch/powerpc/dts/mcr3000.dts | 3 +++ board/cssi/MCR3000/MCR3000.c | 16 configs/MCR3000_defconfig| 2 ++ include/configs/MCR3000.h| 1 + 4 files changed, 22 insertions(+) diff --git a/arch/power

[U-Boot] [PATCH RFCv2 1/6] board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL

2018-03-16 Thread Christophe Leroy
Add mcr3000 device tree and activate CONFIG_DM and CONFIG_OF_CONTROL Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- arch/powerpc/dts/Makefile | 16 arch/powerpc/dts/mcr3000.dts | 12 board/cssi/MCR3000/u-boot.lds | 6 ++ c

[U-Boot] [PATCH RFCv2 0/6] Beginning of migration of MPC8xx to DM model

2018-03-16 Thread Christophe Leroy
This serie is the beginning of MPC8xx migration to DM model. It applies on top of the serie "[v4] Powerpc: mpc8xx: cleanup before migration to DM model" Christophe Leroy (6): board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL drivers: watchdog: add a DM driver for the MPC8x

[U-Boot] [PATCH v4 11/16] board: MCR3000: cleanup config

2018-03-16 Thread Christophe Leroy
as bootargs is set by the different boot commands Fix CONFIG_SYS_INIT_RAM_ADDR and CONFIG_SYS_INIT_RAM_SIZE to be in line with CPM DPRAM organisation Remove CONFIG_SYS_GBL_DATA_SIZE, CONFIG_SYS_GBL_DATA_OFFSET and CONFIG_SYS_INIT_SP_OFFSET which are unused Signed-off-by: Christophe Leroy

[U-Boot] [PATCH v4 14/16] powerpc: mpc8xx: refactorise reginfo

2018-03-16 Thread Christophe Leroy
reginfo is redundant with some of the commands in immap.c, so move reginfo into that file and remove duplicated info. Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- arch/powerpc/cpu/mpc8xx/Makefile | 1 - arch/powerpc/cpu/mpc8xx/immap.c | 20 +++ arch/power

[U-Boot] [PATCH v4 10/16] board: MCR3000: replace mtd->priv by mtd_to_nand()

2018-03-16 Thread Christophe Leroy
Since commit 17cb4b8f327eb ("mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data"), mtd_to_nand() has to be used instead of mtd->priv Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- board/cssi/MCR3000/nand.c | 2 +- 1 file changed, 1 inser

[U-Boot] [PATCH v4 08/16] powerpc: mpc8xx: redistribute data in CPM dpram

2018-03-16 Thread Christophe Leroy
if needed one day. Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- arch/powerpc/include/asm/cpm_8xx.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/include/asm/cpm_8xx.h b/arch/powerpc/include/asm/cpm_8xx.h index bd8ad

[U-Boot] [PATCH v4 12/16] common: env_embedded: allow fine placement of environment object

2018-03-16 Thread Christophe Leroy
nt) Fixes: 7653942b10e9e ("common/env_embedded.c: drop support for CONFIG_SYS_USE_PPCENV") Cc: Thomas Petazzoni <thomas.petazz...@free-electrons.com> Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- env/embedded.c| 8 include/env_default.h | 2 +- 2 f

[U-Boot] [PATCH v4 13/16] board: MCR3000: Use smaller flash sector for environment

2018-03-16 Thread Christophe Leroy
is a single piece occupying the 256 first kbytes, then the environment is stored in the following 64kb block The environment being quite tiny, we save one 64kb block by embedding the environment in the first 8kb block, hence allowing to increase the monitor size to 320kb. Signed-off-by: Christophe

[U-Boot] [PATCH v4 16/16] powerpc: mpc8xx: move watchdog into drivers/watchdog

2018-03-16 Thread Christophe Leroy
In preparation of DM watchdog, move basic actions into drivers/watchdog Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- arch/powerpc/Kconfig| 2 +- arch/powerpc/cpu/mpc8xx/Kconfig | 4 arch/powerpc/cpu/mpc8xx/cpu.c | 12 drivers/watchdog/Ma

[U-Boot] [PATCH v4 15/16] powerpc: mpc8xx: cleaning up watchdog

2018-03-16 Thread Christophe Leroy
In preparation of migration to DM watchdog, clean up a bit. The 8xx watchdog really is a HW watchdog, so declare it as is then it goes through Kconfig And the watchdog reset doesn't mind getting interrupted, so no need to disable interrupts Signed-off-by: Christophe Leroy <christophe.le..

[U-Boot] [PATCH v4 09/16] powerpc: mpc8xx: initialisation of initial RAM

2018-03-16 Thread Christophe Leroy
u-boot requires some RAM at startup, to store global data structure. RAM is also needed when we migrate to DM for some initial malloc This patch implements the proper init of that RAM by calling board_init_f_alloc_reserve() and board_init_f_init_reserve() Signed-off-by: Christophe Leroy

[U-Boot] [PATCH v4 04/16] powerpc: mpc8xx: make get_immr() independent of CONFIG_8xx

2018-03-16 Thread Christophe Leroy
SPRN_IMMR is defined regardless of the CPU. Therefore, there is no point in enclosing get_immr() inside a #ifdef CONFIG_8xx As it a static inline function, it will in any case only be compiled in functons using it. Signed-off-by: Christophe Leroy <christophe.le...@c-s.fr> --- arch/p

<    1   2   3   4   >