[U-Boot] [PATCH 1/1] env_mmc: support env partition setup in runtime

2014-07-29 Thread Dmitry Lifshitz
Add callback with __weak annotation to allow setup of environment partition number in runtime from a board file. Propagate mmc_switch_part() return value into init_mmc_for_env() instead of -1 in case of failure. Signed-off-by: Dmitry Lifshitz Signed-off-by: Igor Grinberg --- common/env_mmc.c

[U-Boot] [PATCH v2 2/2] env_mmc: support env partition setup in runtime

2014-07-30 Thread Dmitry Lifshitz
Add callback with __weak annotation to allow setup of environment partition number in runtime from a board file. Propagate mmc_switch_part() return value into init_mmc_for_env() instead of -1 in case of failure. Signed-off-by: Dmitry Lifshitz Signed-off-by: Igor Grinberg --- Changes in v2

[U-Boot] [PATCH 1/2] env_mmc: add mmc_get_env_addr() prototype

2014-07-30 Thread Dmitry Lifshitz
Add missing mmc_get_env_addr() prototype in environment.h Signed-off-by: Dmitry Lifshitz --- include/environment.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/environment.h b/include/environment.h index 08679ae..d7a1adf 100644 --- a/include

[U-Boot] [PATCH 3/3] cm-t54: convert to generic board

2014-07-31 Thread Dmitry Lifshitz
Use generic board setup functions by defining CONFIG_SYS_GENERIC_BOARD. Signed-off-by: Dmitry Lifshitz --- include/configs/cm_t54.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/cm_t54.h b/include/configs/cm_t54.h index db04095..df93a59 100644 --- a

[U-Boot] [PATCH 0/3] cm-t54: misc board fixes, convert to generic board

2014-07-31 Thread Dmitry Lifshitz
Fix MAC address data read (from EEPROM) issue and boot mode check. Convert to generic board. Dmitry Lifshitz (3): cm-t54: fix EEPROM read return value check cm-t54: fix eMMC boot mode check cm-t54: convert to generic board board/compulab/cm_t54/cm_t54.c |6 +++--- include/configs

[U-Boot] [PATCH 1/3] cm-t54: fix EEPROM read return value check

2014-07-31 Thread Dmitry Lifshitz
Fix cl_eeprom_read_mac_addr() return value check. Fix long line codding style issue in board_init(). Signed-off-by: Dmitry Lifshitz --- board/compulab/cm_t54/cm_t54.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/compulab/cm_t54/cm_t54.c b/board/compulab

[U-Boot] [PATCH 2/3] cm-t54: fix eMMC boot mode check

2014-07-31 Thread Dmitry Lifshitz
Boot from eMMC boot partition corresponds to BOOT_DEVICE_MMC2 omap_bootmode, while BOOT_DEVICE_MMC2_2 corresponds to the user data partition boot. Fix mmc_get_env_part() boot mode check to use a correct value. Signed-off-by: Dmitry Lifshitz --- board/compulab/cm_t54/cm_t54.c |2 +- 1 files

Re: [U-Boot] [PATCH 2/3] env_mmc: support env partition setup in runtime

2014-06-25 Thread Dmitry Lifshitz
Hi Pantelis, On 06/12/2014 06:10 PM, Pantelis Antoniou wrote: Hi Dmitry, I took a good look at the patch and there's a problem. On Apr 27, 2014, at 1:18 PM, Dmitry Lifshitz wrote: Add callback with __weak annotation to allow setup of environment partition number in runtime from a board

[U-Boot] [PATCH 0/3] cm_t54: add MAC address and env partiton handling

2014-04-27 Thread Dmitry Lifshitz
. Dmitry Lifshitz (3): cm-t54: add EEPROM support and MAC address handling env_mmc: support env partition setup in runtime cm-t54: add environment partition runtime detection board/compulab/cm_t54/cm_t54.c | 85 common/env_mmc.c | 35

[U-Boot] [PATCH 4/4] cm-t54: add cm-t54 board support

2014-04-27 Thread Dmitry Lifshitz
Add cm-t54 board directory, config file. Enable build. Basic support includes: Serial console SD/MMC eMMC USB Ethernet Signed-off-by: Dmitry Lifshitz Acked-by: Igor Grinberg --- board/compulab/cm_t54/Makefile | 10 ++ board/compulab/cm_t54/cm_t54.c | 177

