Re: dm, serial: problem with using ns16550 driver before relocation on mpc83xx

2020-02-09 Thread Mario Six
Hi Heiko, On Fri, Feb 7, 2020 at 6:53 AM Heiko Schocher wrote: > > Hi Simon, > > removed Dirk from cc and added Mario Six > > @Mario: Dirk is maintainer of the gazerbeam board: > > https://gitlab.denx.de/u-boot/u-boot/blob/master/board/gdsys/mpc8308/MAINTAINERS#L2 > &g

[PULL] u-boot-mpc83xx/next

2020-01-08 Thread Mario Six
Hi Tom, A small PR with MC8309 fixes from Rasmus. CI: https://travis-ci.com/si-gdsys/u-boot-mpc83xx/builds/143550229 The following changes since commit d8a3f5259a36e76d1de127f65714c40918e8ee4c: Merge tag 'u-boot-imx-20200107' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2020-01-07

Re: [PATCH] mpc83xx_clk: always treat MPC83XX_CLK_PCI as invalid

2020-01-07 Thread Mario Six
amp; mpc83xx_has_pci(type); > case MPC83XX_CLK_CSB: > return true; > case MPC83XX_CLK_I2C2: > -- > 2.23.0 > That's OK as a workaround, but should probably be properly fixed (ideally with the addition of a proper DM PCI driver that works with the clock driver). But for now: Reviewed-by: Mario Six Applied to mpc83xx/next. Best regards, Mario

Re: [PATCH] mpc83xx: set MPC83XX_GPIO_CTRLRS to 2 for MPC8309

2020-01-07 Thread Mario Six
defined(CONFIG_ARCH_MPC834X) || defined(CONFIG_ARCH_MPC837X) || \ > + defined(CONFIG_ARCH_MPC8309) > #define MPC83XX_GPIO_CTRLRS 2 > #else > #define MPC83XX_GPIO_CTRLRS 0 > -- > 2.23.0 > Reviewed-by: Mario Six Applied to mpc83xx/next. Best regards, Mario

Re: [PATCH] mpc83xx: immap_83xx: add spi8xxx_t in immap for mpc8309

2020-01-07 Thread Mario Six
,7 @@ > #include > > #if defined(CONFIG_ARCH_MPC8308) || \ > + defined(CONFIG_ARCH_MPC8309) || \ > defined(CONFIG_ARCH_MPC8313) || \ > defined(CONFIG_ARCH_MPC8315) || \ > defined(CONFIG_ARCH_MPC834X) || \ > -- > 2.23.0 > Reviewed-by: Mario Six Applied to mpc83xx/next. Best regards, Mario

Re: [PATCH] powerpc: mpc83xx: convert CONFIG_FSL_ELBC to Kconfig

2020-01-07 Thread Mario Six
* > * High Level Configuration Options > */ > -#define CONFIG_FSL_ELBC > - > #define CONFIG_BOOT_RETRY_TIME 900 > #define CONFIG_BOOT_RETRY_MIN 30 > #define CONFIG_RESET_TO_RETRY > diff --git a/include/configs/ve8313.h b/include/configs/ve8313.h > index 66f771d818..67793c17ae 100644 > --- a/include/configs/ve8313.h > +++ b/include/configs/ve8313.h > @@ -18,7 +18,6 @@ > #define CONFIG_E3001 > > #define CONFIG_PCI_INDIRECT_BRIDGE 1 > -#define CONFIG_FSL_ELBC1 > > /* > * On-board devices > -- > 2.23.0 > Reviewed-by: Mario Six Applied to mpc83xx/next. Best regards, Mario

Re: [PATCH] mpc83xx: make ARCH_MPC8309 select SYS_FSL_ERRATUM_ESDHC111

2020-01-07 Thread Mario Six
+ b/arch/powerpc/cpu/mpc83xx/Kconfig > @@ -220,6 +220,7 @@ config ARCH_MPC8309 > select MPC83XX_QUICC_ENGINE > select MPC83XX_PCI_SUPPORT > select MPC83XX_SECOND_I2C_SUPPORT > + select SYS_FSL_ERRATUM_ESDHC111 > > config ARCH_MPC831X >

Re: [U-Boot] [ANNOUNCEMENT] Switching to gitlab.denx.de

2019-06-18 Thread Mario Six
Hi Wolfgang, On Tue, Jun 18, 2019 at 3:46 PM Wolfgang Denk wrote: > > Hello everybody, > > I wrote: > > > as discussed before, we want to switch from the old git server to > > more powerful soft- and hardware. We will move the U-Boot master > > repository and all custodian repositories to

[U-Boot] [PATCH] ids8313: Disable SPI

2019-06-07 Thread Mario Six
With the recent SPI changes, the ids8313 board won't compile anymore. Until further information from the manufacturer, disable SPI support, so that the board will at least compile again. Signed-off-by: Mario Six --- configs/ids8313_defconfig | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [U-Boot] Pull request: u-boot-spi/master

