Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-10 Thread Adam Ford
On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki wrote: > > On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford wrote: > > On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki > > wrote: > >> > >> On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: > >> > On Tue,

[U-Boot] [PATCH] ARM: da850evm: Enable USE_TINY_PRINTF

2018-08-10 Thread Adam Ford
1216 80 192434b2b spl/u-boot-spl Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index 4242728e6a..46d0644254 100644 --- a/configs/da850evm_defconfig +++ b/configs/da850evm_defconfig @@ -53,3 +53,4 @@ CONFIG_SPI=y CONFIG_DM_SPI=y

[U-Boot] [PATCH] ARM: da850evm: Enable SPL_SYS_MALLOC_SIMPLE

2018-08-10 Thread Adam Ford
bss dec hex filename 179471216 80 192434b2b spl/u-boot-spl Malloc Simple + Tiny Printf textdata bss dec hex filename 15187 176 28 153913c1f spl/u-boot-spl Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs

[U-Boot] [PATCH] ARM: da8xxevm: README: Add NOR booting instructions

2018-08-11 Thread Adam Ford
The da850evm with its UI expander board can boot XIP boot from NOR flash. This adds the instructions to the readme. file. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850 index 519267e2f0..f24e8b5342 100644 --- a/board/davinci

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-11 Thread Adam Ford
On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: > > On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki wrote: > > > > On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford wrote: > > > On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki > > > wrote: > > >> > &g

[U-Boot] [PATCH] ARM: configs: Add da850evm_nand to boot from NAND

2018-08-11 Thread Adam Ford
The DA850-EVM supports booting from NAND when used with the UI expander board. da850evm_nand will create an ais file that can be burned to NAND and booted while storing the env in NAND along with some partitions tables for storing kernel, dtb and rootfs in NAND. Signed-off-by: Adam Ford diff

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-11 Thread Adam Ford
On Sat, Aug 11, 2018, 1:24 PM Jagan Teki wrote: > On Sat, Aug 11, 2018 at 6:12 PM, Adam Ford wrote: > > On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: > >> > >> On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki > wrote: > >> > > >> > On Fri, Au

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-13 Thread Adam Ford
On Sat, Aug 11, 2018 at 3:09 PM Adam Ford wrote: > > > > On Sat, Aug 11, 2018, 1:24 PM Jagan Teki wrote: >> >> On Sat, Aug 11, 2018 at 6:12 PM, Adam Ford wrote: >> > On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: >> >> >> >>

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-13 Thread Adam Ford
On Mon, Aug 13, 2018 at 1:29 PM Simon Goldschmidt wrote: > > On Mon, Aug 13, 2018 at 3:46 PM Alex Kiernan wrote: > > > > On Mon, Aug 13, 2018 at 1:40 PM Adam Ford wrote: > > > > > > On Sat, Aug 11, 2018 at 3:09 PM Adam Ford wrote: > > > > >

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-13 Thread Adam Ford
On Mon, Aug 13, 2018 at 5:09 PM Adam Ford wrote: > > On Mon, Aug 13, 2018 at 1:29 PM Simon Goldschmidt > wrote: > > > > On Mon, Aug 13, 2018 at 3:46 PM Alex Kiernan wrote: > > > > > > On Mon, Aug 13, 2018 at 1:40 PM Adam Ford wrote: > > > >

[U-Boot] [PATCH] ARM: da850evm_direct_nor: Enable CONFIG_BLK

2018-08-13 Thread Adam Ford
At least for now, CONFIG_BLK is working, but this variant of the da850evm doesn't need/support SPL so it's OK to enable it here. Signed-off-by: Adam Ford diff --git a/configs/da850evm_direct_nor_defconfig b/configs/da850evm_direct_nor_defconfig index 9d6c47df50..bb8fa3bd6e 100644 ---

[U-Boot] [PATCH] ARM: da850evm_direct_nor_defconfig: Enable DM_SERIAL

2018-08-13 Thread Adam Ford
With DM enabled, this patch enables DM_SERIAL and removes the NS16550 initialization from da850_lowlevel since the driver will take care of that itself. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-davinci/da850_lowlevel.c b/arch/arm/mach-davinci/da850_lowlevel.c index 95dc93a24f

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-15 Thread Adam Ford
On Mon, Aug 13, 2018 at 6:50 PM Adam Ford wrote: > > On Mon, Aug 13, 2018 at 5:09 PM Adam Ford wrote: > > > > On Mon, Aug 13, 2018 at 1:29 PM Simon Goldschmidt > > wrote: > > > > > > On Mon, Aug 13, 2018 at 3:46 PM Alex Kiernan > > > wrote: &

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-15 Thread Adam Ford
On Wed, Aug 15, 2018 at 11:07 AM Jagan Teki wrote: > > On Wed, Aug 15, 2018 at 6:50 PM, Adam Ford wrote: > > On Mon, Aug 13, 2018 at 6:50 PM Adam Ford wrote: > >> > >> On Mon, Aug 13, 2018 at 5:09 PM Adam Ford wrote: > >> > > >> > On Mon, A

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-15 Thread Adam Ford
On Wed, Aug 15, 2018 at 8:20 AM Adam Ford wrote: > > On Mon, Aug 13, 2018 at 6:50 PM Adam Ford wrote: > > > > On Mon, Aug 13, 2018 at 5:09 PM Adam Ford wrote: > > > > > > On Mon, Aug 13, 2018 at 1:29 PM Simon Goldschmidt > > > wrote: > > >

