[U-Boot] [RFC Patch V3] drivers: mmc: omap_hsmmc: Fix IO Buffer on OMAP36xx

2017-01-19 Thread Adam Ford
precompiler to only include it in a small handfull of OMAP36XX and 37XX boards using MMC1. V1: Original submission Signed-off-by: Adam Ford diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig index a71ce5f..e4bd87a 100644 --- a/configs/omap3_logic_defconfig +++ b

[U-Boot] [PATCH] arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703

2017-01-19 Thread Adam Ford
correctly display their maximum speed. Signed-off-by: Adam Ford diff --git a/arch/arm/include/asm/arch-omap3/omap.h b/arch/arm/include/asm/arch-omap3/omap.h index 417ff89..a70a426 100644 --- a/arch/arm/include/asm/arch-omap3/omap.h +++ b/arch/arm/include/asm/arch-omap3/omap.h @@ -230,6 +230,14

Re: [U-Boot] [PATCH] arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703

2017-01-20 Thread Adam Ford
On Fri, Jan 20, 2017 at 4:32 AM, Ladislav Michl wrote: > On Thu, Jan 19, 2017 at 02:04:11PM -0600, Adam Ford wrote: >> The check for OMAP3630/3730 only checks for 800MHz 3630/3730, but >> anything else is lumped into 36XX/37XX with an assumed 1GHz speed. >> >> Based on

Re: [U-Boot] i2c_set_bus_num freeze

2017-01-26 Thread Adam Ford
On Jan 26, 2017 11:44 AM, "Ran Shalit" wrote: Hello, I have some issue in u-boot trying to access bus #1. I can access bus #0, #2 with i2c dev 0/2 I can also access bus #0,1,2 from linux. But on trying to access i2c #1 in u-boot in hangs: The function i2c_set_bus_num get stuck . ret = i2c_

Re: [U-Boot] [PATCH] net: davinci_emac: convert to using the driver model

2019-06-03 Thread Adam Ford
On Mon, Jun 3, 2019 at 3:12 AM Bartosz Golaszewski wrote: > > sob., 1 cze 2019 o 05:24 Adam Ford napisał(a): > > > > On Fri, May 31, 2019 at 8:32 AM Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > Now that

Re: [U-Boot] [PATCH 0/4] nand: davinci: enable driver model for NAND

2019-06-06 Thread Adam Ford
On Thu, Jun 6, 2019 at 10:50 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > This series enables the driver model for NAND on davinci da850 boards. > > The first patch is a simple tweak for an unnecessarily exported function. > > The second patch extends the NAND driver to support

Re: [U-Boot] [PATCH 4/4] davinci: da850-evm: enable driver model for NAND

2019-06-07 Thread Adam Ford
driver populates all its child nodes, but we can't do > it in u-boot currently. > > Signed-off-by: Bartosz Golaszewski For the whole series... Tested-by: Adam Ford #da850-evm > --- > arch/arm/dts/da850-evm-u-boot.dtsi| 4 > configs/da850evm_defconfig| 1

[U-Boot] [RFC] drivers: dma: ti-edma3: Enable edma3-tpcc

2019-06-09 Thread Adam Ford
Enable edma3-tpcc controllers for future use with some Davinci devices. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-davinci/cpu.c b/arch/arm/mach-davinci/cpu.c index f97ad3fc74..e26365cdb1 100644 --- a/arch/arm/mach-davinci/cpu.c +++ b/arch/arm/mach-davinci/cpu.c @@ -91,6 +91,15 @@ int