2019-06-07 Thread Mario Six
Hi Heiko, On Fri, Jun 7, 2019 at 11:15 AM Heiko Schocher wrote: > > Hello Mario, > > Am 07.06.2019 um 11:10 schrieb Mario Six: > > Hi Heiko, > > > > On Fri, Jun 7, 2019 at 10:56 AM Heiko Schocher wrote: > >> > >> Hello Mario, > >> >

Re: [U-Boot] [PATCH] ids8313: Start DM/DT conversion

2019-06-07 Thread Mario Six
Hi Heiko, On Fri, Jun 7, 2019 at 10:58 AM Heiko Schocher wrote: > > Hello Mario, > > Am 07.06.2019 um 09:51 schrieb Mario Six: > > This commit does the minimal possible conversion so that the ids8313 > > board still compiles with the recent SPI DM conversion: > > *

Re: [U-Boot] Pull request: u-boot-spi/master

2019-06-07 Thread Mario Six
Hi Heiko, On Fri, Jun 7, 2019 at 10:56 AM Heiko Schocher wrote: > > Hello Mario, > > Am 07.06.2019 um 09:51 schrieb Mario Six: > > (adding Heiko, since he's the maintainer of the board in question) > > > > On Fri, May 24, 2019 at 9:34 PM Jagan Teki > >

Re: [U-Boot] Pull request: u-boot-spi/master

2019-06-07 Thread Mario Six
(adding Heiko, since he's the maintainer of the board in question) On Fri, May 24, 2019 at 9:34 PM Jagan Teki wrote: > > Hi Mario, > > On Tue, May 21, 2019 at 4:42 PM Tom Rini wrote: > > > > On Mon, May 20, 2019 at 10:48:23PM +0530, Jagan Teki wrote: > > > > > Hi Tom, > > > > > > Please pull

[U-Boot] [PATCH] ids8313: Start DM/DT conversion

2019-06-07 Thread Mario Six
* Enable enough config options to that the board compiles Signed-off-by: Mario Six --- arch/powerpc/dts/Makefile| 1 + arch/powerpc/dts/ids8313.dts | 405 +++ board/ids/ids8313/ids8313.c | 32 --- configs/ids8313_defconfig| 6 +- 4 files changed, 411

[U-Boot] [PULL] u-boot-mpc83xx/master (take 2)

2019-05-21 Thread Mario Six
to d494cdb97e18a30214d0414376d4eacdf82224fe: mpc83xx: Add gazerbeam board (2019-05-21 08:03:38 +0200) Dirk Eibach (2): gdsys: phy: Adapt fixup_88e1518() to latest Release Notes mpc83xx: Add gazerbeam board Mario Six (84): mpc83xx: Introduce ARCH_MPC830

Re: [U-Boot] [PULL] u-boot-mpc83xx/master

2019-05-21 Thread Mario Six
Hi Tom, On Tue, May 21, 2019 at 4:11 AM Tom Rini wrote: > > On Mon, May 20, 2019 at 01:59:53PM +0200, Mario Six wrote: > > > Hi Tom, > > > > The following changes since commit 7eafd61a43b102808dc83066de35a1a51d00330f: > > > > ihs_mdio: Use new regm

Re: [U-Boot] [PATCH 16/16] mpc83xx: Add gazerbeam board

2019-05-20 Thread Mario Six
On Fri, Mar 29, 2019 at 10:18 AM Mario Six wrote: > > From: Dirk Eibach > > The gdsys gazerbeam board is based on a Freescale MPC8308 SOC. > It boots from NOR-Flash, kernel and rootfs are stored on > SD-Card. > > On board peripherals include: > - 2x 10/100 Mbit/s Eth

[U-Boot] [PATCH] controlcenterdc: Update config

2019-05-20 Thread Mario Six
in question are already present in the device tree. This especially fixes the three compile warnings about CONFIG_DM_MMC, CONFIG_DM_USB, and CONFIG_AHCI for the ControlCenterDC board. Signed-off-by: Mario Six --- configs/controlcenterdc_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PULL] u-boot-mpc83xx/master

2019-05-20 Thread Mario Six
to 7eafd61a43b102808dc83066de35a1a51d00330f: ihs_mdio: Use new regmap interface (2019-05-20 13:50:35 +0200) Mario Six (70): mpc83xx: Introduce ARCH_MPC830* mpc83xx: Introduce ARCH_MPC831* mpc83xx: Introduce ARCH_MPC832* mpc83xx: Introduce

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: fix bus enumeration if some buses have empty slots

2019-05-14 Thread Mario Six
Hi Marek, On Tue, May 14, 2019 at 5:12 PM Marek BehĂșn wrote: > > The documentation for the uclass_next_device says this: > > @devp: On entry, pointer to device to lookup. On exit, returns pointer > to the next device in the uclass if no error occurred, or NULL if > there is no next device,

Re: [U-Boot] [PATCH v2 10/19] spi: mpc8xxx: Simplify logic a bit

2019-05-14 Thread Mario Six
On Tue, May 14, 2019 at 3:53 PM Jagan Teki wrote: > > On Thu, May 2, 2019 at 2:37 PM Joakim Tjernlund > wrote: > > > > On Thu, 2019-05-02 at 07:31 +0200, Mario Six wrote: > > > CAUTION: This email originated from outside of the organization. Do not > > >

Re: [U-Boot] [PATCH v2 10/19] spi: mpc8xxx: Simplify logic a bit

2019-05-01 Thread Mario Six
Hi Jagan and Jocke, I'm back from vacation, so here's my answer: On Mon, Apr 29, 2019 at 12:41 PM Jagan Teki wrote: > > + Mario > > On Mon, Apr 29, 2019 at 2:48 PM Joakim Tjernlund > wrote: > > > > On Mon, 2019-04-29 at 01:58 +0530, Jagan Teki wrote: > > > &

[U-Boot] [PATCH 16/16] mpc83xx: Add gazerbeam board

2019-03-29 Thread Mario Six
From: Dirk Eibach The gdsys gazerbeam board is based on a Freescale MPC8308 SOC. It boots from NOR-Flash, kernel and rootfs are stored on SD-Card. On board peripherals include: - 2x 10/100 Mbit/s Ethernet (optional) Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- arch/powerpc/cpu

[U-Boot] [PATCH 13/16] board: gazerbeam: Fix SC detection

2019-03-29 Thread Mario Six
The single channel detection in the gazerbeam board driver was not implemented correctly. Fix the detection. Signed-off-by: Mario Six --- drivers/board/gazerbeam.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/board/gazerbeam.c b/drivers

[U-Boot] [PATCH 14/16] gazerbeam: Import Linux DT

2019-03-29 Thread Mario Six
Import the Linux device tree for the Gazerbeam board. Signed-off-by: Mario Six --- arch/powerpc/dts/.gitignore | 1 + arch/powerpc/dts/Makefile | 1 + arch/powerpc/dts/gazerbeam.dts| 600 ++ arch/powerpc/dts/gdsys

[U-Boot] [PATCH 11/16] gdsys: cmd_ioloop: Make DM compatible

2019-03-29 Thread Mario Six
Make the ioloop command DM compatible, while keeping the old functionality for not-yet-converted boards. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 293 +++- 1 file changed, 288 insertions(+), 5 deletions(-) diff --git a/board/gdsys/common

[U-Boot] [PATCH 12/16] gdsys: ioep-fpga: Switch to gazerbeam-style reporting

2019-03-29 Thread Mario Six
Use a more extensive FPGA feature reporting style in the gdsys ioep-fpga driver. Signed-off-by: Mario Six --- board/gdsys/common/ioep-fpga.c | 629 + 1 file changed, 489 insertions(+), 140 deletions(-) diff --git a/board/gdsys/common/ioep-fpga.c b/board/gdsys

[U-Boot] [PATCH 15/16] gazerbeam: Add u-boot specific dts include file

2019-03-29 Thread Mario Six
Add a U-Boot specific dts file, which encapsulates the needed modifications to the Gazerbeam Linux device tree. Signed-off-by: Mario Six --- arch/powerpc/dts/gazerbeam.dts | 2 + arch/powerpc/dts/gdsys/gazerbeam-uboot.dtsi | 250 2 files changed, 252

[U-Boot] [PATCH 10/16] gdsys: cmd_ioloop: Introduce commenting enum

2019-03-29 Thread Mario Six
Replace the boolean parameter of io_check_status that controls whether the status is printed or not with a documenting enum. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/board/gdsys/common

[U-Boot] [PATCH 09/16] gdsys: cmd_ioloop: Fix style violations

2019-03-29 Thread Mario Six
Fix some style violations in the ioloop command, and make the code more readable where possible. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 78 - 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/board/gdsys/common/cmd_ioloop.c b

[U-Boot] [PATCH 06/16] gdsys: mpc8308: Don't use manual RAM config if RAM driver is active

2019-03-29 Thread Mario Six
The "manual" RAM configuration should not be used if the DM RAM driver is active, hence, disable the code if the CONFIG_MPC83XX_SDRAM config variable is defined. Signed-off-by: Mario Six --- board/gdsys/mpc8308/sdram.c | 4 1 file changed, 4 insertions(+) diff --git a/board/gds

[U-Boot] [PATCH 07/16] gdsys: Introduce GDSYS_LEGACY_DRIVERS

2019-03-29 Thread Mario Six
Future gdsys boards will switch from the legacy drivers in board/gdsys/common to DM-based drivers. Define a Kconfig option that disables the legacy drivers. Signed-off-by: Mario Six --- board/gdsys/common/adv7611.c | 4 board/gdsys/common/ch7301.c| 4 board/gdsys/common/dp501

[U-Boot] [PATCH 08/16] gdsys: mpc8308: Add FPGA flavor option

2019-03-29 Thread Mario Six
More recent versions of IHS FPGAs feature a different memory layout. Add a Kconfig option to differentiate between the legacy layout, and the new layout (which is used on the upcoming "Gazerbeam" and later boards). Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kc

[U-Boot] [PATCH 05/16] gdsys: mpc8308: Migrate SYS_FPGA{0, 1}_{BASE, SIZE} to Kconfig

2019-03-29 Thread Mario Six
Move CONFIG_SYS_FPGA0_BASE, CONFIG_SYS_FPGA0_SIZE, CONFIG_SYS_FPGA1_BASE, and CONFIG_SYS_FPGA1_SIZE to Kconfig. Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kconfig | 22 ++ include/configs/hrcon.h | 8 include/configs/strider.h | 8 3 files

[U-Boot] [PATCH 04/16] gdsys: mpc8308: Use shadow register for output GPIO values

2019-03-29 Thread Mario Six
Since the gpio output status on MPC8xxx cannot be read back, it has to be buffered locally. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 4 ++-- board/gdsys/mpc8308/mpc8308.c | 19 +++ board/gdsys/mpc8308/mpc8308.h | 3 +++ board

[U-Boot] [PATCH 03/16] gdsys: mpc8308: Fix style violations

2019-03-29 Thread Mario Six
Fix some style violations in the gdsys MPC8308 board files, and make the code more readable. Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 55 ++- board/gdsys/mpc8308/mpc8308.c | 12 board/gdsys/mpc8308/strider.c | 49

[U-Boot] [PATCH 02/16] gdsys: Post ppc4xx removal cleanup

2019-03-29 Thread Mario Six
whitelist). Signed-off-by: Mario Six --- board/gdsys/common/Makefile | 4 -- board/gdsys/common/miiphybb.c | 127 -- include/gdsys_fpga.h | 96 - 3 files changed, 227 deletions(-) delete mode 100644 board/gdsys/common/miiphy