[U-Boot] [PATCH 3/3] cm-t54: add environment partition runtime detection

2014-04-27 Thread Dmitry Lifshitz
Add environment partition runtime detection callback. Signed-off-by: Dmitry Lifshitz Acked-by: Igor Grinberg --- board/compulab/cm_t54/cm_t54.c | 22 ++ include/configs/cm_t54.h |1 + 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/board/compulab

[U-Boot] [PATCH 1/4] ARM: OMAP5: add UART4 support

2014-04-27 Thread Dmitry Lifshitz
Add UART4 base address. Signed-off-by: Dmitry Lifshitz --- arch/arm/include/asm/arch-omap5/omap.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-omap5/omap.h b/arch/arm/include/asm/arch-omap5/omap.h index 19fdece..e35a81a 100644 --- a/arch

[U-Boot] [PATCH 2/3] env_mmc: support env partition setup in runtime

2014-04-27 Thread Dmitry Lifshitz
Add callback with __weak annotation to allow setup of environment partition number in runtime from a board file. Signed-off-by: Dmitry Lifshitz Signed-off-by: Igor Grinberg --- common/env_mmc.c | 35 ++- 1 files changed, 26 insertions(+), 9 deletions(-) diff

[U-Boot] [PATCH 0/4] ARM: OMAP5: add cm-t54 board support

2014-04-27 Thread Dmitry Lifshitz
Add support for CompuLab cm-t54 CoM, based on OMAP5432 CPU. http://compulab.co.il/products/computer-on-modules/cm-t54/ Basic support includes: * Boot from MMC/SD and eMMC * USB * LAN Dmitry Lifshitz (4): ARM: OMAP5: add UART4 support ARM: OMAP5: Power: add LDO2 support for Palmas driver

[U-Boot] [PATCH 3/4] ARM: OMAP5: add CKO buffer control mask

2014-04-27 Thread Dmitry Lifshitz
Add CKOBUFFER_CLK_EN bit mask enabling FREF_XTAL_CLK clock. Signed-off-by: Dmitry Lifshitz --- arch/arm/include/asm/arch-omap5/clock.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-omap5/clock.h b/arch/arm/include/asm/arch-omap5/clock.h

[U-Boot] [PATCH 2/4] ARM: OMAP5: Power: add LDO2 support for Palmas driver

2014-04-27 Thread Dmitry Lifshitz
Add defines required to turn on LDO2 regulator. Signed-off-by: Dmitry Lifshitz --- include/palmas.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/palmas.h b/include/palmas.h index eaf3670..cca3f9a 100644 --- a/include/palmas.h +++ b/include/palmas.h

[U-Boot] [PATCH 1/3] cm-t54: add EEPROM support and MAC address handling

2014-04-27 Thread Dmitry Lifshitz
retrieved data. Signed-off-by: Dmitry Lifshitz Acked-by: Igor Grinberg --- board/compulab/cm_t54/cm_t54.c | 63 include/configs/cm_t54.h |9 ++ 2 files changed, 72 insertions(+), 0 deletions(-) diff --git a/board/compulab/cm_t54/cm_t54.c b

[U-Boot] [PATCH v2 4/4] cm-t54: add cm-t54 board support

2014-05-19 Thread Dmitry Lifshitz
Add cm-t54 board directory, config file. Enable build. Basic support includes: Serial console SD/MMC eMMC USB Ethernet Signed-off-by: Dmitry Lifshitz Acked-by: Igor Grinberg --- v2: * Fixed Makefile to use board file name explicitely instead of $(BOARD).o * Use CONFIG_SYS_SDRAM_BASE

Re: [U-Boot] [PATCH v3] env_mmc: correct fini partition to match init partition

2014-09-14 Thread Dmitry Lifshitz
ition setup in runtime") Signed-off-by: Peter A. Bigot Thank you for fixing this. Acked-by: Dmitry Lifshitz Dmitry ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 3/3] omap3: cm-t3517: change environment size

2015-09-08 Thread Dmitry Lifshitz
Mainline CM-T3517 U-Boot environment size differs from the that one shipped with CM-T3517 boards. Update environment size, to avoid backward compatability issues. Signed-off-by: Dmitry Lifshitz --- include/configs/cm_t3517.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH 2/3] omap3: cm-t3517: fix MMC1 pinmux