Re: [U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties

2019-06-10 Thread Adam Ford
On Sun, Jun 9, 2019 at 3:55 PM Lukasz Majewski wrote: > > This file setups UART5 based serial to be used as pre-relocation > console in the U-Boot proper. > > On purpose pinux configuration is omitted here as it has been already > done in SPL. For early pre-relocation code we only need the serial

[U-Boot] [PATCH] pinctrl: pinctrl-single: Add 'pinctrl-single, bits' support

2019-06-10 Thread Adam Ford
The TI Davinci (da850/l138/am1808) use pinctrl-single,bits for pinmuxing peripherals. This patch allosw the pinctrl-single driver to parse the pinctrl-single,bits options and correctly setup devices. Signed-off-by: Adam Ford diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl

[U-Boot] [PATCH] ARM: davinci: da850: Manual pinmux only when PINCTRL not available

2019-06-10 Thread Adam Ford
able (only during SPL). If the code ever shrinks enough to support PINCTRL in SPL, a lot of this can go away. This also remove some manual pinmuxing not needed by SPL to give SPL a little more breathing room. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinc

[U-Boot] [PATCH] ARM: dts: da850: Resync with Linux 5.1.9

2019-06-11 Thread Adam Ford
The da850.dtsi file had some changes. This patch pulls in the changes from Kernel 5.1.9 Signed-off-by: Adam Ford diff --git a/arch/arm/dts/da850.dtsi b/arch/arm/dts/da850.dtsi index 47aa53ba6b..559659b399 100644 --- a/arch/arm/dts/da850.dtsi +++ b/arch/arm/dts/da850.dtsi @@ -476,7 +476,7

[U-Boot] [PATCH] ARM: dts: logicpd-som-lv: Resync with Kernel 5.1.9

2019-06-11 Thread Adam Ford
The MMC card-detect pin was incorrectly defined which was fixed. This patch resync's the dts and removes the u-boot specific fix. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-som-lv-35xx-devkit-u-boot.dtsi b/arch/arm/dts/logicpd-som-lv-35xx-devkit-u-boot.dtsi index b3da8

Re: [U-Boot] [PATCH] net: davinci_emac: convert to using the driver model

2019-06-12 Thread Adam Ford
On Mon, Jun 3, 2019 at 10:29 AM Bartosz Golaszewski wrote: > > pon., 3 cze 2019 o 15:03 Adam Ford napisał(a): > > > > On Mon, Jun 3, 2019 at 3:12 AM Bartosz Golaszewski wrote: > > > > > > sob., 1 cze 2019 o 05:24 Adam Ford napisał(a): > > > >

[U-Boot] [PATCH] ARM: dts: logicpd som-lvs and torpedos: Shrink SPL DTB

2019-06-12 Thread Adam Ford
Since we have limited resources in SPL, it is the best interest to keep the SPL as small as possible and that includes the DTB. There are a few items in the device tree that can be removed, because these boards don't use them. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-s

[U-Boot] [PATCH] ARM: am3517-evm: Enable DM_PMIC and DM_REGULATOR functions

2019-06-14 Thread Adam Ford
The PBIAS regulator is available on OMAP3's, and it's shared on the AM35, so this patch enables that in U-Boot along with GPIO based regulators. Signed-off-by: Adam Ford diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig index b9f59f3291..f61a86b115 100644 ---

[U-Boot] [PATCH] ARM: am3517-evm: Remove manual ethernet reset code

2019-06-22 Thread Adam Ford
The reset line going to the ethernet controller is controlled by a global reset controlling multiple peripherals. There is no need to manually invoke the reset. Signed-off-by: Adam Ford diff --git a/board/logicpd/am3517evm/am3517evm.c b/board/logicpd/am3517evm/am3517evm.c index 10031a4801

[U-Boot] [PATCH] ARM: da850-evm: Remove duplicate UART initialization

2019-06-23 Thread Adam Ford
The Low Level init functions start the UART, so it doesn't need to happen during board_init. This patch removes it from board_init. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index a90b7a3538..c5404e6063 100644 --- a/

[U-Boot] [PATCH] ARM: da850-evm: Remove repeated pinmuxing calls

2019-06-23 Thread Adam Ford
arch_cpu_init() initializes the pinmuxing which is called fairly early in the start sequences, so the board_init function doesn't need to do it again. This patch removes the call from board_init. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8

Re: [U-Boot] [PATCH] net: davinci_emac: convert to using the driver model

2019-06-24 Thread Adam Ford
On Mon, Jun 24, 2019 at 7:07 AM Bartosz Golaszewski wrote: > > śr., 12 cze 2019 o 18:46 Adam Ford napisał(a): > > > > On Mon, Jun 3, 2019 at 10:29 AM Bartosz Golaszewski wrote: > > > > > > pon., 3 cze 2019 o 15:03 Adam Ford napisał(a): > > > >

Re: [U-Boot] [PATCH v2] net: davinci_emac: convert to using the driver model

2019-06-24 Thread Adam Ford
i_emac. > > Signed-off-by: Bartosz Golaszewski Tested-by: Adam Ford #am3517-evm & da850-evm > --- > v1 -> v2: > - moved the packetp assignment to the top of the recv() callback which fixes > a crash on am3517_evm > - dropped a redundant call to net_process_received_pack

[U-Boot] [PATCH] ARM: am3517-evm: Migrate to SPL_OF_CONTROL

2019-06-24 Thread Adam Ford
minicom so users may need to switch the minicom terminal emulation to ANSI from VT102 due to the junk that gets pushed out of the UART on startup. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517-evm-u-boot.dtsi b/arch/arm/dts/am3517-evm-u-boot.dtsi index 59df819f9d..d5a4ce97d1 100644

Re: [U-Boot] [PATCH V2] usb: ehci-mx6: Fix bus enumeration for DM case

2019-06-24 Thread Adam Ford
upposed to see and/if what's observable since I have been on vacation, I'm still catching up on e-mails. adam > Cc: Abel Vesa > Cc: Adam Ford > Cc: Fabio Estevam > Cc: Ludwig Zenz > Cc: Lukasz Majewski > Cc: Peng Fan > Cc: Stefano Babic > Cc: Vagrant Casca

Re: [U-Boot] [v8, 0/5] Split fsl_esdhc driver for i.MX

2019-06-25 Thread Adam Ford
- Added Reviewed-by. > Changes for v8: > - Moved CONFIG_FSL_ESDHC into defconfig for > colibri-imx8x/ls1028a/apalis-imx8 > platforms introduced recently. > - Applied eSDHC i.MX driver to colibri-imx8x/apalis-imx8 platforms. > I applied the series man

[U-Boot] [PATCH] ARM: am3517-evm: Remove non-DM legacy code

2019-06-25 Thread Adam Ford
With both SPL and U-Boot now supporting DM, we can start removing legacy code. This patch removes the legacy MMC initalization and legacy I2C initialization since both are now available via DM and device tree. Signed-off-by: Adam Ford diff --git a/board/logicpd/am3517evm/am3517evm.c b/board

[U-Boot] OMAP3+ EHCI DM_USB Conversion

2019-06-26 Thread Adam Ford
Looking at the OMAP3 family, there is a single host controller called usbhshost. It has the option of having up to 3 ports. Under usbhshost, there are sub-nodes which have ohci and ehci. I am trying to port the EHCI controller to DM_USB to pull in the device tree info. I am fairly certain the e

[U-Boot] [PATCH] ARM: am3517-evm: Remove undefined pinmuxing

2019-06-26 Thread Adam Ford
The pinmux controller on AM3517 is the same as OMAP3, however according to the AM3517 TRM, there are no valid entries between 48002180 and 48002210, which are supported by other OMAP3 devices. This patch removes the references undefined pin muxing. Signed-off-by: Adam Ford diff --git a/board

Re: [U-Boot] [PATCH V2] usb: ehci-mx6: Fix bus enumeration for DM case

2019-06-26 Thread Adam Ford
however this should be done in the next > > release and depends on iMX clock driver patches. > > > > Signed-off-by: Marek Vasut > > Cc: Abel Vesa > > Cc: Adam Ford Tested-by: Adam Ford #im6q_logic > > Cc: Fabio Estevam > > Cc: Ludwig Zenz >

[U-Boot] [PATCH] usb: ehci-omap: Add Support DM_USB and OF_CONTROL

2019-06-30 Thread Adam Ford
er is completed and the phandle reference is made. Signed-off-by: Adam Ford diff --git a/arch/arm/include/asm/ehci-omap.h b/arch/arm/include/asm/ehci-omap.h index 1549f7bf21..f970bba937 100644 --- a/arch/arm/include/asm/ehci-omap.h +++ b/arch/arm/include/asm/ehci-omap.h @@ -123,6 +123,7 @@ s

[U-Boot] [PATCH 2/2] ARM: omap3_logic & omap35_logic: Disable OMAP EHCI for Torpedo

2019-06-30 Thread Adam Ford
The OMAP35 and AM/DM37 Torpedo boards do not have a USB tranceiver connected to the USB host port, so this patch removes it from the defconfig files. Signed-off-by: Adam Ford diff --git a/configs/omap35_logic_defconfig b/configs/omap35_logic_defconfig index 3a529e8836..055a1bf489 100644 --- a

[U-Boot] [PATCH 1/2] ARM: omap3_logic: Enable OMAP EHCI support for SOM-LV Boards

2019-06-30 Thread Adam Ford
The SOM-LV boards support the OMAP EHCI driver using port 2. With the driver updated to support device tree, this patch sets the corresponding pin muxing for the tranceiver as well as the reset pin. Signed-off-by: Adam Ford diff --git a/board/logicpd/omap3som/omap3logic.h b/board/logicpd

Re: [U-Boot] [PATCH] ARM: am3517-evm: Remove undefined pinmuxing

2019-07-01 Thread Adam Ford
On Wed, Jun 26, 2019 at 12:08 PM Adam Ford wrote: > > The pinmux controller on AM3517 is the same as OMAP3, however > according to the AM3517 TRM, there are no valid entries between > 48002180 and 48002210, which are supported by other OMAP3 devices. > This patch removes the refer

[U-Boot] [PATCH] ARM: am3517_evm: Fix pin muxing to enable EHCI Host in the future

2019-07-01 Thread Adam Ford
This patch enables the pinmuxing to support gpio_57 for phy reset and fixes the pinmuxing for the ECHI tranceiver. The clocks don't appear to by fully enabled yet, so OMAP-EHCI on am3517 is still not yet working, but we're one step closer. Signed-off-by: Adam Ford diff --git a/boa

[U-Boot] [PATCH] ARM: da850evm: Fix broken SPI Flash

2019-04-17 Thread Adam Ford
onfig") Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index 4b09ba10a6..745ae2b4b1 100644 --- a/configs/da850evm_defconfig +++ b/configs/da850evm_defconfig @@ -55,6 +55,7 @@ CONFIG_DM_MMC=y CONFIG_MTD_DEVICE=y CONFIG_DM_SPI_FLASH=y CONFIG_S

[U-Boot] [PATCH] ARM: da850evm: Fix TI boot scripts for MMC

2019-04-17 Thread Adam Ford
from MMC. With this patch, these scripts should work again, and by default they point to mmc 0, partition 2, and the dtb file exists in a /boot directory on partition 2. Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index 745ae2b4b1..ee39b0b1bc

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-22 Thread Adam Ford
On Mon, Apr 22, 2019 at 9:00 PM Peng Fan wrote: > > Hi Fabio > > > Subject: Booting MX6 via Serial Download after DM conversion > > > > Hi, > > > > Has anyone managed to boot i.MX6 via serial download protocol after the > > conversion to DM? > I 'think' the DM conversion requires the USB Driver t

[U-Boot] [PATCH 1/4] usb: ohci: Re-enable commented out delay

2019-04-28 Thread Adam Ford
There is a delay function that was commented out. This patch re-enables it, because it will be needed for da850 ohci support. Signed-off-by: Adam Ford diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 3b6f889f7b..2b0df88f49 100644 --- a/drivers/usb/host/ohci-hcd.c

[U-Boot] (no subject)

2019-04-28 Thread Adam Ford
From 323b5ea0eec7aac821eb2319ca0debda711e8bec Mon Sep 17 00:00:00 2001 From: Adam Ford Date: Sun, 28 Apr 2019 16:42:42 -0500 Subject: [PATCH 0/4] Enable Host OHCI USB controller wtih DM_USB This series enables some commented-out code, resurrects some older code and enables DA850 OHCI USB Host

[U-Boot] [PATCH 2/4] ARM: davinci: Remove unused functions from header

2019-04-28 Thread Adam Ford
There are a few functions defined in the header file, but they are not referenced by any Davinci code. In order to make a general function in the future with static function declarations, this patch will remove the references all together. Signed-off-by: Adam Ford diff --git a/arch/arm/mach

[U-Boot] [PATCH 3/4] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-28 Thread Adam Ford
This patch reuses some former code for the hawkboard, combines it with some some similar DM_USB compatible code for the OHCI driver, and enables the use of the da850's OHCI controller with DM_USB compatibility. Signed-off-by: Adam Ford diff --git a/drivers/usb/host/Kconfig b/drivers/usb

[U-Boot] [PATCH 4/4] ARM: da850evm: Enable da850-ohci USB host controller

2019-04-28 Thread Adam Ford
The DA850 EVM has one USB 1.1 OHCI Host controller. With the host controller now support DM_USB, this patch enables the respective functions for the da850evm. Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index ee39b0b1bc..1845813b2e 100644 --- a

Re: [U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Adam Ford
On Tue, Apr 30, 2019 at 2:39 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > The DM* family of SOCs is no longer supported. We now support the > omap-l138 lcdk board and Lego EV3 platform. Reflect those changes Don't forget about the da850 EVM > in the README. > > Signed-off-by:

Re: [U-Boot] [PATCH 3/4] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Adam Ford
On Mon, Apr 29, 2019 at 4:54 AM Marek Vasut wrote: > > On 4/28/19 11:45 PM, Adam Ford wrote: > > This patch reuses some former code for the hawkboard, combines it > > with some some similar DM_USB compatible code for the OHCI driver, > > and enables the use of the da85

[U-Boot] [PATCH V2 1/2] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Adam Ford
This patch reuses some former code for the hawkboard, combines it with some some similar DM_USB compatible code for the OHCI driver, and enables the use of the da850's OHCI controller with DM_USB compatibility. Signed-off-by: Adam Ford --- V2: Replace timeout with get_timer and read/m

[U-Boot] [PATCH V2 0/2] Enable DA830 OHCI USB Controller with DM_USB

2019-04-30 Thread Adam Ford
This patch enables the DA830 USB Host controller with DM_USB. Adam Ford (2): usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support ARM: da850evm: Enable da850-ohci USB host controller configs/da850evm_defconfig| 7 +- drivers/usb/host/Kconfig | 5 ++ drivers/usb/host

[U-Boot] [PATCH 2/2] ARM: da850evm: Enable da850-ohci USB host controller

2019-04-30 Thread Adam Ford
The DA850 EVM has one USB 1.1 OHCI Host controller. With the host controller now support DM_USB, this patch enables the respective functions for the da850evm. Signed-off-by: Adam Ford --- V2: No changes diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index ee39b0b1bc

[U-Boot] [PATCH] ARM: dts: logicpd-som-lv: Fix MMC1 card detect

2019-04-30 Thread Adam Ford
r the linux adoption and then backporting. Fixes: 5448ff33f281 ("ARM: DTS: Resync Logic PD SOM-LV 37xx devkit with Linux 4.18-RC4") Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-som-lv-baseboard.dtsi b/arch/arm/dts/logicpd-som-lv-baseboard.dtsi index 4990ed90dc..35247665

[U-Boot] [PATCH] usb: ohci: ohci-da8xx: Cleanup Error handling and fix flags

2019-05-07 Thread Adam Ford
Per feedback from Marek, he suggested better handling and to enable DM_FLAG_OS_PREPARE, this patch re-orders some of the error checking, and errors returns the error code right away and also sets DM_FLAG_OS_PREPARE. Signed-off-by: Adam Ford diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers

[U-Boot] [PATCH] ARM: DTS: imx6q-logicpd: Resync with Linux 5.1

2019-03-13 Thread Adam Ford
Resync imx6q-logicpd with Kernel 5.1 Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx6-logicpd-baseboard.dtsi b/arch/arm/dts/imx6-logicpd-baseboard.dtsi index 303c09334b..fb01fa6e42 100644 --- a/arch/arm/dts/imx6-logicpd-baseboard.dtsi +++ b/arch/arm/dts/imx6-logicpd-baseboard.dtsi

Re: [U-Boot] [PATCH] ARM: DTS: imx6q-logicpd: Resync with Linux 5.1

2019-03-13 Thread Adam Ford
On Wed, Mar 13, 2019 at 8:03 AM Fabio Estevam wrote: > > On Wed, Mar 13, 2019 at 10:01 AM Adam Ford wrote: > > > > Resync imx6q-logicpd with Kernel 5.1 > > Patch looks good to me. Only nit is that kernel 5.1 has not been > released yet :-) These files came from

[U-Boot] [PATCH] ARM: imx6logic: Stop overwriting fdt_file if manually set

2019-03-13 Thread Adam Ford
The board file uses the processor type to determine what dtb file is set. Unfortunately, if the user wants to manually set this, it get gets overwritten upon boot. This patch adds a check to see if the value is already set and only changes it if the value is empty. Signed-off-by: Adam Ford

Re: [U-Boot] i.MX6 Code Consolidation suggestion/question

2019-03-13 Thread Adam Ford
On Mon, Feb 25, 2019 at 7:52 AM Fabio Estevam wrote: > > Hi Adam, > > On Mon, Feb 25, 2019 at 10:09 AM Adam Ford wrote: > > > > I am looking into the SPL code to boot the imx6_logic board and > > comparing its board file to other i.MX6 boards. > > > > Ne

[U-Boot] [PATCH] ARM: da850evm: Remove legacy MMC code

2019-03-15 Thread Adam Ford
With the migration to DM in SPL and the DT support, the old legacy code is no longer neaded, so this patch removes it Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index e8ec553f99..1bc26828bf 100644 --- a/board/davinci/da8xxevm

[U-Boot] [PATCH] ARM: am3517_evm: Add spl_start_uboot for Falcon Mode

2019-03-31 Thread Adam Ford
t;ARM: am3517_evm: Enable Falcon Mode") Signed-off-by: Adam Ford diff --git a/board/logicpd/am3517evm/am3517evm.c b/board/logicpd/am3517evm/am3517evm.c index 6f728398c3..10031a4801 100644 --- a/board/logicpd/am3517evm/am3517evm.c +++ b/board/logicpd/am3517evm/am3517evm.c @@ -3

[U-Boot] burning eMMC from sdcard.img in U-Boot

2019-04-02 Thread Adam Ford
I have a board with eMMC storage. I've been trying to find an elegant solution to burning the sdcard image to eMMC. I looked at using the USB mass storage gadget, but it's a bit slow. I was hoping to avoid having to boot all the way into Linux to do it, but the sdcard.img file is larger than the

[U-Boot] [PATCH] usb: ehci-mx6: Use common code to extract dr_mode

2019-04-02 Thread Adam Ford
There exists code in drivers/common/common.c to read the dr_mode from the device tree. This patch converts this driver to use that function to initialize the driver. Signed-off-by: Adam Ford diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 948394709f..e24f5ad14a

Re: [U-Boot] [PATCH] ARM: imx6q_logic: Correct phy fixup for broken ethernet

2019-04-03 Thread Adam Ford
On Tue, Apr 2, 2019 at 11:58 PM Jagan Teki wrote: > > Hi Adam, > > On Sun, Jan 13, 2019 at 5:02 AM Adam Ford wrote: > > > > The Ethernet has been broken for some time. This patch unifies > > this board with a few others that use a similar approach to > &

[U-Boot] [PATCH V2] usb: ehci-mx6: Use common code to extract dr_mode

2019-04-03 Thread Adam Ford
There exists code in drivers/common/common.c to read the dr_mode from the device tree. This patch converts this driver to use that function to initialize the driver. Signed-off-by: Adam Ford --- V2: Fix issue where boards without dr_mode set would hang. This makes makes the code behave

[U-Boot] [RFC] usb: ehci-mx6: Create MISC USB device wrapper

2019-04-03 Thread Adam Ford
ff-by: Adam Ford diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index ba1e6bfa43..25c7e2d6a1 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -134,6 +134,7 @@ config USB_EHCI_MARVELL config USB_EHCI_MX6 bool "Support for i.MX6 on-chi

Re: [U-Boot] [RFC] usb: ehci-mx6: Create MISC USB device wrapper

2019-04-03 Thread Adam Ford
On Wed, Apr 3, 2019 at 10:17 AM Adam Ford wrote: > > In preparation to support DM_USB_GADGET, this creates a misc > device which binds the host. This is necessary because > U_BOOT_DRIVER(usb_mx6) is currently hard coded to UCLASS_USB > and if we want to support UCLASS_USB_GADGE

[U-Boot] [PATCH] ARM: imx6q_logic: Allow storing environment in FAT on eMMC

2019-04-11 Thread Adam Ford
Some variations of the imx6q_logic board have eMMC instead of NAND. Rather than creating a separate defconfig, this patch adds the ability to read/write to eMMC (mmc 0:1) when NAND doesn't exist. Signed-off-by: Adam Ford diff --git a/configs/imx6q_logic_defconfig b/co

[U-Boot] [PATCH] ARM: imx6q_logic: Allow optional arguments to cmd line

2019-04-11 Thread Adam Ford
This adds an extra, optional environmental variable called 'optargs' which if enabled allow additional parameters to be passed to the kernel (ie, quiet, cma=128M, etc.) Each script that setups the bootargs will just append this. Signed-off-by: Adam Ford diff --git a/include/configs/im

[U-Boot] [PATCH] ARM: omap3_logic: Enable UUID

2019-04-11 Thread Adam Ford
Instead of hardcoding the mmcroot to /dev/mmcblkX, use the UUID method. Signed-off-by: Adam Ford diff --git a/configs/omap35_logic_defconfig b/configs/omap35_logic_defconfig index 5b5f3eb7b4..9a1596c89b 100644 --- a/configs/omap35_logic_defconfig +++ b/configs/omap35_logic_defconfig @@ -30,6

Re: [U-Boot] [PATCH] ARM: DTS: imx6q-logicpd: Resync with Linux 5.1

2019-05-10 Thread Adam Ford
On Fri, May 10, 2019 at 7:04 AM Fabio Estevam wrote: > > On Fri, May 10, 2019 at 9:01 AM Adam Ford wrote: > > > Linux 5.1 has been released now. Can we apply this to U-Boot? > > You need to copy Stefano on imx related patches. Sorry. I thought I had done that. I wish

Re: [U-Boot] [PATCH] ARM: DTS: imx6q-logicpd: Resync with Linux 5.1

2019-05-10 Thread Adam Ford
On Wed, Mar 13, 2019 at 8:17 AM Adam Ford wrote: > > On Wed, Mar 13, 2019 at 8:03 AM Fabio Estevam wrote: > > > > On Wed, Mar 13, 2019 at 10:01 AM Adam Ford wrote: > > > > > > Resync imx6q-logicpd with Kernel 5.1 > > > > Patch looks good

Re: [U-Boot] [PATCH] net: davinci_emac: use driver model (CONFIG_DM_ETH)

2019-05-10 Thread Adam Ford
On Fri, May 10, 2019 at 7:22 AM Bartosz Golaszewski wrote: > > czw., 9 maj 2019 o 20:48 Joe Hershberger napisał(a): > > > > On Tue, Apr 30, 2019 at 11:04 AM Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > Add support for CONFIG_DM_ETH to the davinci_emac driver. Opt

[U-Boot] [PATCH] ARM: omap3_logic/omap35_logic: Enable GPIO in SPL

2019-05-15 Thread Adam Ford
The MMC controller enabled card detect, so this patch enables the GPIO driver in SPL to support it. Signed-off-by: Adam Ford diff --git a/configs/omap35_logic_defconfig b/configs/omap35_logic_defconfig index ea27731da3..3a529e8836 100644 --- a/configs/omap35_logic_defconfig +++ b/configs

[U-Boot] AM3517 SPL fails with CONFIG_DM enabled

2019-05-15 Thread Adam Ford
I am trying to add DM support in SPL along with device tree support similar to how it's being done for the omap3_logic boards. Unfortunately, I think something is going wrong in the initialization with CONFIG_DM enabled for SPL because I get no text data, and it doesn't appear to boot. I tried ena

Re: [U-Boot] AM3517 SPL fails with CONFIG_DM enabled

2019-05-15 Thread Adam Ford
On Wed, May 15, 2019 at 1:25 PM Simon Goldschmidt wrote: > > Am 15.05.2019 um 20:12 schrieb Adam Ford: > > I am trying to add DM support in SPL along with device tree support > > similar to how it's being done for the omap3_logic boards. > > Unfortunately, I think so

[U-Boot] [PATCH] ARM: da850evm: Enable block cache during SPL

2019-05-15 Thread Adam Ford
There appears to be enough RAM to support cache in SPL. This pach enables block cache in SPL. Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index 09c6147e2d..8c16d5c4f5 100644 --- a/configs/da850evm_defconfig +++ b/configs/da850evm_defconfig

Re: [U-Boot] [PATCH] ARM: imx6logic: Stop overwriting fdt_file if manually set

2019-05-15 Thread Adam Ford
On Wed, Mar 13, 2019 at 10:49 AM Adam Ford wrote: > The board file uses the processor type to determine what dtb file > is set. Unfortunately, if the user wants to manually set this, > it get gets overwritten upon boot. This patch adds a check to > see if the value is already

Re: [U-Boot] [PATCH v4 12/13] clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: 5.0-rc3)

