Re: [U-Boot] [PATCH] ARM: board: cm_fx6: fix mtd partition fixup

2016-08-28 Thread Nikita Kiryanov
cannot be obtained. > > While on it, fix a spelling mistake in a comment introduced by the > same commit. Reviewed-by: Nikita Kiryanov > > Fixes: 62d6bac66038 ("ARM: board: cm_fx6: fixup mtd partitions in the fdt") > Signed-off-by: Christopher Spinrath > --- >

Re: [U-Boot] [PATCH v2 0/4] ARM: imx: enhance support for the cm-fx6 module

2016-07-14 Thread Nikita Kiryanov
Hi Christopher, Stefano, Whole series: Acked-by: Nikita Kiryanov On Tue, Jul 12, 2016 at 11:37:33PM +0200, christopher.spinr...@rwth-aachen.de wrote: > Hi, > > this is v2 of the series. To address the review comments of v1, v2 has an > addtional patch (2/4) touching include/f

Re: [U-Boot] [PATCH 2/3] ARM: board: cm_fx6: fixup mtd partitions in the fdt

2016-07-10 Thread Nikita Kiryanov
Hi Christopher, On Thu, Jul 07, 2016 at 03:30:25PM +0200, Christopher Spinrath wrote: > Hi Nikita, > > On 07/07/2016 10:53 AM, Nikita Kiryanov wrote: > > On Wed, Jun 22, 2016 at 07:17:53PM +0300, Igor Grinberg wrote: > >> On 06/19/2016 06:44 PM, Christopher Spinrath

Re: [U-Boot] [PATCH 2/3] ARM: board: cm_fx6: fixup mtd partitions in the fdt

2016-07-07 Thread Nikita Kiryanov
On Wed, Jun 22, 2016 at 07:17:53PM +0300, Igor Grinberg wrote: > On 06/19/2016 06:44 PM, Christopher Spinrath wrote: > > The cm-fx6 module has an on-board st,m25p compatible spi flash chip > > used for u-boot (binary & environment). Overwrite the partitions in > > the device tree by the partition t

Re: [U-Boot] [PATCH 1/3] ARM: configs: cm_fx6: improve default environment

2016-07-07 Thread Nikita Kiryanov
ossible boot device. > > Introduce new variables for kernel image locations and boot device > independent kernel parameters to make it easier to change these > settings. Reviewed-by: Nikita Kiryanov > > Signed-off-by: Christopher Spinrath > --- > include/configs/

Re: [U-Boot] [PATCH] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-16 Thread Nikita Kiryanov
Hi Christopher, On Wed, Jun 15, 2016 at 05:38:10PM +0200, Christopher Spinrath wrote: > Hi Nikita, > > On 06/15/2016 05:15 PM, Nikita Kiryanov wrote: > > Hi CHristopher, > > > > On Wed, Jun 08, 2016 at 09:02:36PM +0200, Christopher Spinrath wrote: > >> Old

Re: [U-Boot] [PATCH] ARM: board: cm-fx6: fix mmc for old revisions of utilite