[U-Boot] [PATCH V2] ARM: configs: Add da850evm_nand to boot from NAND

2018-08-15 Thread Adam Ford
The DA850-EVM supports booting from NAND when used with the UI expander board. da850evm_nand will create an ais file that can be burned to NAND and booted while storing the env in NAND along with some partitions tables for storing kernel, dtb and rootfs in NAND. Signed-off-by: Adam Ford --- V2

[U-Boot] [PATCH] ARM: CPU: arm926ejs: Consolidate cache routines to common file

2018-08-16 Thread Adam Ford
Four different boards had different options for enabling cache that were virtually all the same. This consolidates these common functions into arch/arm/cpu/arm926ejs/cache.c This also has the positive side-effect of enabling cache on the Davinci (da850) boards. Signed-off-by: Adam Ford

[U-Boot] [PATCH] DM: GPIO: Fix da8xx GPIO indexing over GPIO 32

2018-08-16 Thread Adam Ford
d the shift amount within the register is passed now instead of the gpio number. Fixes: 8e51c0f25406("dm: gpio: Add DM compatibility to GPIO driver for Davinci") Signed-off-by: Adam Ford diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index 1a1d37ae2a..3e95f039

[U-Boot] [PATCH] dm: gpio: da8xx_gpio: Add support for GPIO_ACTIVE_LOW/HIGH

2018-08-16 Thread Adam Ford
With DM and device tree support, let's use the GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW from the device tree as they are intended. Signed-off-by: Adam Ford diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index 3e95f039f0..f80bc6baf6 100644 --- a/drivers/gpio/da8xx_gpio.c

[U-Boot] [PATCH] MMC: davinici_mmc: Enable CD and WP with DM and OF_CONTROL

2018-08-16 Thread Adam Ford
When used with a device tree, this will extract the card detect and write protect pins from the device tree and configure them accordingly. This assumes the GPIO_ACTIVE_LOW/HIGH is supported byt da8xx_gpio. Signed-off-by: Adam Ford diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc

Re: [U-Boot] [PATCH] configs: Migrate CONFIG_NR_DRAM_BANKS

2018-08-17 Thread Adam Ford
On Thu, Aug 16, 2018 at 8:14 PM Tom Rini wrote: > > We have the following cases: > - CONFIG_NR_DRAM_BANKS was defined, migrate normally > - CONFIG_NR_DRAM_BANKS_MAX was defined and then used for > CONFIG_NR_DRAM_BANKS after a check, just migrate it over now. > - CONFIG_NR_DRAM_BANKS was very odd

[U-Boot] [PATCH] arm: dts: da850: Re-sync da850-evm.dts from Linux 4.18

2018-08-17 Thread Adam Ford
Signed-off-by: Adam Ford diff --git a/arch/arm/dts/da850-evm.dts b/arch/arm/dts/da850-evm.dts index 67e72bc72e..0e82bb988f 100644 --- a/arch/arm/dts/da850-evm.dts +++ b/arch/arm/dts/da850-evm.dts @@ -15,143 +15,18 @@ compatible = "ti,da850-evm", "ti,da850"; m

[U-Boot] [PATCH] ARM: dts: da850-evm-u-boot: Remove redundant entries

2018-08-17 Thread Adam Ford
With the re-sync from Linux 4.18, several entries in da850-evm-u-boot.dtsi are no longer necessary, so this patch removes them. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/da850-evm-u-boot.dtsi b/arch/arm/dts/da850-evm-u-boot.dtsi index b3546e792a..ab1de77954 100644 --- a/arch/arm/dts

[U-Boot] [PATCH] GPIO: omap_gpio: Fix gpio name names with device tree

2018-08-17 Thread Adam Ford
The GPIO bank numbers do not appear in the device tree, so this patch makes the gpio name based on the address (ie gpio@49054000_31 vs gpio4_31) adam Signed-off-by: Adam Ford diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 651f6994e4..0f1ddeff92 100644 --- a/drivers/gpio

[U-Boot] Disabling CONFIG_DM_I2C_COMPAT in twl4030 PMIC

2018-08-17 Thread Adam Ford
I am working to disable CONFIG_DM_I2C_COMPAT for the omap3 boards. Some of these boards use the TWL4030 PMIC which is still using the older i2c_write and i2c_read functions. I wonder if someone can point me to a good patch that I can use a model one how to appropriately port I2C drivers forward?

Re: [U-Boot] Disabling CONFIG_DM_I2C_COMPAT in twl4030 PMIC

2018-08-19 Thread Adam Ford
On Fri, Aug 17, 2018 at 10:21 PM Adam Ford wrote: > > I am working to disable CONFIG_DM_I2C_COMPAT for the omap3 boards. > Some of these boards use the TWL4030 PMIC which is still using the > older i2c_write and i2c_read functions. > > I wonder if someone can point me to a goo

[U-Boot] [PATCH 1/2] Configs: am3517_evm: Remove TWL4030 reference