2019-05-17 Thread Adam Ford
On Thu, May 16, 2019 at 9:48 PM Bin Meng wrote: > > Hi Lukasz, > > On Fri, May 17, 2019 at 6:16 AM Lukasz Majewski wrote: > > > > This commit brings the files from Linux kernel to provide clocks support > > as it is used on the Linux kernel with common clock framework [CCF] setup. > > Two issue

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-17 Thread Adam Ford
On Fri, May 17, 2019 at 7:36 AM Sekhar Nori wrote: > > Hi Adam, > > MMC/SD boot is broken on OMAP-L138 LCDK. This is since v2018.11. > v2018.09 is fine. > > The first breakage occurred with commit 21af33ed0319 ("ARM: davinci: > omapl138_lcdk: Enable DM_MMC"). This commit moved to DM_MMC for U-Boot

[U-Boot] [RFC] spl: imx6: Let spl_boot_device return USDHC1 or USDHC2

2019-05-17 Thread Adam Ford
OL. This patch will check the register and return either MMC1 or MMC2. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 9f1e0f6a72..1f230aca33 100644 --- a/arch/arm/mach-imx/spl.c +++ b/arch/arm/mach-imx/spl.c @@ -24,6 +24,7 @@ u32 spl_b

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 4:09 AM Sekhar Nori wrote: > > On 17/05/19 6:34 PM, Adam Ford wrote: > > On Fri, May 17, 2019 at 7:36 AM Sekhar Nori wrote: > >> > >> Hi Adam, > >> > >> MMC/SD boot is broken on OMAP-L138 LCDK. This is since v2018.11. >