[U-Boot] [PATCH 01/16] gdsys: phy: Adapt fixup_88e1518() to latest Release Notes

2019-03-29 Thread Mario Six
From: Dirk Eibach The initialization sequence in the newest release notes of the 88e1518 phy omits two commands. Remove them from the sequence. Signed-off-by: Dirk Eibach --- board/gdsys/common/phy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/gdsys/common/phy.c

Re: [U-Boot] [PATCH] ihs_mdio: Use new regmap interface

2019-03-29 Thread Mario Six
On Thu, Jan 31, 2019 at 11:04 AM Simon Glass wrote: > > On Mon, 28 Jan 2019 at 01:49, Mario Six wrote: > > > > For the DM case, use the proper parameter for the regmap_init_mem call > > (which is the ofnode, not the udevice). > > > > Signed-off-by: Mario

Re: [U-Boot] [PATCH 2/2] gdsys_rxaui_ctrl: Use new regmap interface

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:48 AM Mario Six wrote: > > For the DM case, use the proper parameter for the regmap_init_mem call > (which is the ofnode, not the udevice). > > Signed-off-by: Mario Six > --- > drivers/misc/gdsys_rxaui_ctrl.c | 2 +- > 1 file changed, 1

Re: [U-Boot] [PATCH 1/2] gdsys_rxaui_ctrl: Return old state

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:48 AM Mario Six wrote: > > Make the gdsys_rxaui_ctrl polarity setting function return the old > state to comply with the API requirements. > > Signed-off-by: Mario Six > --- > drivers/misc/gdsys_rxaui_ctrl.c | 7 ++- > 1 file changed, 6 i

