Re: [PATCH 083/149] board: lego: Remove and add needed includes

2024-05-01 Thread David Lechner
On 4/30/24 9:42 PM, Tom Rini wrote: > Remove from this board vendor directory and when needed > add missing include files directly. > > Signed-off-by: Tom Rini > --- > Cc: David Lechner > --- Acked-by: David Lechner

Re: [PATCH 4/6] legoev3: Migrate to DM_I2C

2022-06-28 Thread David Lechner
On 6/27/22 12:35 PM, Tom Rini wrote: Perform a basic migration of the calls in setup_serial_number() to DM so that we can switch to using DM_I2C on this platform. Cc: David Lechner Signed-off-by: Tom Rini --- Acked-by: David Lechner

[PATCH 4/4] configs: legoev3: disable non-Linux boot options

2021-01-11 Thread David Lechner
This disables booting to non-Linux OSes. This board is uncomfortably close to its 256K size limit, so every few KB saved helps. Signed-off-by: David Lechner --- configs/legoev3_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/legoev3_defconfig b/configs

[PATCH 3/4] configs: legoev3: disable CONFIG_NET

2021-01-11 Thread David Lechner
for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info. Signed-off-by: David Lechner

[PATCH 2/4] ARM: legoev3: drop bi_arch_number

2021-01-11 Thread David Lechner
This drops assigning bi_arch_number on LEGO MINDSTORMS EV3. This board never had its own unique number and since we are using device tree, we no longer need to pass an arch number to Linux. Signed-off-by: David Lechner --- board/lego/ev3/legoev3.c | 4 1 file changed, 4 deletions(-) diff

[PATCH 0/4] LEGO MINDSTORMS EV3 updates

2021-01-11 Thread David Lechner
This is a collection of a few updates/cleanups for LEGO MINDSTORMS EV3. David Lechner (4): ARM: legoev3: set serial# env var ARM: legoev3: drop bi_arch_number configs: legoev3: disable CONFIG_NET configs: legoev3: disable non-Linux boot options board/lego/ev3/legoev3.c | 89

[PATCH 1/4] ARM: legoev3: set serial# env var

2021-01-11 Thread David Lechner
This sets the serial# environmet variable instead of using ATAGs on LEGO MINDSTORMS EV3. Also fix some nomenclature while we are touching this code (Bluetooth address is not the same as MAC address, EEPROM version is not the same as board version). Signed-off-by: David Lechner --- board/lego

Re: [U-Boot] [PATCH] Convert CONFIG_MX_CYCLIC to Kconfig

2019-08-14 Thread David Lechner
On 8/14/19 7:54 AM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_MX_CYCLIC Signed-off-by: Adam Ford Acked-by: David Lechner ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] ARM: legoev3: convert to driver model

2019-05-28 Thread David Lechner
This converts LEGO MINDSTORMS EV3 to the driver model. MMC, SERIAL, SPI and SPI_FLASH are converted. The device tree contains only the minimal nodes required by U-Boot since the size of U-Boot is limited to 256K on this device. Signed-off-by: David Lechner --- arch/arm/dts/Makefile

Re: [U-Boot] [PATCH] configs/legoev3: define CONFIG_SKIP_LOWLEVEL_INIT

2019-05-28 Thread David Lechner
On 5/28/19 8:52 PM, Adam Ford wrote: On Tue, May 28, 2019 at 7:03 PM David Lechner wrote: This adds a define for CONFIG_SKIP_LOWLEVEL_INIT in the legoev3 config. On the EV3, U-Boot is loaded into RAM by another bootloader, so we don't need the lowlevel init in U-Boot. Signed-off-by: David

[U-Boot] [PATCH] configs/legoev3: define CONFIG_SKIP_LOWLEVEL_INIT

2019-05-28 Thread David Lechner
This adds a define for CONFIG_SKIP_LOWLEVEL_INIT in the legoev3 config. On the EV3, U-Boot is loaded into RAM by another bootloader, so we don't need the lowlevel init in U-Boot. Signed-off-by: David Lechner --- include/configs/legoev3.h | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 3/5] ARM: legoev3: disable networking

2018-05-19 Thread David Lechner
This disables networking related items in the config. The EV3 does not have any networking hardware, so this is wasted space. Signed-off-by: David Lechner <da...@lechnology.com> --- board/lego/ev3/legoev3.c | 4 +--- configs/legoev3_defconfig | 4 +--- include/configs/legoev3.h | 2 -- 3

[U-Boot] [PATCH 5/5] ARM: legoev3: update boot script to load uEnv.txt and .dtb

2018-05-19 Thread David Lechner
This updates the LEGO MINDSTORMS EV3 boot script to try loading a uEnv.txt file and a da850-lego-ev3.dtb device tree during boot. Signed-off-by: David Lechner <da...@lechnology.com> --- board/lego/ev3/README | 36 ++--- include/configs/legoev3.