Re: [U-Boot] DM for ci_udc

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 7:13 AM Schrempf Frieder wrote: > > Hi Sven, > > On 06.05.19 12:12, Sven Schwermer wrote: > > Hi, > > > > I’m running into linking issues when enabling CONFIG_DM_USB_GADGET with > > CONFIG_CI_UDC because dm_usb_gadget_handle_interrupts is not available. > > That made me l

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 7:38 AM Sekhar Nori wrote: > > On 20/05/19 5:55 PM, Adam Ford wrote: > > What about adding a memset function to the end of spl_board_init() so > > after arch_cpu_init() is called,and after preloader_consol_init() is > > called, we clear BSS? I ra

Re: [U-Boot] [PATCH 0/5] arm: remove leftover code for dm* SoCs

2019-05-20 Thread Adam Ford
On Mon, Apr 29, 2019 at 11:37 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Commit 6761946fb716 ("arm: Remove unmaintained davinci boards") removed > support for certain DaVinci platforms. We still want to support the > da850 chips though and I'm currently working on converting

[U-Boot] [PATCH] davinci: spl: Create board_init_f for explicit initialization

2019-05-20 Thread Adam Ford
means that CONFIG_SPL_BOARD_INIT can be removed from the defconfig Suggested-by: Sekhar Nori Signed-off-by: Adam Ford diff --git a/arch/arm/mach-davinci/spl.c b/arch/arm/mach-davinci/spl.c index 103639e347..05c78f1801 100644 --- a/arch/arm/mach-davinci/spl.c +++ b/arch/arm/mach-davinci/spl.c

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 10:00 AM Adam Ford wrote: > > On Mon, May 20, 2019 at 7:38 AM Sekhar Nori wrote: > > > > On 20/05/19 5:55 PM, Adam Ford wrote: > > > What about adding a memset function to the end of spl_board_init() so > > > after arch_cpu_init() is ca