2016-06-15 Thread Nikita Kiryanov
> > Add the broken-cd property to the mmc device tree instead of the > non-removable property to make card detection possible if polling > is supported. Acked-by: Nikita Kiryanov One nit-pick below: > > Fixes: 41855186afd3 ("arm: mx6: cm-fx6: modify device tree for old

Re: [U-Boot] [PATCH v3] splash_source: add support for ubifs formatted nand

2016-06-09 Thread Nikita Kiryanov
Hi Eran, On Tue, Jun 07, 2016 at 10:38:37AM +0300, Eran Matityahu wrote: > Add support for loading splash image from NAND Flash formatted with a (UBI) > filesystem. Acked-by: Nikita Kiryanov > > Signed-off-by: Eran Matityahu > Cc: Heiko Schocher > Cc: Igor Grinberg &g

[U-Boot] SPI-flash write problem with SST25VF016B

2016-06-09 Thread Nikita Kiryanov
We assembled a CM-T43 module with the SST25VF016B SPI-flash, and the write command does not work. Reads and erases execute without reporting an error, but the write command fails and appears to place the chip into some undefined state. The chip works in Linux, and if I program SPL/U-Boot to the S

Re: [U-Boot] [PATCH v2] splash_source: add support for ubifs formatted nand

2016-06-01 Thread Nikita Kiryanov
devpart; /* Use the load command dev:part conventions */ > + u32 offset; /* Offset from start of storage */ > + char *devpart; /* Use the load command dev:part conventions */ The above two changes, as well as the header SDPX change, are unrelated to the subject of the patch. The

Re: [U-Boot] [PATCH 00/12] Introduce layout aware eeprom commands

2016-05-11 Thread Nikita Kiryanov
applied? On Mon, Apr 18, 2016 at 01:21:30PM +0200, Marek Vasut wrote: > On 04/18/2016 10:22 AM, Nikita Kiryanov wrote: > > On Sun, Apr 17, 2016 at 11:00:09PM +0200, Marek Vasut wrote: > >> On 04/17/2016 12:33 PM, Nikita Kiryanov wrote: > >>> Hi Marek, > >>>

Re: [U-Boot] [PATCH 00/12] Introduce layout aware eeprom commands

2016-04-18 Thread Nikita Kiryanov
On Sun, Apr 17, 2016 at 11:00:09PM +0200, Marek Vasut wrote: > On 04/17/2016 12:33 PM, Nikita Kiryanov wrote: > > Hi Marek, > > > > On Sun, Apr 17, 2016 at 11:47:23AM +0200, Marek Vasut wrote: > >> On 04/16/2016 04:55 PM, Nikita Kiryanov wrote: > >>>

Re: [U-Boot] [PATCH] splash_source: add support for ubifs formatted nand

2016-04-17 Thread Nikita Kiryanov
this. > > Signed-off-by: Eran Matityahu > Cc: Igor Grinberg > Cc: Tom Rini > Cc: Nikita Kiryanov > --- > common/splash_source.c | 50 > ++ > include/splash.h | 6 -- > 2 files changed, 50 insertions(+), 6 d

Re: [U-Boot] [PATCH 00/12] Introduce layout aware eeprom commands

2016-04-17 Thread Nikita Kiryanov
Hi Marek, On Sun, Apr 17, 2016 at 11:47:23AM +0200, Marek Vasut wrote: > On 04/16/2016 04:55 PM, Nikita Kiryanov wrote: > > This series introduces eeprom layout aware capabilities to the existing > > eeprom > > command, and then enables this feature on Compulab boards. It

[U-Boot] [PATCH 02/12] cmd: eeprom: add support for layout aware commands

2016-04-16 Thread Nikita Kiryanov
types of eeprom fields. Can be used for defining custom layouts. Cc: Heiko Schocher Cc: Marek Vasut Cc: Simon Glass Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- README| 1 + cmd/eeprom.c | 148

[U-Boot] [PATCH 01/12] cmd: eeprom: add bus switching support for all i2c drivers

2016-04-16 Thread Nikita Kiryanov
-off-by: Nikita Kiryanov --- cmd/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 571240a..75def98 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -68,7 +68,7 @@ void eeprom_init(int bus) #endif /* I2C EEPROM */ -#if defined

[U-Boot] [PATCH 00/12] Introduce layout aware eeprom commands

2016-04-16 Thread Nikita Kiryanov
50 MAC address e6:00:ff:ff:01:02 Board Revision0304 Serial Number 0506 Board Configuration �Tw8� Reserved fields (176 bytes) CM-T43 # Cc: Heiko Schocher Cc: Marek Vasut Cc: Simon Glass Cc: Igor Grinberg Cc: T

[U-Boot] [PATCH 03/12] compulab: add support for layout aware eeprom commands

2016-04-16 Thread Nikita Kiryanov
Add layout definitions and implement functions for field printing/updating, layout detection, layout assignment, and layout parsing. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- board/compulab/common/eeprom.c | 344 + 1 file changed

[U-Boot] [PATCH 12/12] eeprom: merge cmdline parsing of eeprom commands

2016-04-16 Thread Nikita Kiryanov
Glass Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- cmd/eeprom.c | 117 +++ 1 file changed, 53 insertions(+), 64 deletions(-) diff --git a/cmd/eeprom.c b/cmd/eeprom.c index cc973ca..b35f5f9 100644 --- a/cmd/eeprom.c +++ b

[U-Boot] [PATCH 05/12] arm: cm-t335: add support for eeprom layout comands

2016-04-16 Thread Nikita Kiryanov
Add support for EEPROM and EEPROM layout commands for CM-T335. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- include/configs/cm_t335.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/cm_t335.h b/include/configs/cm_t335.h index adf05b1

[U-Boot] [PATCH 11/12] eeprom: use eeprom_execute_command for all eeprom functions

2016-04-16 Thread Nikita Kiryanov
Update eeprom_execute_command() and related code to accommodate both layout aware and layout unaware functions. No functional changes. Cc: Heiko Schocher Cc: Marek Vasut Cc: Simon Glass Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- cmd/eeprom.c | 59

[U-Boot] [PATCH 07/12] arm: cm-t3517: add support for eeprom layout comands

2016-04-16 Thread Nikita Kiryanov
Add support for EEPROM and EEPROM layout commands for CM-T3517. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- include/configs/cm_t3517.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/cm_t3517.h b/include/configs/cm_t3517.h index d8a29f0

[U-Boot] [PATCH 09/12] arm: cm-t43: add support for eeprom layout comands

2016-04-16 Thread Nikita Kiryanov
Add support for EEPROM and EEPROM layout commands for CM-T43. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- include/configs/cm_t43.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/cm_t43.h b/include/configs/cm_t43.h index 1c1951c..598e7c1

[U-Boot] [PATCH 10/12] eeprom: refactor i2c bus and devaddr parsing

2016-04-16 Thread Nikita Kiryanov
Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- cmd/eeprom.c | 79 1 file changed, 53 insertions(+), 26 deletions(-) diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 114d68f..27daf59 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c

[U-Boot] [PATCH 08/12] arm: cm-t35: add support for eeprom layout comands

2016-04-16 Thread Nikita Kiryanov
Add support for EEPROM and EEPROM layout commands for CM-T35. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- include/configs/cm_t35.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h index 3910b46..9496e24

[U-Boot] [PATCH 06/12] arm: cm-t54: add support for eeprom layout comands

2016-04-16 Thread Nikita Kiryanov
Add support for EEPROM and EEPROM layout commands for CM-T54. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- include/configs/cm_t54.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/cm_t54.h b/include/configs/cm_t54.h index c8c67c4..8e48128

[U-Boot] [PATCH 04/12] arm: cm-fx6: add support for eeprom layout comands

2016-04-16 Thread Nikita Kiryanov
Add support for EEPROM and EEPROM layout commands for CM-FX6. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- include/configs/cm_fx6.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h index b36ba14..3e6c228

[U-Boot] [PATCH] arm: am437x: cm-t43: bring back BOOTDELAY feature

2016-02-21 Thread Nikita Kiryanov
config_distro_defaults.h (#define CONFIG_BOOTDELAY 2) dance in cm_t43.h is no longer valid and in fact leads to CONFIG_BOOTDELAY not being defined. Adapt the config file to the new inclusion hierarchy. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- NOTE: this

[U-Boot] [PATCH 04/10] arm: am437x: cm-t43: define prompt

2016-02-19 Thread Nikita Kiryanov
Define prompt for cm-t43. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_t43_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/cm_t43_defconfig b/configs/cm_t43_defconfig index 672117a..d1da759 100644 --- a/configs

[U-Boot] [PATCH 08/10] arm: am437x: cm-t43: get rid of enable_vtt_regulator()

2016-02-19 Thread Nikita Kiryanov
CM-T43 does not have a vtt regulator. Remove the function that's supposed to enable it. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_t43/spl.c | 12 1 file changed, 12 deletions(-) diff --git a/board/compulab/c

[U-Boot] [PATCH 10/10] arm: am437x: cm-t43: update parameters for raw mmc boot

2016-02-19 Thread Nikita Kiryanov
Update U-Boot offset and size for raw mmc boot. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- include/configs/cm_t43.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/cm_t43.h b/include/configs/cm_t43.h index 329a5ea..ae15095

[U-Boot] [PATCH 06/10] pmic: tps65218: add useful functions and defines

2016-02-19 Thread Nikita Kiryanov
: Nikita Kiryanov --- drivers/power/pmic/pmic_tps65218.c | 56 ++ include/power/tps65218.h | 12 2 files changed, 68 insertions(+) diff --git a/drivers/power/pmic/pmic_tps65218.c b/drivers/power/pmic/pmic_tps65218.c index dbc7a73..0fd0ad4

[U-Boot] [PATCH 07/10] arm: am437x: cm-t43: set tps fseal bit

2016-02-19 Thread Nikita Kiryanov
Set TPS65218 FSEAL bit to 1 so that RTC could be powered using on-board 3V battery. This is necessary so that time and date will survive reboots and power offs. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_t43/cm_t43.c | 9

[U-Boot] [PATCH 01/10] arm: am437x: cm-t43: fix cm-t43 boot

2016-02-19 Thread Nikita Kiryanov
spl_board_init() is necessary for boot. Remove the #undef that keeps it out of the boot sequence. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- include/configs/cm_t43.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/cm_t43.h b

[U-Boot] [PATCH 00/10] cm-t43 maintenance

2016-02-19 Thread Nikita Kiryanov
This is a bugfix series for cm-t43 resolving issues with boot and power supply, as well as some cleanups and minor adjustments. It also update raw mmc boot parameters for cm-t43, and adds some useful features to the tps65218 driver. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Nikita

[U-Boot] [PATCH 05/10] arm: am437x: cm-t43: split board file

2016-02-19 Thread Nikita Kiryanov
Simplify the board file by splitting it to spl portion and u-boot portion. Some unnecessary includes were identified and removed. No functional changes. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_t43/Makefile | 6 +- board

[U-Boot] [PATCH 03/10] arm: am437x: cm-t43: support all available SPI flash chips

2016-02-19 Thread Nikita Kiryanov
Add full support for SPI flash chips to future-proof U-Boot for cm-t43. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_t43_defconfig | 11 +++ include/configs/cm_t43.h | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH 09/10] arm: am437x: cm-t43: set MPU and CORE voltages on boot

2016-02-19 Thread Nikita Kiryanov
reboot and the module will likely hang once U-Boot raises the CPU frequency back up. Set both CORE and MPU regulators to to 1.1V on boot. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_t43/spl.c | 15 +++ include/configs/cm_t43

[U-Boot] [PATCH 02/10] arm: am437x: cm-t43: migrate CONFIG_DM_SERIAL to config file

2016-02-19 Thread Nikita Kiryanov
Move CONFIG_DM_SERIAL to cm_t43_defconfig. This forces us to update the CONFIG_SYS_NS16550_REG_SIZE value for SPL. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_t43_defconfig | 1 + include/configs/cm_t43.h | 4 +++- 2 files changed, 4

Re: [U-Boot] [PATCH V2] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS

2016-02-19 Thread Nikita Kiryanov
ard hangs. This patch allows to try MMCSD_MODE_FS then. > > It has been tested on a beaglebone black to boot on an EXT partition. Acked-by: Nikita Kiryanov > > Signed-off-by: Guillaume GARDET > Cc: Tom Rini > Cc: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Paul Kocialkowsk

Re: [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available

2016-02-18 Thread Nikita Kiryanov
On Thu, Feb 18, 2016 at 05:11:46PM +0100, Guillaume Gardet wrote: > > > Le 18/02/2016 17:07, Nikita Kiryanov a écrit : > >On Thu, Feb 18, 2016 at 09:36:01AM -0500, Tom Rini wrote: > >>On Thu, Feb 18, 2016 at 04:25:29PM +0200, Nikita Kiryanov wrote: > >>>On T

Re: [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available

2016-02-18 Thread Nikita Kiryanov
On Thu, Feb 18, 2016 at 09:36:01AM -0500, Tom Rini wrote: > On Thu, Feb 18, 2016 at 04:25:29PM +0200, Nikita Kiryanov wrote: > > On Thu, Feb 18, 2016 at 02:31:08PM +0100, Guillaume Gardet wrote: > > > > > > > > > Le 18/02/2016 14:07, Nikita Kiryanov a écrit :

Re: [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available

2016-02-18 Thread Nikita Kiryanov
On Thu, Feb 18, 2016 at 02:31:08PM +0100, Guillaume Gardet wrote: > > > Le 18/02/2016 14:07, Nikita Kiryanov a écrit : > >On Thu, Feb 18, 2016 at 11:06:32AM +0100, Guillaume Gardet wrote: > >>Hi Tom, Nikita , > >> > >>Le 18/02/2016 10:19, Nikita

Re: [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available

2016-02-18 Thread Nikita Kiryanov
On Thu, Feb 18, 2016 at 11:06:32AM +0100, Guillaume Gardet wrote: > Hi Tom, Nikita , > > Le 18/02/2016 10:19, Nikita Kiryanov a écrit : > >Hi Tom, Guillaume, > > > >On Wed, Feb 17, 2016 at 03:27:22PM -0500, Tom Rini wrote: > >>On Wed, Feb 17, 2016 at 09:0

Re: [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available

2016-02-18 Thread Nikita Kiryanov
gt; > RAW and FS boot modes are now exclusive again. So, if MMCSD_MODE_RAW fails, > > the > > board hangs. This patch allows to try MMCSD_MODE_FS then, if available. > > > > It has been tested on a beaglebone black to boot on an EXT partition. > > > > Signe

Re: [U-Boot] [PATCH v3 1/3] spl: mmc: Fix compiler warning with CONFIG_DM_MMC

2015-12-03 Thread Nikita Kiryanov
ock_read(0, sector, 1, header); > ^ > common/spl/spl_mmc.c:251:14: note: ‘mmc’ was declared here > struct mmc *mmc; > > Correct this by move the variable init earlier. Acked-by: Nikita Kiryanov > > Signed-off-by:

Re: [U-Boot] [PATCH 2/3] spl: mmc: Rename 'mmc' variable to 'mmcp'

2015-12-01 Thread Nikita Kiryanov
On Mon, Nov 30, 2015 at 10:19:07AM -0700, Simon Glass wrote: > The 'p' suffix makes it more obvious that we are dealing with a pointer > to a (pointer) value that will be returned to its caller. Acked-by: Nikita Kiryanov > > Signed-off-by: Simon Glass > --- >

Re: [U-Boot] [PATCH 1/3] spl: mmc: Fix compiler warning with CONFIG_DM_MMC

2015-12-01 Thread Nikita Kiryanov
Hi Simon, On Mon, Nov 30, 2015 at 10:19:06AM -0700, Simon Glass wrote: > Since commit 4188ba3 we get the following warning on rockchip boards: > > common/spl/spl_mmc.c:111:10: error: 'mmc' undeclared (first use in this > function) > > Correct this by move the variable init earlier. This looks

Re: [U-Boot] [U-Boot, V4, 10/13] spl: add support for alternative boot device

2015-11-19 Thread Nikita Kiryanov
Hi Tom, On Wed, Nov 18, 2015 at 05:33:20PM -0500, Tom Rini wrote: > On Sun, Nov 08, 2015 at 05:11:51PM +0200, Nikita Kiryanov wrote: > > > Introduce spl_boot_list array, which defines a list of boot devices > > that SPL will try before hanging. By default this list will c

Re: [U-Boot] [PATCH V2 0/5] Add support for additional splash screen locations

2015-11-15 Thread Nikita Kiryanov
Adding Stefano to CC. On Sun, Nov 15, 2015 at 10:14:37AM +0200, Nikita Kiryanov wrote: > Ping^2! > > On Sun, Nov 08, 2015 at 10:27:16AM +0200, Nikita Kiryanov wrote: > > Ping! > > > > On Thu, Oct 29, 2015 at 11:54:39AM +0200, Nikita Kiryanov wrote: > >

Re: [U-Boot] [PATCH V2 0/5] Add support for additional splash screen locations

2015-11-15 Thread Nikita Kiryanov
Ping^2! On Sun, Nov 08, 2015 at 10:27:16AM +0200, Nikita Kiryanov wrote: > Ping! > > On Thu, Oct 29, 2015 at 11:54:39AM +0200, Nikita Kiryanov wrote: > > This series adds the following functionality to the splash_source library: > > - load splash image from filesystem

[U-Boot] [PATCH V4 13/13] spl: mmc: add support for BOOT_DEVICE_MMC2

2015-11-08 Thread Nikita Kiryanov
Currently the mmc device that SPL looks at is always mmc0, regardless of the BOOT_DEVICE_MMCx value. This forces some boards to implement hacks in order to boot from other mmc devices. Make SPL take into account the correct mmc device. Signed-off-by: Nikita Kiryanov Reviewed-by: Tom Rini

[U-Boot] [PATCH V4 04/13] spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check

2015-11-08 Thread Nikita Kiryanov
Implement default versions of falcon mode functions to make the CONFIG_SPL_OS_BOOT check in spl_mmc_load_image() unnecessary, thus reducing its #ifdef complexity. No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini

[U-Boot] [PATCH V4 02/13] spl: mmc: add break statements in spl_mmc_load_image()

2015-11-08 Thread Nikita Kiryanov
reak statements between the cases to make the function try only one boot mode. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes in V4: - No changes.

[U-Boot] [PATCH V4 08/13] spl: change return values of spl_*_load_image()

2015-11-08 Thread Nikita Kiryanov
, they return normally and SPL proceeds to boot the contents of the load address. This is considered a bug and is rectified by hanging on error for these devices as well. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass Cc: Ian Campbell Cc: Hans De Goede Cc: Albert

[U-Boot] [PATCH V4 12/13] arm: mx6: cm-fx6: define fallback boot devices for spl

2015-11-08 Thread Nikita Kiryanov
Use spl alternate boot device feature to define fallback to the main boot device as it is defined by hardware. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Reviewed-by: Tom Rini Reviewed-by: Stefano Babic --- Changes in V4: - No changes. Changes

[U-Boot] [PATCH V4 07/13] spl: mmc: get rid of emmc boot code duplication

2015-11-08 Thread Nikita Kiryanov
Get rid of emmc boot code duplication in spl_mmc_load_image() using a switch case fallthrough into MMCSD_MODE_RAW. Since the #ifdef CONFIG_SUPPORT_EMMC_BOOT check is not really necessary, remove it in the process. No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul

[U-Boot] [PATCH V4 11/13] spl: announce boot devices

2015-11-08 Thread Nikita Kiryanov
Now that we support alternative boot devices, it can sometimes be unclear which boot devices was actually used. Provide a function to announce which boot devices are attempted during boot. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass Reviewed-by: Tom Rini

[U-Boot] [PATCH V4 10/13] spl: add support for alternative boot device

2015-11-08 Thread Nikita Kiryanov
Introduce spl_boot_list array, which defines a list of boot devices that SPL will try before hanging. By default this list will consist of only spl_boot_device(), but board_boot_order() can be overridden by board code to populate the array with custom values. Signed-off-by: Nikita Kiryanov Cc

[U-Boot] [PATCH V4 06/13] spl: mmc: move fs boot into its own function

2015-11-08 Thread Nikita Kiryanov
Move the code that handles fs boot out of spl_mmc_load_image() and into its own function to reduce the #ifdef complexity of spl_mmc_load_image(). No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass

[U-Boot] [PATCH V4 01/13] spl: nand: remove code duplication

2015-11-08 Thread Nikita Kiryanov
Remove code duplication in spl_nand_load_image(). No functional changes. Signed-off-by: Nikita Kiryanov Cc: Scott Wood Cc: Igor Grinberg Acked-by: Scott Wood Reviewed-by: Simon Glass --- Changes in V4: - No changes. Changes in V3: - No changes. Changes in V2: - No

[U-Boot] [PATCH V4 00/13] SPL mmc refactor and alternate boot device feature

2015-11-08 Thread Nikita Kiryanov
not compiled in. - Patch 13 is a new patch which makes SPL look at the value of BOOT_DEVICE_MMCx instead of always working with mmc0. A hack in sunxi boards that attempted to circumvent this issue is thus removed. - Rebased over current mainline. Nikita Kiryanov (13): spl: nand: remove c

[U-Boot] [PATCH V4 09/13] common: spl: move image load to its own function

2015-11-08 Thread Nikita Kiryanov
Refactor spl image load code out of board_init_r and into its own function. This is a preparation for supporting alternative boot devices. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes in V4

[U-Boot] [PATCH V4 05/13] spl: mmc: get rid of #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION check

2015-11-08 Thread Nikita Kiryanov
: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes in V4: - No changes. Changes in V3: - No changes. Changes in V2: - No changes. common/spl/spl_mmc.c

[U-Boot] [PATCH V4 03/13] spl: mmc: refactor device location code to its own function

2015-11-08 Thread Nikita Kiryanov
this refactor, we fail the moment there is an error. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass Reviewed-by: Simon Glass --- Changes in V4: - s/puts/printf/ Changes in V3: - No changes. Changes

Re: [U-Boot] [PATCH V2 0/5] Add support for additional splash screen locations

2015-11-08 Thread Nikita Kiryanov
Ping! On Thu, Oct 29, 2015 at 11:54:39AM +0200, Nikita Kiryanov wrote: > This series adds the following functionality to the splash_source library: > - load splash image from filesystem formatted usb storage > - load splash image from filesystem formatted mmc storage > - load splas

[U-Boot] [PATCH V3 11/13] spl: announce boot devices

2015-11-03 Thread Nikita Kiryanov
Now that we support alternative boot devices, it can sometimes be unclear which boot devices was actually used. Provide a function to announce which boot devices are attempted during boot. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass --- Changes in V3

[U-Boot] [PATCH V3 08/13] spl: change return values of spl_*_load_image()

2015-11-03 Thread Nikita Kiryanov
, they return normally and SPL proceeds to boot the contents of the load address. This is considered a bug and is rectified by hanging on error for these devices as well. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass Cc: Ian Campbell Cc: Hans De Goede Cc: Albert

Re: [U-Boot] [PATCH V2 11/13] spl: announce boot devices

2015-11-03 Thread Nikita Kiryanov
On Thu, Oct 29, 2015 at 11:19:53AM -0600, Simon Glass wrote: > Hi Nikita, > > On 28 October 2015 at 03:23, Nikita Kiryanov wrote: > > Now that we support alternative boot devices, it can sometimes be > > unclear which boot devices was actually used. Provide a function to &g

Re: [U-Boot] [PATCH V2 08/13] spl: change return values of spl_*_load_image()

2015-10-31 Thread Nikita Kiryanov
Hi Simon, On Thu, Oct 29, 2015 at 11:19:38AM -0600, Simon Glass wrote: > Hi Nikita, > > On 28 October 2015 at 03:23, Nikita Kiryanov wrote: > > Make spl_*_load_image() functions return a value instead of > > hanging if a problem is encountered. This enables main spl code >

Re: [U-Boot] [PATCH V2 10/13] spl: add support for alternative boot device

2015-10-31 Thread Nikita Kiryanov
On Thu, Oct 29, 2015 at 11:19:51AM -0600, Simon Glass wrote: > Hi Nikita, > > On 28 October 2015 at 03:23, Nikita Kiryanov wrote: > > Introduce spl_boot_list array, which defines a list of boot devices > > that SPL will try before hanging. By default this list wil

Re: [U-Boot] [PATCH V2 03/13] spl: mmc: refactor device location code to its own function

2015-10-31 Thread Nikita Kiryanov
Hi Simon, On Thu, Oct 29, 2015 at 11:19:16AM -0600, Simon Glass wrote: > Hi Nikita, > > On 28 October 2015 at 03:23, Nikita Kiryanov wrote: > > Simplify spl_mmc_load_image() code by moving the part that finds the mmc > > device > > into its own function spl_mmc_find

[U-Boot] [PATCH V2 0/5] Add support for additional splash screen locations

2015-10-29 Thread Nikita Kiryanov
code so that #ifdefs are outside of the functions. This affects patches 3 and 4. Cc: Igor Grinberg Cc: Tom Rini Nikita Kiryanov (5): splash_source: rename *_read() to *_read_raw() splash_source: add support for filesystem formatted mmc splash_source: add support for file

[U-Boot] [PATCH V2 1/5] splash_source: rename *_read() to *_read_raw()

2015-10-29 Thread Nikita Kiryanov
Rename raw read functions to *_read_raw() in preparation for supporting read_fs() feature. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov Acked-by: Igor Grinberg --- Changes in V2: - No changes. common/splash_source.c | 18 +- 1 file changed, 9

[U-Boot] [PATCH V2 2/5] splash_source: add support for filesystem formatted mmc

2015-10-29 Thread Nikita Kiryanov
Add support for loading splash image from an SD card formatted with a filesystem. Update boards to maintain original behavior where needed. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- Changes in V2: - Added "splashfile" env variable to select splash

[U-Boot] [PATCH V2 5/5] arm: mx6: cm-fx6: add splash locations to cm-fx6

2015-10-29 Thread Nikita Kiryanov
Add the following splash locations to cm-fx6: * filesystem formatted mmc * filesystem formatted usb * filesystem formatted sata Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov Acked-by: Igor Grinberg --- Changes in V2: - No changes. board/compulab/cm_fx6/cm_fx6.c | 18

[U-Boot] [PATCH V2 3/5] splash_source: add support for filesystem formatted usb

2015-10-29 Thread Nikita Kiryanov
Add support for loading splash image from USB drive formatted with a filesystem. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- Changes in V2: - Refactored device initialization code so that #ifdefs are outside of the functions. This affects patches 3 and 4

[U-Boot] [PATCH V2 4/5] splash_source: add support for filesystem formatted sata

2015-10-29 Thread Nikita Kiryanov
Add support for loading splashimage from filesystem formatted sata storage. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- Changes in V2: - Refactored device initialization code so that #ifdefs are outside of the functions. common/splash_source.c | 20

[U-Boot] [PATCH V2 08/13] spl: change return values of spl_*_load_image()

2015-10-28 Thread Nikita Kiryanov
, they return normally and SPL proceeds to boot the contents of the load address. This is considered a bug and is rectified by hanging on error for these devices as well. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass Cc: Ian Campbell Cc: Hans De Goede Cc: Albert

[U-Boot] [PATCH V2 13/13] spl: mmc: add support for BOOT_DEVICE_MMC2

2015-10-28 Thread Nikita Kiryanov
Currently the mmc device that SPL looks at is always mmc0, regardless of the BOOT_DEVICE_MMCx value. This forces some boards to implement hacks in order to boot from other mmc devices. Make SPL take into account the correct mmc device. Signed-off-by: Nikita Kiryanov Cc: Hans De Goede Cc: Tom

[U-Boot] [PATCH V2 09/13] common: spl: move image load to its own function

2015-10-28 Thread Nikita Kiryanov
Refactor spl image load code out of board_init_r and into its own function. This is a preparation for supporting alternative boot devices. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass --- Changes in V2: - No changes. common/spl/spl.c | 117

[U-Boot] [PATCH V2 11/13] spl: announce boot devices

2015-10-28 Thread Nikita Kiryanov
Now that we support alternative boot devices, it can sometimes be unclear which boot devices was actually used. Provide a function to announce which boot devices are attempted during boot. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass --- Changes in V2

[U-Boot] [PATCH V2 05/13] spl: mmc: get rid of #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION check

2015-10-28 Thread Nikita Kiryanov
: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass --- Changes in V2: - No changes. common/spl/spl_mmc.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c

[U-Boot] [PATCH V2 03/13] spl: mmc: refactor device location code to its own function

2015-10-28 Thread Nikita Kiryanov
this refactor, we fail the moment there is an error. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass --- Changes in V2: - No changes. common/spl/spl_mmc.c | 77

[U-Boot] [PATCH V2 12/13] arm: mx6: cm-fx6: define fallback boot devices for spl

2015-10-28 Thread Nikita Kiryanov
Use spl alternate boot device feature to define fallback to the main boot device as it is defined by hardware. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini --- Changes in V2: - No changes. board/compulab/cm_fx6/spl.c | 19

[U-Boot] [PATCH V2 07/13] spl: mmc: get rid of emmc boot code duplication

2015-10-28 Thread Nikita Kiryanov
Get rid of emmc boot code duplication in spl_mmc_load_image() using a switch case fallthrough into MMCSD_MODE_RAW. Since the #ifdef CONFIG_SUPPORT_EMMC_BOOT check is not really necessary, remove it in the process. No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul

[U-Boot] [PATCH V2 04/13] spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check

2015-10-28 Thread Nikita Kiryanov
Implement default versions of falcon mode functions to make the CONFIG_SPL_OS_BOOT check in spl_mmc_load_image() unnecessary, thus reducing its #ifdef complexity. No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini

[U-Boot] [PATCH V2 10/13] spl: add support for alternative boot device

2015-10-28 Thread Nikita Kiryanov
Introduce spl_boot_list array, which defines a list of boot devices that SPL will try before hanging. By default this list will consist of only spl_boot_device(), but board_boot_order() can be overridden by board code to populate the array with custom values. Signed-off-by: Nikita Kiryanov Cc

[U-Boot] [PATCH V2 06/13] spl: mmc: move fs boot into its own function

2015-10-28 Thread Nikita Kiryanov
Move the code that handles fs boot out of spl_mmc_load_image() and into its own function to reduce the #ifdef complexit of spl_mmc_load_image(). No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass

[U-Boot] [PATCH V2 00/13] SPL mmc refactor and alternate boot device feature

2015-10-28 Thread Nikita Kiryanov
always working with mmc0. A hack in sunxi boards that attempted to circumvent this issue is thus removed. - Rebased over current mainline. Nikita Kiryanov (13): spl: nand: remove code duplication spl: mmc: add break statements in spl_mmc_load_image() spl: mmc: refactor device location code to

[U-Boot] [PATCH V2 01/13] spl: nand: remove code duplication

2015-10-28 Thread Nikita Kiryanov
Remove code duplication in spl_nand_load_image(). No functional changes. Signed-off-by: Nikita Kiryanov Cc: Scott Wood Cc: Igor Grinberg Acked-by: Scott Wood --- Changes in V2: - No changes. common/spl/spl_nand.c | 31 --- 1 file changed, 16 insertions

[U-Boot] [PATCH V2 02/13] spl: mmc: add break statements in spl_mmc_load_image()

2015-10-28 Thread Nikita Kiryanov
reak statements between the cases to make the function try only one boot mode. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass --- Changes in V2: - Removed hang() in default cases, moved default case into ifdef

Re: [U-Boot] [PATCH 3/5] splash_source: add support for filesystem formatted usb

2015-10-26 Thread Nikita Kiryanov
On Fri, Oct 23, 2015 at 04:12:01PM +0300, Igor Grinberg wrote: > On 10/23/15 13:23, Nikita Kiryanov wrote: > > On Wed, Oct 21, 2015 at 04:01:46PM +0300, Igor Grinberg wrote: > >> On 08/30/15 11:42, Nikita Kiryanov wrote: > >>> Add support for loading splash image f

Re: [U-Boot] [PATCH 2/5] splash_source: add support for filesystem formatted mmc

2015-10-23 Thread Nikita Kiryanov
On Wed, Oct 21, 2015 at 03:25:58PM +0300, Igor Grinberg wrote: > Hi Nikita, > > On 08/30/15 11:42, Nikita Kiryanov wrote: > > Add support for loading splash image from an SD card formatted with > > a filesystem. Update boards to maintain original behavior where needed. >

Re: [U-Boot] [PATCH 3/5] splash_source: add support for filesystem formatted usb

2015-10-23 Thread Nikita Kiryanov
On Wed, Oct 21, 2015 at 04:01:46PM +0300, Igor Grinberg wrote: > On 08/30/15 11:42, Nikita Kiryanov wrote: > > Add support for loading splash image from USB drive formatted with a > > filesystem. > > > > Cc: Igor Grinberg > > Cc: Tom Rini &

Re: [U-Boot] [PATCH 00/12] SPL mmc refactor and alternate boot device feature

2015-10-23 Thread Nikita Kiryanov
Hi Otavio, On Thu, Oct 22, 2015 at 10:24:57AM -0200, Otavio Salvador wrote: > On Thu, Oct 22, 2015 at 10:01 AM, Nikita Kiryanov > wrote: > > This series has two parts: patches 1-7 perform refactors aimed at reducing > > the > > ifdef complexity of SPL mmc code (and

Re: [U-Boot] [PATCH 03/12] spl: mmc: refactor device location code to its own function

2015-10-22 Thread Nikita Kiryanov
Hi, On Thu, Oct 22, 2015 at 02:42:22PM +0200, Hans de Goede wrote: > Hi, > > On 22-10-15 14:01, Nikita Kiryanov wrote: > >Simplify spl_mmc_load_image() code by moving the part that finds the mmc > >device > >into its own function spl_mmc_find_device(), available in tw

Re: [U-Boot] [PATCH 02/12] spl: mmc: add break statements in spl_mmc_load_image()

2015-10-22 Thread Nikita Kiryanov
Hi, On Thu, Oct 22, 2015 at 03:23:21PM +0200, Hans de Goede wrote: > Hi, > > On 22-10-15 15:08, Nikita Kiryanov wrote: > >On Thu, Oct 22, 2015 at 02:37:11PM +0200, Hans de Goede wrote: > >>Hi, > >> > >>On 22-10-15 14:01, Nikit

Re: [U-Boot] [PATCH 05/12] spl: mmc: get rid of #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION check

2015-10-22 Thread Nikita Kiryanov
On Thu, Oct 22, 2015 at 02:47:29PM +0200, Hans de Goede wrote: Hi Hans, > Hi, > > On 22-10-15 14:01, Nikita Kiryanov wrote: > >Implement defaults for the raw partition image loading so that the #ifdef > >CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION in spl_mmc_load_image()

Re: [U-Boot] [PATCH 02/12] spl: mmc: add break statements in spl_mmc_load_image()

2015-10-22 Thread Nikita Kiryanov
On Thu, Oct 22, 2015 at 02:37:11PM +0200, Hans de Goede wrote: > Hi, > > On 22-10-15 14:01, Nikita Kiryanov wrote: > >The original intention of the mmc load_image() function was to try multiple > >boot modes before failing. This is evident by the lack of break statements >

  1   2   3   4   5   6   7   >