[U-Boot] [PATCH 4/5] ARM: legoev3: remove unused configuration options

2018-05-19 Thread David Lechner
This removes the unused clock and RAM config options that were cargo- culted when this board was copied from the DA850 EVM. Signed-off-by: David Lechner <da...@lechnology.com> --- include/configs/legoev3.h | 54 --- 1 file changed, 54 deletions(-) diff

[U-Boot] [PATCH 2/5] ARM: legoev3: Move UART enable to early init

2018-05-19 Thread David Lechner
This moves the UART init for LEGO MINDSTORMS EV3 to board_early_init_f(). Some console messages were not being printed because the UART was not enabled until later in the init process. Signed-off-by: David Lechner <da...@lechnology.com> --- board/lego/ev3/legoev3.c | 10 +-

[U-Boot] [PATCH 1/5] ARM: legoev3: increase flash image sizes

2018-05-19 Thread David Lechner
This increases the kernel image to 4M and the rootfs image to 10M. It is getting hard to get a kernel image to fit in 3M. Signed-off-by: David Lechner <da...@lechnology.com> --- board/lego/ev3/README | 4 ++-- include/configs/legoev3.h | 2 +- 2 files changed, 3 insertions(+), 3 del

[U-Boot] [PATCH 0/5] ARM: legoev3: updates

2018-05-19 Thread David Lechner
This series contains some updates for LEGO MINDSTORMS EV3. There are a couple of cleanups, a fix for some console messages not printing and device tree support. David Lechner (5): ARM: legoev3: increase flash image sizes ARM: legoev3: Move UART enable to early init ARM: legoev3: disable

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread David Lechner
On 03/16/2018 01:26 AM, Mike Looijmans wrote: On 15-03-18 02:36, David Lechner wrote: commit 1601dd97edc6 ("davinci: omapl138_lcdk: increase PLL0 frequency") changed the PLL0 frequency to 456MHz, which is needed for the LCDC IP block. However, in doing so, it caused the PL

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread David Lechner
On 03/16/2018 04:26 AM, Sekhar Nori wrote: On Thursday 15 March 2018 08:02 PM, David Lechner wrote: Thanks for the tips. I've actually done exactly that (using my own SD card). However, these changes affect the u-boot SPL image only. I was able to put the regular u-boot.ais on the SD card