2015-09-08 Thread Dmitry Lifshitz
Fix MMC1 pinmux setup, thus enable SD/MMC card support with CM-T3517. Signed-off-by: Dmitry Lifshitz --- board/compulab/cm_t3517/mux.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/board/compulab/cm_t3517/mux.c b/board/compulab/cm_t3517/mux.c index 88ce2cc

[U-Boot] [PATCH 1/3] omap3: cm-t3517: enable 'netretry' and setup timeout

2015-09-08 Thread Dmitry Lifshitz
SBC-T3517 evaluation board has two Eth interfaces. Enable network retry of another interface if the default if failed or disconnected. Add 'netretry=yes' in the default env. Setup relevant timeout values in the board config file. Signed-off-by: Dmitry Lifshitz --- include/configs/

[U-Boot] [PATCH 0/3] omap3: cm-t3517: series of non critical fixes

2015-09-08 Thread Dmitry Lifshitz
These patches fix non critical issues, required to sync CM-T3517 mainline U-Boot with the that, shipped with the boards. Dmitry Lifshitz (3): omap3: cm-t3517: enable 'netretry' and setup timeout omap3: cm-t3517: fix MMC1 pinmux omap3: cm-t3517: change environment size boar

[U-Boot] [PATCH v2 3/3] omap3: cm-t3517: change environment size

2015-09-09 Thread Dmitry Lifshitz
Mainline CM-T3517 U-Boot environment size differs from that one shipped with CM-T3517 boards. Update environment size, to avoid backward compatibility issues. Signed-off-by: Dmitry Lifshitz --- Changes in v2: * Removed unjustified CONFIG_SYS_MALLOC_LEN change. include/configs/cm_t3517

[U-Boot] [PATCH] omap3: cm-t3517: define CONFIG_MACH_TYPE

2015-09-09 Thread Dmitry Lifshitz
Define CONFIG_MACH_TYPE to allow non DT Linux boot. Signed-off-by: Dmitry Lifshitz --- include/configs/cm_t3517.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/cm_t3517.h b/include/configs/cm_t3517.h index fbc10dd..27c023c 100644 --- a/include/configs

[U-Boot] [PATCH] omap3: cm-t3517: add board specific get_board_rev()

2015-10-08 Thread Dmitry Lifshitz
CM-T3517 has several HW revisions. Add board specific get_board_rev() callback to retrieve revision number. Signed-off-by: Dmitry Lifshitz --- board/compulab/cm_t3517/cm_t3517.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/board/compulab/cm_t3517/cm_t3517.c

Re: [U-Boot] Ask for help: Compulab CM-510 U-boot version: Load Kernel from SD-Card

2015-03-03 Thread Dmitry Lifshitz
Hi Gabriel, Try fixing CM-A510 related code: mvBoardEnvSpec.h ... ... /* CM-A510 */ #define CM_A510_MPP0_7 0x0033 #define CM_A510_MPP8_150x00445050 #define CM_A510_MPP16_23 0x4040 #define CM_

Re: [U-Boot] Ask for help: Compulab CM-510 U-boot version: Load Kernel from SD-Card

2015-03-04 Thread Dmitry Lifshitz
Hi Gabriel, On 03/04/2015 10:18 AM, Gabriel Dobato wrote: HI Dmitry, Thank you very much for your answer! I have tried it, but I get the same: CM-A510>> mmc init CM-A510>> mmcinfo 0 Device: MV_SDHCI Manufacturer ID: 0 OEM: 0 Name: Tran Speed: 0 Rd Block Len: 0 MMC version 0.0 High Capacity: N

Re: [U-Boot] Ask for help: Compulab CM-510 U-boot version: Load Kernel from SD-Card

2015-03-15 Thread Dmitry Lifshitz
Regards, Gabriel On 04/03/15 09:50, Dmitry Lifshitz wrote: Hi Gabriel, On 03/04/2015 10:18 AM, Gabriel Dobato wrote: HI Dmitry, Thank you very much for your answer! I have tried it, but I get the same: CM-A510>> mmc init CM-A510>> mmcinfo 0 Device: MV_SDHCI Manufacturer ID: 0 OEM

[U-Boot] [PATCH 3/5] OMAP5+: sata/scsi: implement scsi_bus_reset()