Re: [U-Boot] [PATCH] davinci: spl: Create board_init_f for explicit initialization

2019-05-21 Thread Adam Ford
On Tue, May 21, 2019 at 7:52 AM Sekhar Nori wrote: > > On 21/05/19 1:05 AM, Adam Ford wrote: > > The arch_cpu_init() and preloader_console_init() functions > > were not getting called until board_init_r() as part of the > > spl_board_init() functions. This patc

Re: [U-Boot] [PATCH] davinci: spl: Create board_init_f for explicit initialization

2019-05-21 Thread Adam Ford
On Tue, May 21, 2019 at 7:59 AM Adam Ford wrote: > > On Tue, May 21, 2019 at 7:52 AM Sekhar Nori wrote: > > > > On 21/05/19 1:05 AM, Adam Ford wrote: > > > The arch_cpu_init() and preloader_console_init() functions > > > were not getting called

Re: [U-Boot] [PATCH 2/2] ARM: davinci: SPL: fix BSS initialization

2019-05-21 Thread Adam Ford
On Tue, May 21, 2019 at 10:09 AM Sekhar Nori wrote: > > U-Boot README recommends initializing SDRAM in board_init_f(). DA850 > was doing it as part of board_init_r() (through call to spl_board_init() > which calls arch_cpu_init() which calls da850_ddr_setup()) > > This worked fine till commit 15b8

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-23 Thread Adam Ford
On Thu, May 23, 2019 at 12:59 PM Fabio Estevam wrote: > > Hi Marek, > > On Thu, May 23, 2019 at 2:54 PM Marek Vasut wrote: > > > Why do you need to load fitImage via SDP btw ? > > Let's suppose a i.MX6 board that boots from eMMC is bricked and we > need to load a new U-Boot to repair it. > > imx_

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-23 Thread Adam Ford
On Thu, May 23, 2019 at 1:35 PM Fabio Estevam wrote: > > Hi Adam, > > On Thu, May 23, 2019 at 3:28 PM Adam Ford wrote: > > > I have been following this thread, because I have been working through > > attempting to migrate the imx6q_logic board to SPL_OF_CONTRO