Re: [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX

2018-03-16 Thread David Lechner
On 03/16/2018 10:26 AM, Lokesh Vutla wrote: On Friday 16 March 2018 08:44 PM, David Lechner wrote: On 03/16/2018 03:52 AM, Lokesh Vutla wrote: Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for SOC_DA

Re: [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX

2018-03-16 Thread David Lechner
On 03/16/2018 03:52 AM, Lokesh Vutla wrote: Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for SOC_DA8XX, which broke OMAPL138 to boot. Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled DDR_INIT for

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-15 Thread David Lechner
On 03/15/2018 09:56 AM, Tom Rini wrote: On Thu, Mar 15, 2018 at 08:01:58PM +0530, Sekhar Nori wrote: On Thursday 15 March 2018 07:12 PM, Sekhar Nori wrote: On Thursday 15 March 2018 06:04 PM, Sekhar Nori wrote: Thanks for the patch and great description. It looks correct to me. Hopefully I

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-15 Thread David Lechner
On 03/15/2018 07:34 AM, Sekhar Nori wrote: Hi David, On Thursday 15 March 2018 07:06 AM, David Lechner wrote: commit 1601dd97edc6 ("davinci: omapl138_lcdk: increase PLL0 frequency") changed the PLL0 frequency to 456MHz, which is needed for the LCDC IP block. However, in doing so,

[U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-14 Thread David Lechner
Hz (within spec) ^ ^ ^ CLKIN PREDIV PLLM input to PLLDIVn = 456 / (0 + 1) = 456MHz (desired result) ^ ^ PLLOUT POSTDIV Fixes: 1601dd97edc6 ("davinci: omapl138_lcdk: increase PLL0 frequency") Signed-off-b

Re: [U-Boot] [PATCH V3] Convert CONFIG_SYS_DV_CLKMODE et al to Kconfig

2018-01-12 Thread David Lechner
CONFIG_SYS_DA850_PLL0_PLLDIV5 CONFIG_SYS_DA850_PLL0_PLLDIV7 CONFIG_SYS_DA850_PLL1_POSTDIV CONFIG_SYS_DA850_PLL1_PLLDIV1 CONFIG_SYS_DA850_PLL1_PLLDIV2 CONFIG_SYS_DA850_PLL1_PLLDIV3 Signed-off-by: Adam Ford <aford...@gmail.com> --- Reviewed-by: David Lechner <da...@lechn

Re: [U-Boot] [PATCH V2] Convert CONFIG_SYS_DV_CLKMODE et al to Kconfig

2018-01-11 Thread David Lechner
On 01/11/2018 01:33 PM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_SYS_DV_CLKMODE CONFIG_SYS_DA850_PLL0_POSTDIV CONFIG_SYS_DA850_PLL0_PLLDIV1 CONFIG_SYS_DA850_PLL0_PLLDIV2 CONFIG_SYS_DA850_PLL0_PLLDIV3 CONFIG_SYS_DA850_PLL0_PLLDIV4

Re: [U-Boot] [PATCH] Convert CONFIG_SYS_DV_CLKMODE et al to Kconfig

2018-01-11 Thread David Lechner
On 01/11/2018 12:36 PM, Adam Ford wrote: On Thu, Jan 11, 2018 at 12:11 PM, David Lechner <da...@lechnology.com> wrote: On 01/11/2018 10:06 AM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_SYS_DV_CLKMODE CONFIG_SYS_DA850_PLL0_P

Re: [U-Boot] [PATCH] Convert CONFIG_SYS_DV_CLKMODE et al to Kconfig

2018-01-11 Thread David Lechner
On 01/11/2018 10:06 AM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_SYS_DV_CLKMODE CONFIG_SYS_DA850_PLL0_POSTDIV CONFIG_SYS_DA850_PLL0_PLLDIV1 CONFIG_SYS_DA850_PLL0_PLLDIV2 CONFIG_SYS_DA850_PLL0_PLLDIV3 CONFIG_SYS_DA850_PLL0_PLLDIV4

Re: [U-Boot] [PATCH V5] Convert CONFIG_SOC_DA8XX et al to Kconfig

2018-01-11 Thread David Lechner
upport for the bootcounter in RAM CONFIG_BOOTCOUNT_I2C Other than the change above, Reviewed-by: David Lechner<da...@lechnology.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH V4] Convert CONFIG_SOC_DA8XX et al to Kconfig

2018-01-02 Thread David Lechner
On 01/02/2018 02:39 PM, Adam Ford wrote: On Tue, Jan 2, 2018 at 2:25 PM, David Lechner <da...@lechnology.com> wrote: On 01/02/2018 01:55 PM, Adam Ford wrote: On Tue, Jan 2, 2018 at 1:05 PM, David Lechner <da...@lechnology.com> wrote: On 01/02/2018 12:45 PM, Adam Ford wrote: T

Re: [U-Boot] [PATCH V4] Convert CONFIG_SOC_DA8XX et al to Kconfig

2018-01-02 Thread David Lechner
On 01/02/2018 01:55 PM, Adam Ford wrote: On Tue, Jan 2, 2018 at 1:05 PM, David Lechner <da...@lechnology.com> wrote: On 01/02/2018 12:45 PM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_SOC_DA8XX CONFIG_SOC_DA850 CONFIG_DA850_LO

Re: [U-Boot] [PATCH V4] Convert CONFIG_SOC_DA8XX et al to Kconfig

2018-01-02 Thread David Lechner
On 01/02/2018 12:45 PM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_SOC_DA8XX CONFIG_SOC_DA850 CONFIG_DA850_LOWLEVEL CONFIG_MACH_DAVINCI_DA850_EVM CONFIG_SYS_DA850_PLL_INIT CONFIG_SYS_DA850_DDR_INIT Signed-off-by: Adam Ford ---

Re: [U-Boot] [PATCH V3] Convert CONFIG_SOC_DA8XX et al to Kconfig

2018-01-02 Thread David Lechner
On 01/02/2018 07:45 AM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_SOC_DA8XX CONFIG_SOC_DA850 CONFIG_DA850_LOWLEVEL CONFIG_MACH_DAVINCI_DA850_EVM CONFIG_SYS_DA850_PLL_INIT CONFIG_SYS_DA850_DDR_INIT Signed-off-by: Adam Ford ---

Re: [U-Boot] [PATCH v2] Convert CONFIG_SOC_DA8XX et al to Kconfig

2017-12-30 Thread David Lechner
Missed the v2 (and wasn't subscribed to the U-Boot list), so the comments are mostly repeated. On 12/30/2017 06:47 AM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_SOC_DA8XX CONFIG_SOC_DA850 CONFIG_MACH_DAVINCI_DA850_EVM Signed-off-by: Adam Ford

[U-Boot] [PATCH] arm: Add support for LEGO MINDSTORMS EV3

2016-02-26 Thread David Lechner
This is based on the davinci da850evm. It can boot from either the on-board 16MB flash or from a microSD card. It also reads board information from an I2C EEPROM. The EV3 itself initally boots from write-protected EEPROM, so no u-boot SPL is needed. Signed-off-by: David Lechner <