2018-08-19 Thread Adam Ford
This SOM and kit do not nor have they ever had a twl4030 PMIC. This patch removes the references to it. Signed-off-by: Adam Ford diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig index 41ab3fd373..61a401c4c1 100644 --- a/configs/am3517_evm_defconfig +++ b/configs

[U-Boot] [PATCH 2/2] ARM: am3517_evm: Disable DM_I2C_COMPAT

2018-08-19 Thread Adam Ford
DM_I2C_COMPAT is somehow being enabled outside of Kconfig, so this explicitly undefines it in the header file, and brackets the I2C initialization around an #ifdef to not manually initialize the I2C controller when the DM_I2C is enabled. Signed-off-by: Adam Ford diff --git a/board/logicpd

Re: [U-Boot] Disabling CONFIG_DM_I2C_COMPAT in twl4030 PMIC

2018-08-19 Thread Adam Ford
On Sun, Aug 19, 2018 at 11:53 AM Tom Rini wrote: > > On Sun, Aug 19, 2018 at 09:45:30AM -0500, Adam Ford wrote: > > On Fri, Aug 17, 2018 at 10:21 PM Adam Ford wrote: > > > > > > I am working to disable CONFIG_DM_I2C_COMPAT for the omap3 boards. > > > So

[U-Boot] [PATCH] regulator: pbias: Add additional compatible flags

2018-08-19 Thread Adam Ford
The driver was developed with references for more than just dra7, but never included. At least for omap3, this appears to be functional. Signed-off-by: Adam Ford diff --git a/drivers/power/regulator/pbias_regulator.c b/drivers/power/regulator/pbias_regulator.c index 8f06e27b89..366f97b38b

Re: [U-Boot] arm: omap: configs: various: Remove references to OMAP34XX_UARTx

2018-08-20 Thread Adam Ford
On Mon, Aug 20, 2018 at 6:21 AM Tom Rini wrote: > > On Tue, Aug 07, 2018 at 07:28:11AM -0500, Adam Ford wrote: > > > Two boards include a reference to ti_omap3_common.h which > > points the UART driver to OMAP34XX_UARTx so the extra define > > should be unnecessary.

[U-Boot] [PATCH 1/2] DM: I2C: Reduce overhead when used with OF_PLATDATA

2018-08-20 Thread Adam Ford
: Adam Ford diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 5e58dd0916..c5a3c4e201 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -562,7 +562,7 @@ int i2c_deblock(struct udevice *bus) return ops->deblock(bus); } -#if CONFIG_IS_ENAB

[U-Boot] [PATCH 2/2] DM: OMAP24XX_I2C: Reduce overhead when used with OF_PLATDATA

2018-08-20 Thread Adam Ford
: Adam Ford diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c index 0759585c9e..54bf35e552 100644 --- a/drivers/i2c/omap24xx_i2c.c +++ b/drivers/i2c/omap24xx_i2c.c @@ -890,6 +890,7 @@ static int omap_i2c_probe(struct udevice *bus) return 0; } +#if CONFIG_IS_ENABLED

[U-Boot] [PATCH] DM: omap_gpio: Reduce overhead when used with OF_PLATDATA

2018-08-20 Thread Adam Ford
: Adam Ford diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 651f6994e4..fcf25fc5a4 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -337,6 +337,7 @@ static int omap_gpio_bind(struct udevice *dev) } #endif +#if CONFIG_IS_ENABLED(OF_CONTROL

[U-Boot] [PATCH] ARM: mach-omap2: Don't initialize I2C if DM_I2C is enabled

2018-08-20 Thread Adam Ford
boot-common.c checks to see if I2C is enabled in SPL, but it doens't check for DM_I2C before initializing it. This will now only initialize the I2C is the DM_I2C is not enabled to avoid initializing it more than once. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-omap2/boot-common

[U-Boot] [PATCH] DM: serial: ti_omap3_common: Don't define serial unless !DM_SERIAL

2018-08-20 Thread Adam Ford
The serial port was being manually configured during SPL build, however in preparation to allow DM in SPL, this needs to change to be based on whether or not DM_SERIAL is enabled because, soon the assumption that SPL means no DM may not be accurate. Signed-off-by: Adam Ford diff --git a/include

[U-Boot] [PATCH] mmc: omap_hsmmc: Make DM_GPIO calls dependent on DM_GPIO

2018-08-21 Thread Adam Ford
The getcd and getwp functions when DM_MMC is enabled are assumming the DM_GPIO is enabled. In cases (like SPL) where DM_GPIO may not be enabled, wrap these calls in an #ifdef Signed-off-by: Adam Ford diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index caaa914604..4d171f457e

[U-Boot] [PATCH] ARM: omap3_logic_defconfig: Convert to DM_SPL

2018-08-21 Thread Adam Ford
The OF_CONTROL and OF_PLATDATA are not really useful without DM. This patch supports DM_SPL, but it requires manual references both Serial and MMC. Signed-off-by: Adam Ford diff --git a/board/logicpd/omap3som/omap3logic.c b/board/logicpd/omap3som/omap3logic.c index fbad89b696..620423bbc8

Re: [U-Boot] [PATCH] MMC: davinici_mmc: Enable CD and WP with DM and OF_CONTROL