2014-12-15 Thread Dmitry Lifshitz
Implement missing scsi_bus_reset() for SCSI subsystem commands on OMAP platforms. Signed-off-by: Dmitry Lifshitz --- arch/arm/cpu/armv7/omap-common/sata.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/omap-common/sata.c b/arch/arm/cpu/armv7

[U-Boot] [PATCH 2/5] ahci-plat: provide a weak scsi_bus_reset() hook

2014-12-15 Thread Dmitry Lifshitz
This allow the platform to handle a custom reset sequence. Signed-off-by: Dmitry Lifshitz --- drivers/block/ahci.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 12ed5e3..37d2d2a 100644 --- a/drivers/block/ahci.c

[U-Boot] [PATCH 4/5] arm: omap: reset sata on boot

2014-12-15 Thread Dmitry Lifshitz
On OMAP platforms (like OMAP5) Linux kernel fails to detect a SATA device if it is used by U-Boot. It happens because U-Boot does not reset SATA controller before boot. Reset the controller on OS boot so that Linux will have a clean state to work with. Signed-off-by: Dmitry Lifshitz --- arch

[U-Boot] [PATCH 1/5] ahci: introduce ahci_reset()

2014-12-15 Thread Dmitry Lifshitz
Extract controller reset code from ahci_host_init() into separate ahci_reset(). Signed-off-by: Dmitry Lifshitz --- drivers/block/ahci.c | 47 ++- include/ahci.h |1 + 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/drivers

[U-Boot] [PATCH 5/5] omap5: cm-t54: add sata support

2014-12-15 Thread Dmitry Lifshitz
Add configs required for SATA support on CM-T54 board. Signed-off-by: Dmitry Lifshitz --- include/configs/cm_t54.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/configs/cm_t54.h b/include/configs/cm_t54.h index 92ce1e1..0cd4aec 100644 --- a

[U-Boot] [PATCH 0/5] arm: omap: reset sata on OS boot

2014-12-15 Thread Dmitry Lifshitz
This series adds a SATA controller reset mechanism for OMAP platforms. On OMAP platforms SATA support is provided via SCSI subsystem. Implement missing SCSI reset command. Use the new functionality to reset SATA on OS boot. Dmitry Lifshitz (5): ahci: introduce ahci_reset() ahci-plat

Re: [U-Boot] [PATCH 4/5] arm: omap: reset sata on boot

2014-12-15 Thread Dmitry Lifshitz
Hi Tom, On 12/15/2014 07:00 PM, Tom Rini wrote: On Mon, Dec 15, 2014 at 04:02:58PM +0200, Dmitry Lifshitz wrote: On OMAP platforms (like OMAP5) Linux kernel fails to detect a SATA device if it is used by U-Boot. It happens because U-Boot does not reset SATA controller before boot. Reset the

[U-Boot] [PATCH v2] omap3: cm-t3517: add board specific get_board_rev()

2015-11-10 Thread Dmitry Lifshitz
CM-T3517 has several HW revisions. Add board specific get_board_rev() callback to retrieve revision number. Signed-off-by: Dmitry Lifshitz --- Igor, Tom I forgot to add a mailing list address in send-email. Resending the patch. v2: Make proper use of cl_eeprom_get_board_rev() parameter

Re: [U-Boot] [PATCH 2/7] ARM: BeagleBoard-X15: Enable HW leveling

2015-12-14 Thread Dmitry Lifshitz
evice. Set this value to 0x1." This contradicts with the following patch, enabling HW leveling for BeagleBoard-X15. Please, advice, if it save and required to apply HW leveling related registers settings. Does DRA7x DDR3 HW leveling code is relevant for AM57xx ? Thank you, Dmitry Lifshi

Re: [U-Boot] [PATCH 2/7] ARM: BeagleBoard-X15: Enable HW leveling

2015-12-16 Thread Dmitry Lifshitz
Hi Lokesh, On 12/16/2015 02:54 PM, Lokesh Vutla wrote: Hi, On Monday 14 December 2015 06:40 PM, Dmitry Lifshitz wrote: Hi Lokesh, We are working on U-Boot for CompuLab board based on AM57xx SoC (CL-SOM-AM57x). We figured out the following note in AM57xx TRM for EMIF register