Re: [U-Boot] [PATCH 2/2] i2c: ihs: Improve error handling

2019-03-29 Thread Mario Six
On Thu, Feb 7, 2019 at 6:26 AM Heiko Schocher wrote: > > Hello Mario, > > Am 28.01.2019 um 09:45 schrieb Mario Six: > > Improve the error handling and reporting of the IHS I2C driver. > > > > Signed-off-by: Mario Six > >

Re: [U-Boot] [PATCH 1/2] i2c: ihs: Get rid of fpgamap

2019-03-29 Thread Mario Six
On Thu, Feb 7, 2019 at 6:24 AM Heiko Schocher wrote: > > Hello Mario, > > Am 28.01.2019 um 09:45 schrieb Mario Six: > > Since the IHS I2C driver want upstream, the surrounding infrastructure > > has changed quite a bit (notably, the fpgamap driver was replaced

Re: [U-Boot] [PATCH 2/2] cmd: binop: Use hex2bin

2019-03-29 Thread Mario Six
On Thu, Jan 31, 2019 at 11:04 AM Simon Glass wrote: > > On Mon, 28 Jan 2019 at 01:44, Mario Six wrote: > > > > Use the new hex2bin function in the binop command instead of converting > > the data manually. > > > > Signed-off-by: Mari

Re: [U-Boot] [PATCH 1/2] cmd: binop: Use new environment api

2019-03-29 Thread Mario Six
On Thu, Jan 31, 2019 at 11:05 AM Simon Glass wrote: > > On Mon, 28 Jan 2019 at 01:44, Mario Six wrote: > > > > Since the binop command was introduced, the environment API was changed. > > Use the new API to make the command work again. > > > > Signed-off-by:

Re: [U-Boot] [PATCH] mpc83xx_clk: Add enable method

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:41 AM Mario Six wrote: > > Some DM drivers have hardcoded clk_enable calls when handling > clocks (for example the fsl_esdhc driver). > > To work with these drivers, add an enable method to the MCP83xx clock > driver (which does nothing, because the

Re: [U-Boot] [PATCH] mpc83xx: Define _end symbol

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:37 AM Mario Six wrote: > > To support OF_EMBED, the MPC83xx architecture has to define the "_end" > symbol to correctly access the appended DT. > > Fortunately, MPC8xx already defines the symbol, and the linker script is > quite similar

Re: [U-Boot] [PATCH] powerpc: Simplify processor.h

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:34 AM Mario Six wrote: > > Lots of stuff in processor.h was taken verbatim from the Linux kernel. > It was never synced, so most of it was removed or changed in the kernel > since it was imported. > > Remove all the stuff that is unused in the curr

Re: [U-Boot] [PATCH v3 01/60] mpc83xx: Introduce ARCH_MPC830*

2019-02-07 Thread Mario Six
On Mon, Jan 28, 2019 at 9:13 AM Mario Six wrote: > > Hi York, > On Tue, Jan 22, 2019 at 5:17 PM York Sun wrote: > > > > On 1/21/19 12:19 AM, Mario Six wrote: > > > Replace CONFIG_MPC830* with proper CONFIG_ARCH_MPC830* Kconfig options. > &

[U-Boot] [PATCH] ihs_video_out: Fix error handling

2019-01-28 Thread Mario Six
The ihs_video_out driver's error handling is incorrect in two places (one is a missing negation, and in one place a error should be ignored). Fix these two instances. Signed-off-by: Mario Six --- drivers/video/ihs_video_out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH] ihs_mdio: Use new regmap interface

2019-01-28 Thread Mario Six
For the DM case, use the proper parameter for the regmap_init_mem call (which is the ofnode, not the udevice). Signed-off-by: Mario Six --- board/gdsys/common/ihs_mdio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/gdsys/common/ihs_mdio.c b/board/gdsys/common

[U-Boot] [PATCH 2/2] gdsys_rxaui_ctrl: Use new regmap interface

2019-01-28 Thread Mario Six
For the DM case, use the proper parameter for the regmap_init_mem call (which is the ofnode, not the udevice). Signed-off-by: Mario Six --- drivers/misc/gdsys_rxaui_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc

[U-Boot] [PATCH 1/2] gdsys_rxaui_ctrl: Return old state

2019-01-28 Thread Mario Six
Make the gdsys_rxaui_ctrl polarity setting function return the old state to comply with the API requirements. Signed-off-by: Mario Six --- drivers/misc/gdsys_rxaui_ctrl.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc

[U-Boot] [PATCH 2/2] i2c: ihs: Improve error handling

2019-01-28 Thread Mario Six
Improve the error handling and reporting of the IHS I2C driver. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 67 +++ 1 file changed, 43 insertions(+), 24 deletions(-) diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index 5313490bf3a

[U-Boot] [PATCH 1/2] i2c: ihs: Get rid of fpgamap

2019-01-28 Thread Mario Six
Since the IHS I2C driver want upstream, the surrounding infrastructure has changed quite a bit (notably, the fpgamap driver was replaced with a regmap driver). Update the driver to work with these changes. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 57

[U-Boot] [PATCH 2/2] cmd: binop: Use hex2bin

2019-01-28 Thread Mario Six
Use the new hex2bin function in the binop command instead of converting the data manually. Signed-off-by: Mario Six --- cmd/binop.c | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/cmd/binop.c b/cmd/binop.c index be780bffd7b..116a2c0d554 100644

[U-Boot] [PATCH 1/2] cmd: binop: Use new environment api

2019-01-28 Thread Mario Six
Since the binop command was introduced, the environment API was changed. Use the new API to make the command work again. Signed-off-by: Mario Six --- cmd/binop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/binop.c b/cmd/binop.c index 787f7a26ead..be780bffd7b

[U-Boot] [PATCH] mpc83xx_clk: Add enable method

2019-01-28 Thread Mario Six
Some DM drivers have hardcoded clk_enable calls when handling clocks (for example the fsl_esdhc driver). To work with these drivers, add an enable method to the MCP83xx clock driver (which does nothing, because the clocks are always enabled). Signed-off-by: Mario Six --- drivers/clk

[U-Boot] [PATCH] mpc83xx: Define _end symbol

2019-01-28 Thread Mario Six
To support OF_EMBED, the MPC83xx architecture has to define the "_end" symbol to correctly access the appended DT. Fortunately, MPC8xx already defines the symbol, and the linker script is quite similar to that of MPC83xx, so copy this approach for MPC83xx. Signed-off-by: Mario Six

[U-Boot] [PATCH] powerpc: Simplify processor.h

2019-01-28 Thread Mario Six
, they can do it later on. Signed-off-by: Mario Six --- arch/powerpc/include/asm/processor.h | 120 --- 1 file changed, 120 deletions(-) diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index f97ce48cc27..e03ab21f59d 100644 --- a/arch

Re: [U-Boot] [PATCH v3 01/60] mpc83xx: Introduce ARCH_MPC830*

2019-01-28 Thread Mario Six
Hi York, On Tue, Jan 22, 2019 at 5:17 PM York Sun wrote: > > On 1/21/19 12:19 AM, Mario Six wrote: > > Replace CONFIG_MPC830* with proper CONFIG_ARCH_MPC830* Kconfig options. > > > > Signed-off-by: Mario Six > > > > --- > > I browse through the entire p

[U-Boot] [PATCH v3 60/60] keymile: Factor out common includes again

2019-01-21 Thread Mario Six
Not that the Kconfig conversion of a lot of variables is done, we can factor out the common include files for the keymile boards again (which now contain hardly any #ifdef logic at all). Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- include/configs/km/km-mpc8309.h |

[U-Boot] [PATCH v3 57/60] mpc83xx: Replace ppcDWstore with inline assembly

2019-01-21 Thread Mario Six
-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/cpu.c | 18 ++ arch/powerpc/cpu/mpc83xx/start.S | 12 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/cpu/mpc83xx/cpu.c b/arch/power

[U-Boot] [PATCH v3 58/60] mpc83xx: Use pre-defined asm functions

2019-01-21 Thread Mario Six
For a lot of inline assembly calls in the mpc8xxx and mpc83xx directories, we already have convenient pre-defined helper functions, but they're not used, resulting in hard-to-read code. Use these helper functions where ever possible and useful. Signed-off-by: Mario Six --- v2 ->

[U-Boot] [PATCH v3 46/60] mpc83xx: Migrate HID config to Kconfig

2019-01-21 Thread Mario Six
Mirate the HID configuration settings to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/hid/Kconfig | 565 ++ arch/powerpc/cpu/mpc83xx/hid/hid.h

[U-Boot] [PATCH v3 56/60] mpc83xx: Don't define cpu_eth_init for DM eth

2019-01-21 Thread Mario Six
Don't use the legacy method of initializing the ethernet controller on MPC83xx when DM is active. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc83xx/c

[U-Boot] [PATCH v3 47/60] mpc83xx: Migrate CONFIG_SYS_IMMR to Kconfig

2019-01-21 Thread Mario Six
Migrate CONFIG_SYS_IMMR to Kconfig for MPC83xx. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig| 7 +++ configs/TQM834x_defconfig | 1 + configs/ids8313_defconfig | 1 + include/configs/MPC830

[U-Boot] [PATCH v3 59/60] keymile: Remove CONFIG_SYS_APP{1, 2}_{BASE, SIZE}

2019-01-21 Thread Mario Six
-by: Mario Six --- v2 -> v3: New in v3 --- include/configs/kmopti2.h| 5 - include/configs/kmsupx5.h| 3 --- include/configs/kmtegr1.h| 5 - include/configs/kmtepr2.h| 5 - include/configs/kmvect1.h| 5 - include/configs/suvd3.h | 5 - include/configs/tu

[U-Boot] [PATCH v3 44/60] mpc83xx: Remove last CONFIG_MPC83xx

2019-01-21 Thread Mario Six
Remove the last instances of the CONFIG_MPC83xx symbol. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- include/configs/hrcon.h | 1 - include/configs/strider.h | 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/hrcon.h b/include/configs/h

[U-Boot] [PATCH v3 55/60] mpc83xx: Add arch clock.h to make SDHC work

2019-01-21 Thread Mario Six
The fsl-esdhc driver can be used for the SDHC functionality on MPC83xx, but it needs some additional definitions. Add a clock.h file, so we can use the driver for MPC83xx. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/include/asm/arch-m

[U-Boot] [PATCH v3 41/60] powerpc: mpc83xx: Fix MPC8308 IMMR memory layout

2019-01-21 Thread Mario Six
The MPC8308 has two I2C controllers, but no PCI controller. Fix the register map layout for this SoC. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Makefile | 2 ++ arch/powerpc/include/asm/immap_83xx.

[U-Boot] [PATCH v3 53/60] mpc83xx: Get rid of CONFIG_SYS_DDR_SDRAM_BASE

2019-01-21 Thread Mario Six
CONFIG_SYS_DDR_SDRAM_BASE is set to the same value as CONFIG_SYS_SDRAM_BASE on all existing boards. Just use CONFIG_SYS_SDRAM_BASE instead. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- board/freescale/mpc8

[U-Boot] [PATCH v3 43/60] powerpc: mpc83xx: fdt: Use get_serial_clock()

2019-01-21 Thread Mario Six
Replace the hard-coded CONFIG_SYS_NS16550_CLK value for the FDT fixup with the previously introduced get_serial_clock function This will make it possible to activate DM for serial devices on MPC83xx later on. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 ---

[U-Boot] [PATCH v3 52/60] mpc83xx: Get rid of CONFIG_SYS_DDR_BASE

2019-01-21 Thread Mario Six
CONFIG_SYS_DDR_BASE is specific to mpc83xx an is always set to the same value as CONFIG_SYS_SDRAM_BASE. Just use CONFIG_SYS_SDRAM_BASE instead. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- board/esd/vme8349/vme8349.c | 2 +- board/fre

[U-Boot] [PATCH v3 49/60] mpc83xx: Migrate arbiter config to Kconfig

2019-01-21 Thread Mario Six
Migrate the arbiter configuration to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/arbiter/Kconfig | 139 + arch/powerpc/cpu/mpc83xx/arbiter/arb

[U-Boot] [PATCH v3 50/60] mpc83xx: Migrate SPCR to Kconfig

2019-01-21 Thread Mario Six
Migrate the SPCR setting to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/cpu_init.c | 29 + arch/powerpc/cpu/mpc83xx/initreg/Kconfig | 5 +

[U-Boot] [PATCH v3 45/60] mpc83xx: Prepare usage of DM gpio driver

2019-01-21 Thread Mario Six
The MPC85xx GPIO driver was converted to handle a broader range of SoCs. Prepare the MPC83xx code for usage of this driver. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 8 1 file changed, 8 inse

[U-Boot] [PATCH v3 42/60] powerpc: mpc83xx: Implement get_serial_clock()

2019-01-21 Thread Mario Six
DM serial drivers on PowerPC determine their clock frequency via the get_serial_clock function. This function is not Implemented yet for MPC83xx. This patch Implements the function so that DM serial drivers work on MPC83xx. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v

[U-Boot] [PATCH v3 38/60] mpc83xx: Simplify BR,OR lines

2019-01-21 Thread Mario Six
Re-format all BR,OR #define lines into single lines. This makes them harder to read, but accessible to semi-automatic replacement. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- include/configs/MPC8308RDB.h| 46 --- include/c

[U-Boot] [PATCH v3 48/60] mpc8308: Migrate system io config to Kconfig

2019-01-21 Thread Mario Six
Migrate the system IO configuration setting to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/cpu_init.c | 1 + arch/powerpc/cpu/mpc83xx/sysio/Kconfig

[U-Boot] [PATCH v3 54/60] mpc83xx: Get rid of CONFIG_SYS_LBC_*

2019-01-21 Thread Mario Six
). To simplify the configuration files, hardcode the setting of these values for mpc83xx. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- board/freescale/mpc8313erdb/sdram.c | 5 +++-- board/freescale/mpc8349emds/mpc8349emds.c | 27 +++ boa

[U-Boot] [PATCH v3 39/60] sbc8349: Remove SDRAM functionality

2019-01-21 Thread Mario Six
-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- include/configs/sbc8349.h | 67 --- 1 file changed, 67 deletions(-) diff --git a/include/configs/sbc8349.h b/include/configs/sbc8349.h index 09cdb7c1a8a..42a1e1682d2 100644 --- a/include/c

[U-Boot] [PATCH v3 51/60] mpc83xx: Migrate CONFIG_LCRR_* to Kconfig

2019-01-21 Thread Mario Six
Migrate the CONFIG_LCRR_* settings to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/cpu_init.c | 22 --- arch/powerpc/cpu/mpc83xx/initreg/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/initreg/Kconfig.lcrr

[U-Boot] [PATCH v3 35/60] mpc83xx: Migrate LBLAW_* to Kconfig

2019-01-21 Thread Mario Six
, and assemble the final value from these. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/cpu_init.c| 2 + arch/powerpc/cpu/mpc83xx/lblaw/Kconfig | 519 +

[U-Boot] [PATCH v3 31/60] mpc83xx: Kconfig: Migrate HRCW to Kconfig

2019-01-21 Thread Mario Six
comfortable. Hence, make its fields configurable in Kconfig, and assemble the final value from these. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig| 69 ++ arch/powerpc/cpu/mpc83xx/hrcw/Kconfig

[U-Boot] [PATCH v3 36/60] mpc83xx: Normalize BR/OR option lines

2019-01-21 Thread Mario Six
All BR/OR option lines should have the same layout to make them easier to migrate to Kconfig. This includes using the same option macros everywhere. The normalize the lines, * replace function macros with their results, and * replace hardcoded hex values with standard macros Signed-off-by: Mario

[U-Boot] [PATCH v3 37/60] tqm834x: Expand CONFIG_SYS_OR_TIMING_FLASH macro

2019-01-21 Thread Mario Six
can remove the variable in the next patch. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- board/tqc/tqm834x/tqm834x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/tqc/tqm834x/tqm834x.c b/board/tqc/tqm834x/tqm834x.c index 7c92f

[U-Boot] [PATCH v3 33/60] powerpc: Migrate HIGH_BATS to Kconfig

2019-01-21 Thread Mario Six
Migrate the CONFIG_HIGH_BATS variable to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- arch/powerpc/Kconfig | 6 ++ configs/MPC8313ERDB_33_defconfig | 1 + configs/MPC8313ERDB_66_defconfig

[U-Boot] [PATCH v3 25/60] MPC8315ERDB: Remove CONFIG_MPC8315ERDB

2019-01-21 Thread Mario Six
CONFIG_MPC8315ERDB is unused, and TARGET_MPC8315ERDB could replace it. Hence, get rid of CONFIG_MPC8315ERDB. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC8315ERDB.h | 1 - scripts/config_whitelist.txt |

[U-Boot] [PATCH v3 29/60] mpc83xx: Replace CONFIG_83XX_CLKIN in calculations

2019-01-21 Thread Mario Six
CONFIG_SYS_NS16550_CLK. This makes it harder to replace CONFIG_83XX_CLKIN. But the value of the multiplicator can be read from the SPMR register. Hence, replace the static calculations with a call to a new get_bus_freq function, as other architectures do. Signed-off-by: Mario Six --- v2 -> v3: No changes

[U-Boot] [PATCH v3 32/60] mpc83xx: pcie: Read the clock from registers

2019-01-21 Thread Mario Six
The MPC83xx DM timer driver disables arch.pciexp*_clk, and uses clk_get_rate instead. But the legacy MPC83xx PCIe driver still uses arch.pciexp*_clk for the clock. Hence, read the PCIe clock from the registers in the legacy MPC83xx PCIe driver. Signed-off-by: Mario Six --- v2 ->

[U-Boot] [PATCH v3 19/60] ve8313: Merge BR/OR settings

2019-01-21 Thread Mario Six
first, NAND second), and unroll the CONFIG_SYS_NAND_{BR,OR}_PRELIM options. This will ease the Kconfig migration Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- include/configs/ve8313.h | 39 +++ 1 file changed, 19 inse

[U-Boot] [PATCH v3 24/60] MPC8313ERDB: Remove CONFIG_MPC8313ERDB

2019-01-21 Thread Mario Six
CONFIG_MPC8313ERDB is unused, and TARGET_MPC8313ERDB_NAND/TARGET_MPC8313ERDB_NOR Kconfig could replace it. Hence, get rid of CONFIG_MPC8313ERDB. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC8313ERDB_NAND

[U-Boot] [PATCH v3 27/60] MPC837XERDB: Remove CONFIG_MPC837XERDB

2019-01-21 Thread Mario Six
CONFIG_MPC837XERDB is unused, and TARGET_MPC837XERDB could replace it. Hence, get rid of CONFIG_MPC837XERDB. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC837XERDB.h | 1 - scripts/config_whitelist.txt |

[U-Boot] [PATCH v3 22/60] hrcon: Migrate to CONFIG_TARGET_HRCON

2019-01-21 Thread Mario Six
Use the proper CONFIG_TARGET_HRCON Kconfig option to replace the CONFIG_HRCON ad-hoc config option. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Combined config creation and simplification patches * Removed config option from whitelist --- board/gdsys/common/Makefil

[U-Boot] [PATCH v3 20/60] MPC832XEMDS: Migrate to CONFIG_TARGET_MPC832XEMDS

2019-01-21 Thread Mario Six
Use the proper CONFIG_TARGET_MPC832XEMDS Kconfig option to replace the CONFIG_MPC832XEMDS ad-hoc config option. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- board/freescale/common/pq-mds-pib.c | 6 +++--- include/c

[U-Boot] [PATCH v3 30/60] mpc83xx: Get rid of CONFIG_83XX_CLKIN

2019-01-21 Thread Mario Six
value of CONFIG_83XX_CLKIN in all MPC83xx config files Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- Kconfig | 2 +- arch/powerpc/cpu/mpc83xx/speed.c| 4 +-- arch/powerpc/cpu/mpc83xx/spl_minimal.c | 2 +- board/fre

[U-Boot] [PATCH v3 18/60] mpc8315erdb: Merge BR/OR settings

2019-01-21 Thread Mario Six
default (NOR first, NAND second), and unroll the CONFIG_SYS_NAND_{BR,OR}_PRELIM options. This will ease the Kconfig migration. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- include/configs/MPC8315ERDB.h | 40 +-- 1 file chang

[U-Boot] [PATCH v3 28/60] mpc83xx: Migrate legacy PCI options to Kconfig

2019-01-21 Thread Mario Six
The MPC83xx include files contain some settings of the PCI subsystem. Migrate these to Kconfig until a proper DM PCI driver exists. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig| 26 ++

[U-Boot] [PATCH v3 26/60] MPC837XEMDS: Remove CONFIG_MPC837XEMDS

2019-01-21 Thread Mario Six
CONFIG_MPC837XEMDS is unused, and TARGET_MPC837XEMDS could replace it. Hence, get rid of CONFIG_MPC837XEMDS. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC837XEMDS.h | 1 - scripts/config_whitelist.txt |

  1   2   3   4   5   6   7   8   9   10   >