2018-08-24 Thread Adam Ford
On Thu, Aug 23, 2018 at 7:19 AM Peter Howard wrote: > > On Thu, 2018-08-16 at 23:26 -0500, Adam Ford wrote: > > When used with a device tree, this will extract the card detect > > and write protect pins from the device tree and configure them > > accordingly. This ass

Re: [U-Boot] [PATCH v2] serial: omap: Introduce DM specific omap serial

2018-08-27 Thread Adam Ford
On Mon, Aug 27, 2018, 10:41 AM Lokesh Vutla wrote: > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla > --- > Based on the conclusion on the thread[1], added a separate driver for > omap uart. > > [1] https://patchwork.ozlabs.org

[U-Boot] [PATCH V2] MMC: davinici_mmc: Enable CD and WP with DM and OF_CONTROL

2018-09-03 Thread Adam Ford
When used with a device tree, this will extract the card detect and write protect pins from the device tree and configure them accordingly. This assumes the GPIO_ACTIVE_LOW/HIGH is supported by da8xx_gpio. Signed-off-by: Adam Ford --- V2: Wrap the CD and WP GPIO references around DM_GPIO to

[U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect

2018-09-03 Thread Adam Ford
When re-syncing the DTS files from the kernel, something caused the MMC driver to no longer detect the MMC card. Undoing the CD-invert appears to fix the issue. Fixes: e6ea2390cde3 ("ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit with Linux 4.18-RC4") Signed-off-by: Adam Ford diff --

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

2018-09-03 Thread Adam Ford
The simple pinctrl driver currently available works with the omap3. Enabling this will use the device tree to automatically set the pin-muxing for various drivers. Signed-off-by: Adam Ford diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig index c6acfab602..cea4e5521d

[U-Boot] [PATCH] ARM: omap3_logic: Enable DM_PMIC and DM_REGULATOR

2018-09-03 Thread Adam Ford
Enabling DM_PMIC, DM_REGULATOR_FIXED, and DM_REGULATOR_GPIO gives us the ability to better monitor voltages and enable hardware through the device tree. The TL4030 (TPS65950) is not yet migrated to DM, so this patch only enables the fixed and GPIO controlled regulators. Signed-off-by: Adam Ford

Re: [U-Boot] [PATCH 1/3] spi: davinci: Add platdata support

2018-09-03 Thread Adam Ford
On Mon, Sep 3, 2018 at 12:30 PM Jagan Teki wrote: > > Davanci spi driver has DM support already, this patch > add support for platdata so-that SPL can use it for > low foot-print. > In order for this to work, I had to apply a patch [1] that I submitted before. That patch disabled the manual initi

Re: [U-Boot] [PATCH 1/3] spi: davinci: Add platdata support

2018-09-03 Thread Adam Ford
On Mon, Sep 3, 2018 at 5:21 PM Adam Ford wrote: > > On Mon, Sep 3, 2018 at 12:30 PM Jagan Teki wrote: > > > > Davanci spi driver has DM support already, this patch > > add support for platdata so-that SPL can use it for > > low foot-print. > > > > I

[U-Boot] [PATCH] mmc: omap_hsmmc: Fix pbias for omap3_logic to enable CD pin

2018-09-05 Thread Adam Ford
The MMC card detect pin is connected to gpio127 on omap3_logic. When setting up the pbias register for MMC, let's also enable gpio_127 for the card detect. As part of the package deal, gpio_126 and gpio_129 are also enabled. Signed-off-by: Adam Ford diff --git a/arch/arm/include/asm/arch-

[U-Boot] [PATCH 3/3] ARM: DTS: various omap3: Remove cd-inverted from u-boot.dtsi

2018-09-05 Thread Adam Ford
With the omap_mmc driver no longer supporting cd-inverted, this patch removes all these references since they are not needed. 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 c02beaad77..59df819f9d 100644 --- a/arch/arm/dts

[U-Boot] [PATCH 2/3] mmc: omap_mmc: Remove invert references with gpio xlate available

2018-09-05 Thread Adam Ford
With omap_gpio now translating GPIO_ACTIVE_LOW, any boards using the 'invert' option will no longer need to do this. This patch removes the support for 'invert' from the MMC driver. Signed-off-by: Adam Ford diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmm

[U-Boot] [PATCH 1/3] gpio: omap_gpio: Add xlate function to support GPIO_ACTIVE_LOW

2018-09-05 Thread Adam Ford
e pin values when GPIO_ACTIVE_LOW is used. This allows the invert option to be removed Signed-off-by: Adam Ford diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 555eba2662..0ecd2f374a 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -24,6 +24,7 @@ #in

Re: [U-Boot] Fwd: Parallel build is broken

2018-09-05 Thread Adam Ford
On Wed, Sep 5, 2018 at 3:46 AM Alex Kiernan wrote: > > On Tue, Sep 4, 2018 at 3:54 PM Andy Shevchenko > wrote: > > > > On Tue, Sep 4, 2018 at 5:50 PM Andy Shevchenko > > wrote: > > > > > > On Tue, Sep 4, 2018 at 5:00 PM Tom Rini wrote: > > > > > > > > On Tue, Sep 04, 2018 at 03:42:05PM +0300, A

Re: [U-Boot] [PATCH 3/3] ARM: DTS: various omap3: Remove cd-inverted from u-boot.dtsi

2018-09-05 Thread Adam Ford
On Wed, Sep 5, 2018 at 7:24 AM Jean-Jacques Hiblot wrote: > > Hi Adam, > > > On 05/09/2018 11:35, Adam Ford wrote: > > With the omap_mmc driver no longer supporting cd-inverted, this > > patch removes all these references since they are not needed. > > > >

Re: [U-Boot] [PATCH 1/3] gpio: omap_gpio: Add xlate function to support GPIO_ACTIVE_LOW

2018-09-05 Thread Adam Ford
On Wed, Sep 5, 2018 at 7:29 AM Jean-Jacques Hiblot wrote: > > Adam, > > > On 05/09/2018 11:35, Adam Ford wrote: > > The gpio driver doesn't current support knowing whether or not > > GPIO is active low or high. It simply returns the value. The > > side ef

[U-Boot] [PATCH] AM3517_EVM: Fix Environmental location

2018-06-06 Thread Adam Ford
The am3517-evm boards stores the environment in NAND, but after merging various configs, the board was trying to load environment variables from FAT which would ultimately fail and cause some chatter. This patch removes the ENV_IS_IN_FAT flag to eliminate the noise. Signed-off-by: Adam Ford

[U-Boot] [PATCH] ARM: am3517_evm: Enable SPL_OF_CONTROL and SPL_OF_PLATDATA

2018-06-08 Thread Adam Ford
The SPL doesn't have much room, so in order to support OF_CONTROL in SPL, we need the extra functionality of SPL_OF_PLATDATA. Adding these features allows us to remove a small part of code without losing the serial port during SPL. Signed-off-by: Adam Ford diff --git a/board/logicpd/am35

[U-Boot] [PATCH] ARM: DTS: resync a3517.dtsi with Linux 4.17

2018-06-08 Thread Adam Ford
Linux 4.17 was just released with some minor changes to the am3517.dtsi. This patch re-syncs the file. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517.dtsi b/arch/arm/dts/am3517.dtsi index 00da3f2c40..ca294914bb 100644 --- a/arch/arm/dts/am3517.dtsi +++ b/arch/arm/dts/am3517.dtsi

Re: [U-Boot] [PATCHv2] block: Have BLOCK_CACHE default to y in some cases

2018-06-08 Thread Adam Ford
On Tue, May 22, 2018 at 11:24 AM Tom Rini wrote: > > When dealing with filesystems that come from block devices we can get a > noticeable performance gain in some use cases from having the block > cache enabled. The code paths are valid in other cases when we have BLK > set and may provide wins i

Re: [U-Boot] [PATCHv2] block: Have BLOCK_CACHE default to y in some cases

2018-06-08 Thread Adam Ford
On Fri, Jun 8, 2018 at 2:15 PM Tom Rini wrote: > > On Fri, Jun 08, 2018 at 10:30:36AM -0500, Adam Ford wrote: > > On Tue, May 22, 2018 at 11:24 AM Tom Rini wrote: > > > > > > When dealing with filesystems that come from block devices we can get a > > >

[U-Boot] [PATCH] block: Add SPL_BLOCK_CACHE and default n

2018-06-08 Thread Adam Ford
Signed-off-by: Adam Ford diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 0792373cfc..8ef363b3d4 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -37,6 +37,13 @@ config BLOCK_CACHE it will prevent repeated reads from directory structures

Re: [U-Boot] [PATCHv2] block: Have BLOCK_CACHE default to y in some cases

2018-06-08 Thread Adam Ford
On Fri, Jun 8, 2018 at 3:20 PM Adam Ford wrote: > > On Fri, Jun 8, 2018 at 2:15 PM Tom Rini wrote: > > > > On Fri, Jun 08, 2018 at 10:30:36AM -0500, Adam Ford wrote: > > > On Tue, May 22, 2018 at 11:24 AM Tom Rini wrote: > > > > > > > > When de

Re: [U-Boot] [PATCH] block: Add SPL_BLOCK_CACHE and default n

2018-06-09 Thread Adam Ford
On Sat, Jun 9, 2018 at 8:26 AM Alex Kiernan wrote: > > On Fri, Jun 8, 2018 at 9:48 PM Adam Ford wrote: > > > > When enabling BLOCK_CACHE on devices with limited RAM during SPL, > > some devices may not boot. This creates an option to enable > > block caching

[U-Boot] [PATCH] block: Add SPL_BLOCK_CACHE and default n

2018-06-09 Thread Adam Ford
Signed-off-by: Adam Ford -- V2: Clean up macros and ifdefs diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 0792373cfc..8ef363b3d4 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -37,6 +37,13 @@ config BLOCK_CACHE it will prevent repeated reads from

[U-Boot] [RFC] gpio: omap_gpio: Convert to auto-alloc feature when DT is supported

2018-06-10 Thread Adam Ford
The omap_gpio driver has a TODO that says when every board is converted to DM and DT, the omap_gpio_bind can stop using calloc and switch to auto-alloc. This patch converts this driver to auto-calloc when DT is enabled. Signed-off-by: Adam Ford diff --git a/drivers/gpio/omap_gpio.c b/drivers

[U-Boot] [PATCH V2] dm: gpio: Add DM compatibility to GPIO driver for Davinci

2018-06-10 Thread Adam Ford
This adds DM_GPIO support for the davinici GPIO driver with DT support. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-davinci/include/mach/gpio.h b/arch/arm/mach-davinci/include/mach/gpio.h index f1d4d9e9e0..d4b25c3d60 100644 --- a/arch/arm/mach-davinci/include/mach/gpio.h +++ b/arch/arm

[U-Boot] [PATCH V3] block: Add SPL_BLOCK_CACHE and default n

2018-06-11 Thread Adam Ford
When enabling BLOCK_CACHE on devices with limited RAM during SPL, some devices may not boot. This creates an option to enable block caching in SPL by defaults off. It is dependent on SPL_BLK Fixes: 46960ad6d09b ("block: Have BLOCK_CACHE default to y in some cases") Signed-off-by:

[U-Boot] [PATCH] arm: mach-omap2/omap3/clock.c: Enable all GPIO with CMD_GPIO

2018-06-11 Thread Adam Ford
When CMD_GPIO is enabled the command 'gpio status -a' can cause a hang or reboot if GPIO banks are not enabled, because it scans all banks. This patch enables all GPIO banks so 'gpio status -a' can fully execute. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-omap2/o

[U-Boot] [PATCH] gpio: omap_gpio: Name GPIO's by bank and index with DM_GPIO

2018-06-11 Thread Adam Ford
There are multiple GPIO banks with up to 32 pins / bank. When using 'gpio status -a' to read the pins, this patch displays both GPIO_ similar to how the device trees display in addition to displaying gpio_# Signed-off-by: Adam Ford diff --git a/drivers/gpio/omap_gpio.c b/dr

[U-Boot] [PATCH] omap3_logic: Change console from ttyO0 to ttyS0

2018-06-15 Thread Adam Ford
S0 and eliminate the chatter. Signed-off-by: Adam Ford diff --git a/include/configs/omap3_logic.h b/include/configs/omap3_logic.h index cde61f2fd7..7b8f402e14 100644 --- a/include/configs/omap3_logic.h +++ b/include/configs/omap3_logic.h @@ -92,7 +92,7 @@ "fi; &quo

[U-Boot] [PATCH] gpio: omap_gpio: Convert to auto-alloc feature when DT is supported

2018-06-25 Thread Adam Ford
The omap_gpio driver has a TODO that says when every board is converted to DM and DT, the omap_gpio_bind can stop using calloc and switch to auto-alloc. This patch converts this driver to auto-calloc when DT is enabled. Signed-off-by: Adam Ford diff --git a/drivers/gpio/omap_gpio.c b/drivers

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-06-28 Thread Adam Ford
On Wed, Jun 27, 2018 at 4:41 PM Tom Rini wrote: > > On Sat, Jun 23, 2018 at 07:59:30AM -0600, Simon Glass wrote: > > The time has come to migrate all boards to use CONFIG_BLK. This series > > is just a test to see what boards would have to be removed if we required > > CONFIG_BLK, as we plan to af

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-06-29 Thread Adam Ford
On Fri, Jun 29, 2018 at 2:09 PM Tom Rini wrote: > > On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods wrote: > > On Thu, Jun 28, 2018 at 10:47:36AM -0500, Adam Ford wrote: > > > On Wed, Jun 27, 2018 at 4:41 PM Tom Rini wrote: > > > > > > >

[U-Boot] [PATCH] imx: i.mx6q: imx6q_logic: Migrate to SPL and enable SDP

2018-07-05 Thread Adam Ford
NAND from which to boot. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig index 521fad74b5..524631b32c 100644 --- a/arch/arm/mach-imx/mx6/Kconfig +++ b/arch/arm/mach-imx/mx6/Kconfig @@ -198,6 +198,8 @@ config TARGET_MX6CUBOXI config TARGET_MX6LO

[U-Boot] buildman failures and toolchains

2018-07-06 Thread Adam Ford
I am going to sound stupid, but I'm struggling to install all the toolchains and use them with buildroot. I upgraded to Ubuntu 18.04 and whenever try to run buildman, or attempt to build the moveconfig database I get failures. i get the following error on every architecture type: cc1: error

Re: [U-Boot] buildman failures and toolchains

2018-07-07 Thread Adam Ford
On Sat, Jul 7, 2018 at 3:42 AM Alex Kiernan wrote: > > On Sat, Jul 7, 2018 at 3:43 AM Adam Ford wrote: > > > > I am going to sound stupid, but I'm struggling to install all the > > toolchains and use them with buildroot. I upgraded to Ubuntu 18.04 > > a

[U-Boot] [PATCH] Convert CONFIG_NAND_LPC32XX_SLC to Kconfig

2018-07-08 Thread Adam Ford
This converts the following to Kconfig: CONFIG_NAND_LPC32XX_SLC Signed-off-by: Adam Ford diff --git a/configs/devkit3250_defconfig b/configs/devkit3250_defconfig index 14c24ce6f2..8a37122104 100644 --- a/configs/devkit3250_defconfig +++ b/configs/devkit3250_defconfig @@ -34,6 +34,7

[U-Boot] [PATCH] Convert CONFIG_NAND_DAVINCI to Kconfig

2018-07-08 Thread Adam Ford
This converts the following to Kconfig: CONFIG_NAND_DAVINCI Signed-off-by: Adam Ford diff --git a/configs/ea20_defconfig b/configs/ea20_defconfig index 497e5515d7..43292a126d 100644 --- a/configs/ea20_defconfig +++ b/configs/ea20_defconfig @@ -30,6 +30,8 @@ CONFIG_CMD_DIAG=y CONFIG_CMD_UBI

[U-Boot] [PATCH] configs: Make NAND_BOOT and ONENAND_BOOT imply NAND

2018-07-08 Thread Adam Ford
Some boards indicate support from booting NAND or ONENAND booting, but don't enable the CONFIG_NAND. This makes those boards imply NAND which will make enabling other flags that are dependent on CONFIG_NAND possible and easier to migrate. Signed-off-by: Adam Ford diff --git a/common/Kcon

[U-Boot] [PATCH] cmd: Make CMD_NAND imply NAND

2018-07-08 Thread Adam Ford
Many boards check for CMD_NAND and not NAND. This makes CMD_NAND imply NAND which will make some Kconfig migration of some NAND options easier later. Rsync all defconfig files using moveconfig.py Signed-off-by: Adam Ford --- cmd/Kconfig | 1 + configs

[U-Boot] [PATCH] Convert CONFIG_NAND_ATMEL to Kconfig

2018-07-08 Thread Adam Ford
This converts the following to Kconfig: CONFIG_NAND_ATMEL Signed-off-by: Adam Ford diff --git a/configs/at91sam9260ek_dataflash_cs0_defconfig b/configs/at91sam9260ek_dataflash_cs0_defconfig index 3d2b8803ea..c77b8d8a20 100644 --- a/configs/at91sam9260ek_dataflash_cs0_defconfig +++ b/configs

[U-Boot] [PATCH] ARM: DTS: Resync am3517-evm.dts with Linux 4.18-rc4

2018-07-09 Thread Adam Ford
Several changes have been made to the AM3517-evm and the underlying am3517.dtsi file. This patch re-sync's the DTS and DTSI files with Linux. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517-evm.dts b/arch/arm/dts/am3517-evm.dts index 0e4a125f78..98aadb0f81 100644 --- a/arch/ar

[U-Boot] [PATCH] ARM: dts: Resync OMAP3 and omap36xx with Linux 4.18-RC4

2018-07-09 Thread Adam Ford
There have been several minor changes to the OMAP3.dtsi, so this patch re-syncs it with Linux. An addition include/dt-binding was also brought with it. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/omap3.dtsi b/arch/arm/dts/omap3.dtsi index 56c94729bb..4043ecb380 100644 --- a/arch/arm/dts

[U-Boot] [PATCH 1/2] ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit with Linux 4.18-RC4

2018-07-09 Thread Adam Ford
There have been some refactoring of the DTS files for the Logic PD DM37 Torpedo. This patch re-sync's the DTS files with Linux Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts index 43e9364083..234afd6d60 1

[U-Boot] [PATCH 2/2] ARM: DTS: Resync Logic PD SOM-LV 37xx devkit with Linux 4.18-RC4

2018-07-09 Thread Adam Ford
There have been some significant changes to the DM37 SOM-LV device tree. This patch re-syncs it with Linux. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-som-lv-37xx-devkit.dts b/arch/arm/dts/logicpd-som-lv-37xx-devkit.dts index 1702b9e3db..2428373952 100644 --- a/arch/arm/dts

[U-Boot] [PATCH] ARM: dts: am3517-evm-uboot: Add reg-shift for UART

2018-07-10 Thread Adam Ford
With the resync of the omap3.dtsi file, the reg-shift was removed so it breaks the UART. Adding the reg-shift into the am3517-evm-u-boot.dtsi keeps the reg-shift for U-Boot, but keeps the dts/dtsi files clean from Linux. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517-evm-u-boot.dtsi

[U-Boot] [PATCH] ARM: DTS: am3517-evm-u-boot: Mark MMC1 with cd-inverted

2018-07-10 Thread Adam Ford
In order to use the device tree for MMC, the card-detect pin needs to be inverted. This patch places this into the am3517-evm-u-boot.dtsi file to keep the main DTS and DTSI files clean and in-sync with Linux Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517-evm-u-boot.dtsi b/arch/arm

[U-Boot] [PATCH] configs: Convert CONFIG_USE_NAND to CONFIG_NAND

2018-07-10 Thread Adam Ford
The DA850-EVM and OMAPL138_LCDK both use checks for CONFIG_USE_NAND. This patch changes these checks to CONFIG_NAND which is already defined in Kconfig. Since the OMAPL138_LCDK already had CONFIG_NAND defined in its defconfig, it can be deleted from configs/omapl138_lcdk.h. Signed-off-by: Adam

[U-Boot] [PATCH] Convert CONFIG_DA8XX_GPIO to Kconfig

2018-07-10 Thread Adam Ford
This converts the following to Kconfig: CONFIG_DA8XX_GPIO Signed-off-by: Adam Ford diff --git a/configs/calimain_defconfig b/configs/calimain_defconfig index 7908cfcc34..bc704ff7bd 100644 --- a/configs/calimain_defconfig +++ b/configs/calimain_defconfig @@ -23,6 +23,7 @@ CONFIG_CMD_DIAG=y

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Adam Ford
On Fri, Jun 29, 2018 at 3:21 PM Adam Ford wrote: > > On Fri, Jun 29, 2018 at 2:09 PM Tom Rini wrote: > > > > On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods wrote: > > > On Thu, Jun 28, 2018 at 10:47:36AM -0500, Adam Ford wrote: > > > > On Wed,

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Adam Ford
On Fri, Jul 13, 2018 at 10:23 AM Lukasz Majewski wrote: > > On Fri, 13 Jul 2018 16:53:53 +0200 > Marek Vasut wrote: > > > On 07/13/2018 03:34 PM, Adam Ford wrote: > > > On Fri, Jun 29, 2018 at 3:21 PM Adam Ford > > > wrote: > > >> > > >

[U-Boot] [PATCH] ARM: configs: omap3_logic: remove Legacy OMAP3 USB driver

2018-07-13 Thread Adam Ford
Only the MUSB driver is currently supported on the omap3_logic boards. The driver is using the new-musb and not the legacy version, so this patch removes the dead code references. Signed-off-by: Adam Ford diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig index

[U-Boot] [PATCH] usb: musb-new: omap2430: Remove dead code

2018-07-13 Thread Adam Ford
A bunch of code was encapsulated in #ifdef's whether or not it is building or for U-Boot. Since this code is always building for U-Boot, this patch removes the dead code. Signed-off-by: Adam Ford diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index 4753d

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Adam Ford
On Fri, Jul 13, 2018 at 10:43 AM Adam Ford wrote: > > On Fri, Jul 13, 2018 at 10:23 AM Lukasz Majewski wrote: > > > > On Fri, 13 Jul 2018 16:53:53 +0200 > > Marek Vasut wrote: > > > > > On 07/13/2018 03:34 PM, Adam Ford wrote: > > > > On Fr

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-17 Thread Adam Ford
On Tue, Jul 17, 2018 at 4:24 PM Andy Shevchenko wrote: > > On Tue, Jul 17, 2018 at 4:34 PM, Alexey Brodkin > wrote: > > >> Linux has a completely separate driver for omap3 (which is wrong too). > > This is not (fully) correct, > > >> But in a nutshell, it basically determines the shift value by t

[U-Boot] [PATCH] configs: imx6q_logic: Cleanup ramdiskaddr and fdtaddr

2018-07-20 Thread Adam Ford
There are already definitions for ramdisk_addr_r and fdt_addr_r, so having a duplicate copy called ramdiskaddr and fdtaddr is confusing. This patch converts any references to ramdisk_addr_r and fdt_addr_r and removes the duplicates. Signed-off-by: Adam Ford diff --git a/include/configs

[U-Boot] [PATCH] configs: omap3_logic: Remove USB Storage and enable CONFIG_BLK

2018-07-21 Thread Adam Ford
With the pending requirement for CONFIG_BLK, this patch removes the USB_STORAGE option which assumes that DM_USB is enabled, but isn't yet available for the omap2340 musb glue among other issues. Once the USB issues are resolved, a future patch can enable them again. Signed-off-by: Adam

[U-Boot] [PATCH] configs: am3517-evm: Setup NAND booting

2018-07-21 Thread Adam Ford
The NAND offsets for the kernel and U-Boot were missing. This patch sets up the offsets so the AM3517-EVM can boot from NAND when DIP switches S7:1 and S7:4 are to the OFF position Signed-off-by: Adam Ford diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig index 3b8e2900eb

[U-Boot] [PATCH] ARM: AM3517-EVM: Update Maintainer

2018-07-21 Thread Adam Ford
The previous e-mail pointing to Vaibhav Hiremath is bouncing and has for some time. This updates it to myself and I work for Logic PD the manufacturer of the AM3517-SOM and EVM Signed-off-by: Adam Ford diff --git a/board/logicpd/am3517evm/MAINTAINERS b/board/logicpd/am3517evm/MAINTAINERS

[U-Boot] [RFC] usb: musb-new: omap2430: Enable DM_USB and OF support

2018-07-22 Thread Adam Ford
G mode and get it to start USB in either host or gadget mode. Unless an OTG adapter is connected with a USB device, the only message I get when issing 'usb start' is USB0: Port not available. Signed-off-by: Adam Ford diff --git a/drivers/usb/musb-new/omap2430.c b/drivers

Re: [U-Boot] [RFC] usb: musb-new: omap2430: Enable DM_USB and OF support

2018-07-22 Thread Adam Ford
On Sun, Jul 22, 2018 at 11:45 AM Adam Ford wrote: > > With upcoming changes that require CONFIG_BLK, this broke > USB Mass Storage on the OMAP3 boards because if CONFIG_BLK is > enabled, it assumes that DM_USB is enabled, but it wasn't yet > available on omap3 and omap4 bo

Re: [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-07-23 Thread Adam Ford
On Mon, Mar 19, 2018 at 5:35 PM Tom Rini wrote: > > On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote: > > > Several boards do not use the default UART3, so they do a check > > for ifdef CONFIG_SPL_BUILD and enable the pointer for > > CONFIG_SYS_NS16550_COMx

<    1   2   3   4   5   6   7   8   9   10   >