[U-Boot] [PATCH 2/3] ARM: imx6q_logic: Enable SPL_DM with SPL_OF_CONTROL

2019-05-23 Thread Adam Ford
With the spl code correctly returning either MMC1 or MMC2, this board can not boot either from internal eMMC (MMC1) or the uSD card on the baseboard (MMC2) using the device tree. Signed-off-by: Adam Ford diff --git a/configs/imx6q_logic_defconfig b/configs/imx6q_logic_defconfig index 0bb2fc6bbf

[U-Boot] [PATCH 1/3] spl: imx6: Let spl_boot_device return USDHC1 or USDHC2

2019-05-23 Thread Adam Ford
OL. This patch will check the register and return either MMC1 or MMC2. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 9f1e0f6a72..1f230aca33 100644 --- a/arch/arm/mach-imx/spl.c +++ b/arch/arm/mach-imx/spl.c @@ -24,6 +24,7 @@ u32 spl_b

[U-Boot] [PATCH 3/3] ARM: imx6q_logic: With SPL_OF_CONTROL enabled, remove MMC init

2019-05-23 Thread Adam Ford
Since the board uses SPL_OF_CONTROL now, we don't need to explicitly initialize the MMC driver, but we still need to pinmux the corresponding pins. This patch removes the initialization code and leave just the muxing behind. Signed-off-by: Adam Ford diff --git a/board/logicpd/imx6/imx6lo

Re: [U-Boot] [PATCH 2/2] ARM: davinci: SPL: fix BSS initialization

2019-05-24 Thread Adam Ford
On Fri, May 24, 2019 at 5:10 AM Sekhar Nori wrote: > > On 21/05/19 9:01 PM, Adam Ford wrote: > > On Tue, May 21, 2019 at 10:09 AM Sekhar Nori wrote: > >> > >> U-Boot README recommends initializing SDRAM in board_init_f(). DA850 > >> was doing it as

Re: [U-Boot] [PATCH 4/4] davinci: omapl138-lcdk: enable driver-model in SPL

2019-05-28 Thread Adam Ford
On Tue, May 28, 2019 at 2:58 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Enable CONFIG_SPL_DM and enable the driver model for serial by defining > an appropriate device in the board file for da850-lcdk. > > Signed-off-by: Bartosz Golaszewski > --- > board/davinci/da8xxevm/om

Re: [U-Boot] [PATCH v2 2/2] ARM: davinci: SPL: fix BSS initialization

2019-05-28 Thread Adam Ford
On Mon, May 27, 2019 at 6:46 AM Sekhar Nori wrote: > > U-Boot README recommends initializing SDRAM in board_init_f(). DA850 > was doing it as part of board_init_r() (through call to spl_board_init() > which calls arch_cpu_init() which calls da850_ddr_setup()) > > This worked fine till commit 15b8c

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

2019-05-28 Thread Adam Ford
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 Lechner > --- > include/configs

Re: [U-Boot] [PATCH 4/4] davinci: omapl138-lcdk: enable driver-model in SPL

2019-05-29 Thread Adam Ford
On Wed, May 29, 2019 at 4:40 AM Bartosz Golaszewski wrote: > > wt., 28 maj 2019 o 17:05 Adam Ford napisał(a): > > > > On Tue, May 28, 2019 at 2:58 AM Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > Enable C

Re: [U-Boot] [PATCH v2 2/2] ARM: davinci: SPL: fix BSS initialization

2019-05-29 Thread Adam Ford
On Wed, May 29, 2019 at 8:13 AM Sekhar Nori wrote: > > On 28/05/19 8:44 PM, Adam Ford wrote: > >> -void spl_board_init(void) > >> +void board_init_f(ulong dummy) > >> { > > > The da850 uses the device tree to get the serial port information, and > &g

Re: [U-Boot] [PATCH 4/4] davinci: omapl138-lcdk: enable driver-model in SPL

2019-05-29 Thread Adam Ford
On Wed, May 29, 2019 at 8:23 AM Bartosz Golaszewski wrote: > > śr., 29 maj 2019 o 15:04 Adam Ford napisał(a): > > > > On Wed, May 29, 2019 at 4:40 AM Bartosz Golaszewski wrote: > > > > > > wt., 28 maj 2019 o 17:05 Adam Ford napisał(a): > > > >

[U-Boot] [PATCH] ARM: da850evm: Fix reading MAC from SPI

2019-05-29 Thread Adam Ford
The MAC address is located at at the last 64K of SPI Flash, and it's 6 bytes long. This patch corrects both the length and starting byte of the MAC address. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index 1bc26828bf..a90b7

[U-Boot] [PATCH] arm: omap3: Manually initialize GPIO if OF_CONTROL doesn't

2019-05-29 Thread Adam Ford
filename 561066 28596 116880 706542 ac7ee u-boot 5524516051888 58738e572 spl/u-boot-spl After text data bss dec hex filename 560898 28548 116872 706318 ac70e u-boot 5512115571888 58566e4c6 spl/u-boot-spl Signed-off-by: Adam Ford diff

[U-Boot] [PATCH V2] arm: omap3: Manually initialize GPIO if OF_CONTROL doesn't

2019-05-29 Thread Adam Ford
filename 561066 28596 116880 706542 ac7ee u-boot 5524516051888 58738e572 spl/u-boot-spl After text data bss dec hex filename 560898 28548 116872 706318 ac70e u-boot 5512115571888 58566e4c6 spl/u-boot-spl Signed-off-by: Adam Ford --- V2

[U-Boot] [PATCH] ARM: davinci: Remove ipam390 linker script from Kconfig

2019-05-30 Thread Adam Ford
With ipam390 support removed in we can remove the reference to the linker script since that case will never be true. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index 61e84e5129..adc50922c8 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b

[U-Boot] omap2 lowlevel_init.S quirk / question

2019-05-30 Thread Adam Ford
Just before ENTRY(cpy_clk_code), there is an #if statement, but it appears to be repeated: #if !defined(CONFIG_SYS_NAND_BOOT) && !defined(CONFIG_SYS_NAND_BOOT) Can we remove one of these or should this be something different, like NOR boot or something? I can see the argument for not relocating c

<    7   8   9   10   11   12   13   14   15   16   >