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

2015-10-22 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 07/12] spl: mmc: get rid of emmc boot code duplication

2015-10-22 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 08/12] spl: change return values of spl_*_load_image()

2015-10-22 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 12/12] arm: mx6: cm-fx6: define fallback boot devices for spl

2015-10-22 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 --- board/compulab/cm_fx6/spl.c | 19 ++- include/configs/cm_fx6.h| 1 - 2 files

[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
: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Tom Rini Cc: Simon Glass --- 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 index f0c4d56..fbdcf0d 100644 --- a

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

2015-10-22 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 01/12] spl: nand: remove code duplication

2015-10-22 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 --- common/spl/spl_nand.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/common/spl/spl_nand.c b

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

2015-10-22 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 --- common/spl/spl.c | 117

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

2015-10-22 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 --- common/spl/spl_mmc.c | 77 +--- 1 file changed, 55 insertions

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

2015-10-22 Thread Nikita Kiryanov
Nikita Kiryanov (12): spl: nand: remove code duplication spl: mmc: add break statements in spl_mmc_load_image() spl: mmc: refactor device location code to its own function spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check spl: mmc: get rid of #ifdef

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

2015-10-22 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 --- common/spl/spl_mmc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff

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

2015-10-22 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 --- common/spl/spl.c | 86

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

2015-10-22 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

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

2015-10-21 Thread Nikita Kiryanov
Now that the merge window is open: ping! On Sun, Aug 30, 2015 at 11:42:31AM +0300, 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 form

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

2015-09-21 Thread Nikita Kiryanov
Gentle ping. On Sun, Aug 30, 2015 at 11:42:31AM +0300, 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

Re: [U-Boot] [PATCH V2 0/4] cm-fx6 updates for Utilite

2015-09-16 Thread Nikita Kiryanov
On Wed, Sep 16, 2015 at 01:10:45PM +0300, Igor Grinberg wrote: > Hi Stefano, > > On 09/13/15 11:36, Stefano Babic wrote: > > > > > > On 06/09/2015 10:48, Nikita Kiryanov wrote: > >> This series provides a fix necessary for early models of Utilite, a > &g

[U-Boot] [PATCH V2 0/4] cm-fx6 updates for Utilite

2015-09-06 Thread Nikita Kiryanov
read failures in a more explicit way Nikita Kiryanov (4): compulab: eeprom: select i2c bus when querying for board rev compulab: eeprom: propagate error value in read_mac_addr() compulab: eeprom: add support for obtaining product name arm: mx6: cm-fx6: modify device tree for old

[U-Boot] [PATCH V2 2/4] compulab: eeprom: propagate error value in read_mac_addr()

2015-09-06 Thread Nikita Kiryanov
cl_eeprom_read_mac_addr() doesn't differentiate between success case and inability to access eeprom. Fix this by propagating the return value of cl_eeprom_setup(). Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- Changes in V2: - New patch board/compulab/c

[U-Boot] [PATCH V2 4/4] arm: mx6: cm-fx6: modify device tree for old revisions of utilite

2015-09-06 Thread Nikita Kiryanov
. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- Changes in V2: - #define USDHC3_PATH instead of const variable usdhc3_path - Do not update device tree on eeprom read failures in a more explicit way board/compulab/cm_fx6/cm_fx6.c

[U-Boot] [PATCH V2 3/4] compulab: eeprom: add support for obtaining product name

2015-09-06 Thread Nikita Kiryanov
Introduce cl_eeprom_get_product_name() for obtaining product name from the eeprom. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- Changes in V2: - s/BOARD_PRODUCT_NAME_*/PRODUCT_NAME_* - Added documentation - rewrote cl_eeprom_get_product_name

[U-Boot] [PATCH V2 1/4] compulab: eeprom: select i2c bus when querying for board rev

2015-09-06 Thread Nikita Kiryanov
Add support for selecting which eeprom is queried for board revision by extending cl_eeprom_get_board_rev() to accept an i2c bus number. Cc: Stefano Babic Cc: Igor Grinberg Acked-by: Igor Grinberg Signed-off-by: Nikita Kiryanov --- Changes in V2: - No changes board/compulab/cm_fx6

[U-Boot] [PATCH 3/3] arm: mx6: cm-fx6: modify device tree for old revisions of utilite

2015-09-02 Thread Nikita Kiryanov
. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 16 1 file changed, 16 insertions(+) diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index 572111d..c8e980d 100644 --- a/board/compulab/cm_fx6/cm_

[U-Boot] [PATCH 2/3] compulab: eeprom: add support for obtaining product name

2015-09-02 Thread Nikita Kiryanov
Introduce cl_eeprom_get_product_name() for obtaining product name from the eeprom. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/common/eeprom.c | 19 +++ board/compulab/common/eeprom.h | 5 + 2 files changed, 24 insertions(+) diff

[U-Boot] [PATCH 1/3] compulab: eeprom: select i2c bus when querying for board rev

2015-09-02 Thread Nikita Kiryanov
Add support for selecting which eeprom is queried for board revision by extending cl_eeprom_get_board_rev() to accept an i2c bus number. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 2 +- board/compulab/cm_t35/cm_t35.c | 2 +- board

[U-Boot] [PATCH 0/3] cm-fx6 updates for Utilite

2015-09-02 Thread Nikita Kiryanov
This series provides a fix necessary for early models of Utilite, a miniature desktop based on CM-FX6. It implements a dynamic modification to the device tree that is necessary for mmc boot. Cc: Stefano Babic Cc: Igor Grinberg Nikita Kiryanov (3): compulab: eeprom: select i2c bus when

[U-Boot] [PATCH 2/3] arm: mx6: cm-fx6: print PCB revision

2015-08-30 Thread Nikita Kiryanov
Print board revision for cm-fx6. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 7 +++ include/configs/cm_fx6.h | 1 + 2 files changed, 8 insertions(+) diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6

[U-Boot] [PATCH 3/3] arm: mx6: cm-fx6: switch to usb kbd polling via int queue

2015-08-30 Thread Nikita Kiryanov
Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_fx6_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/cm_fx6_defconfig b/configs/cm_fx6_defconfig index 21c35e3..314eb1c 100644 --- a/configs/cm_fx6_defconfig +++ b/configs/cm_fx6_defconfig @@ -

[U-Boot] [PATCH 0/3] cm-fx6 maintenance

2015-08-30 Thread Nikita Kiryanov
This is a collection of small fixes and improvements to cm-fx6. Cc: Stefano Babic Cc: Igor Grinberg Nikita Kiryanov (3): arm: mx6: cm-fx6: force host mode on usb controller arm: mx6: cm-fx6: print PCB revision arm: mx6: cm-fx6: switch to usb kbd polling via int queue board/compulab

[U-Boot] [PATCH 1/3] arm: mx6: cm-fx6: force host mode on usb controller

2015-08-30 Thread Nikita Kiryanov
, and is caused by the USBPHY_CTRL register reporting USBPHY_CTRL_OTG_ID to be 1, even when it is pulled down. Since we do not support device mode in cm-fx6 u-boot, force all controllers to be configured as hosts. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab

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

2015-08-30 Thread Nikita Kiryanov
Title correction: add support for additional splash image locations On Sun, Aug 30, 2015 at 11:42:31AM +0300, Nikita Kiryanov wrote: > This series adds the following functionality to the splash_source library: > - load splash image from filesystem formatted usb storage > - load splash i

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

2015-08-30 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 --- board/compulab/cm_fx6/cm_fx6.c | 1 + board/compulab/cm_t35/cm_t35.c | 1 + common

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

2015-08-30 Thread Nikita Kiryanov
: 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 filesystem formatted usb splash_source: add support for fileystem formatted sata arm: mx6: cm-fx6: add

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

2015-08-30 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 --- board/compulab/cm_fx6/cm_fx6.c | 18 ++ 1 file changed, 18 insertions(+) diff

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

2015-08-30 Thread Nikita Kiryanov
Add support for loading splashimage from filesystem formatted sata storage. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- common/splash_source.c | 9 + include/splash.h | 1 + 2 files changed, 10 insertions(+) diff --git a/common/splash_source.c b/common

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

2015-08-30 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 --- common/splash_source.c | 11 +++ include/splash.h | 1 + 2 files changed, 12 insertions(+) diff --git a/common/splash_source.c b

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

2015-08-30 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 --- common/splash_source.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/splash_source.c b

Re: [U-Boot] [PATCH V3] kconfig: add config option for shell prompt

2015-08-06 Thread Nikita Kiryanov
Cc Masahiro Yamada with correct email ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH V2 12/12] kconfig: add config option for shell prompt

2015-08-02 Thread Nikita Kiryanov
On Wed, Jul 29, 2015 at 12:59:00AM +0900, Masahiro Yamada wrote: > 2015-07-28 16:08 GMT+09:00 Nikita Kiryanov : > > Add option to set shell prompt string from menuconfig and migrate > > boards globally. > > > > The migration is done as follows: > > - Boards that e

[U-Boot] [PATCH 6/6] arm: am437x: Introduce new board cm-t43

2015-07-30 Thread Nikita Kiryanov
Add initial support for CM-T43, an AM437x based SoM. This support includes: serial, MMC/eMMC, NAND, USB, ETH, I2C, GPIO, DRAM detection. Cc: Tom Rini Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- arch/arm/Kconfig | 6 + board/compulab/cm_t43

[U-Boot] [PATCH 2/6] arm: am43xx: enable spi clock

2015-07-30 Thread Nikita Kiryanov
Add spi clock to the list of am43xx basic clocks to make the SPI subsystem available on am43xx systems. Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7

[U-Boot] [PATCH 3/6] mmc: omap_hsmmc: enable proper CMD(DAT) lines reset procedure for am43xx

2015-07-30 Thread Nikita Kiryanov
The CMD(DAT) lines reset procedure described in the OMAP4(AM335x, OMAP5, DRA7xx) TRMs is also necessary for AM43XX. Enable it in the driver. Cc: Pantelis Antoniou Cc: Igor Grinberg Cc: Albert Aribaud Signed-off-by: Nikita Kiryanov --- drivers/mmc/omap_hsmmc.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH 1/6] spi: omap3_spi: add am43xx support to omap3_spi

2015-07-30 Thread Nikita Kiryanov
Add support for AM43XX to the omap3_spi driver. Cc: Jagan Teki Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- drivers/spi/omap3_spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/omap3_spi.h b/drivers/spi/omap3_spi.h index ab7cd84..4af22c1 100644 --- a

[U-Boot] [PATCH 0/6] Introduce new board cm-t43

2015-07-30 Thread Nikita Kiryanov
This series adds initial support for CM-T43, an AM437x based SoM. This support includes: serial, MMC/eMMC, NAND, USB, ETH, I2C, GPIO, DRAM detection. Cc: Igor Grinberg Cc: Albert Aribaud Cc: Pantelis Antoniou Cc: Jagan Teki Cc: Tom Rini Nikita Kiryanov (6): spi: omap3_spi: add am43xx

[U-Boot] [PATCH 4/6] mmc: omap_hsmmc: enable 8bit interface for eMMC for AM43xx

2015-07-30 Thread Nikita Kiryanov
Enable 8bit interface on HSMMC2 for am43xx to support 8bit eMMC chips. Cc: Pantelis Antoniou Cc: Igor Grinberg Cc: Albert Aribaud Signed-off-by: Nikita Kiryanov --- drivers/mmc/omap_hsmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b

[U-Boot] [PATCH 5/6] gpio: am43xx: expand gpio support

2015-07-30 Thread Nikita Kiryanov
AM43XX SoCs support up to 192 GPIO signals. Make this amount available to the driver. Cc: Albert Aribaud Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- arch/arm/include/asm/arch-am33xx/gpio.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-am33xx/gpio.h

Re: [U-Boot] [PATCH 08/12] arm: mx6: usb: kconfig: add USB_EHCI_MX6 kconfig option

2015-07-27 Thread Nikita Kiryanov
Hi Stefano, Marek, On Sun, Jul 26, 2015 at 12:50:56PM +0200, Stefano Babic wrote: > Hi Marek, > > On 26/07/2015 12:35, Marek Vasut wrote: > > On Sunday, July 26, 2015 at 11:36:11 AM, Stefano Babic wrote: > >> Hi Nikita, Marek, > >> > >> On 26/07/2015

Re: [U-Boot] [PATCH 01/12] arm: mx6: cm-fx6: map HDMI to IPU1 DI0 explicitly

2015-07-26 Thread Nikita Kiryanov
On Thu, Jul 23, 2015 at 08:54:25PM +0300, Nikolay Dimitrov wrote: > Hi Nikita, > > On 07/23/2015 05:19 PM, Nikita Kiryanov wrote: > >U-Boot does not explicitly assign the display to an IPU interface. Instead, > >it > >relies on the power-on default of DI0. > > &

Re: [U-Boot] [PATCH 12/12] kconfig: add config option for shell prompt

2015-07-26 Thread Nikita Kiryanov
On Fri, Jul 24, 2015 at 11:05:22AM +0900, Masahiro Yamada wrote: > 2015-07-24 6:21 GMT+09:00 Tom Rini : > > On Thu, Jul 23, 2015 at 05:19:39PM +0300, Nikita Kiryanov wrote: > > > >> Add option to set shell prompt string from menuconfig and use it > >> when migr

Re: [U-Boot] [PATCH 09/12] usb: kconfig: usb keyboard kconfig

2015-07-26 Thread Nikita Kiryanov
On Thu, Jul 23, 2015 at 05:01:24PM +0200, Marek Vasut wrote: > On Thursday, July 23, 2015 at 04:19:36 PM, Nikita Kiryanov wrote: > > Add Kconfig options for USB keyboard and use them for cm-fx6. > > > > Cc: Marek Vasut > > Cc: Stefano Babic > > Cc: Igor Gr

Re: [U-Boot] [PATCH 08/12] arm: mx6: usb: kconfig: add USB_EHCI_MX6 kconfig option

2015-07-26 Thread Nikita Kiryanov
On Thu, Jul 23, 2015 at 05:01:07PM +0200, Marek Vasut wrote: > On Thursday, July 23, 2015 at 04:19:35 PM, Nikita Kiryanov wrote: > > Add USB_EHCI_MX6 option to menuconfig and use it when migrating cm-fx6 usb > > config to defconfig. > > > > Cc: Masahiro Yamada

[U-Boot] [PATCH 05/12] arm: mx6: cm-fx6: move CMD configs to defconfig

2015-07-23 Thread Nikita Kiryanov
Move CONFIG_CMD_* options that can be selected in menuconfig to cm-fx6 defconfig. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_fx6_defconfig | 5 + include/configs/cm_fx6.h | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configs

[U-Boot] [PATCH 09/12] usb: kconfig: usb keyboard kconfig

2015-07-23 Thread Nikita Kiryanov
Add Kconfig options for USB keyboard and use them for cm-fx6. Cc: Marek Vasut Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_fx6_defconfig | 2 ++ drivers/usb/Kconfig | 27 +++ include/configs/cm_fx6.h | 2 -- 3 files changed

[U-Boot] [PATCH 07/12] arm: mx6: kconfig: don't select CPU_V7 per board

2015-07-23 Thread Nikita Kiryanov
CPU_V7 is already selected by ARCH_MX6, so no point in selecting it again by boards that depend on ARCH_MX6. Cc: Albert Aribaud Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- arch/arm/cpu/armv7/mx6/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm

[U-Boot] [PATCH 08/12] arm: mx6: usb: kconfig: add USB_EHCI_MX6 kconfig option

2015-07-23 Thread Nikita Kiryanov
Add USB_EHCI_MX6 option to menuconfig and use it when migrating cm-fx6 usb config to defconfig. Cc: Masahiro Yamada Cc: Marek Vasut Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_fx6_defconfig | 4 drivers/usb/host/Kconfig | 7 +++ include/configs

[U-Boot] [PATCH 06/12] arm: mx6: cm-fx6: move cm-fx6 target under ARCH_MX6

2015-07-23 Thread Nikita Kiryanov
cm-fx6 is an MX6 based board, and the menuconfig hierarchy should reflect that. Make TARGET_CM_FX6 dependant on ARCH_MX6. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- arch/arm/Kconfig | 8 arch/arm/cpu/armv7/mx6/Kconfig | 8 configs

[U-Boot] [PATCH 04/12] arm: mx6: cm-fx6: setup hdmi only on hdmi enable

2015-07-23 Thread Nikita Kiryanov
Refactor display code to only setup hdmi if do_enable_hdmi() is invoked. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board

[U-Boot] [PATCH 00/12] cm-fx6 and kconfig updates

2015-07-23 Thread Nikita Kiryanov
This series includes some fixes for cm-fx6, as well as migrating of cm-fx6 config options to the defconfig file. In the process of migrating the config #defines, new entries are added to menuconfig. Cc: Stefano Babic Cc: Igor Grinberg Nikita Kiryanov (12): arm: mx6: cm-fx6: map HDMI to IPU1

[U-Boot] [PATCH 10/12] usb: kconfig: create a menu for usb

2015-07-23 Thread Nikita Kiryanov
With recent additions to USB Kconfig the number of USB options had grown large enough to warrant a separate menu for USB. Add a Kconfig menu for USB. Cc: Marek Vasut Signed-off-by: Nikita Kiryanov --- drivers/usb/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb

[U-Boot] [PATCH 03/12] arm: mx6: cm-fx6: add support for displaytype env var

2015-07-23 Thread Nikita Kiryanov
s compatibility. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index 2fb8db5..3e518c1 100644 --- a/b

[U-Boot] [PATCH 01/12] arm: mx6: cm-fx6: map HDMI to IPU1 DI0 explicitly

2015-07-23 Thread Nikita Kiryanov
: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index 7a1bbaf..b500f91 100644 --- a/board/compulab/cm_fx6/cm_fx6.c +++ b/board

[U-Boot] [PATCH 02/12] arm: mx6: cm-fx6: make it possible to not init display

2015-07-23 Thread Nikita Kiryanov
ays array (it's CONFIG_IMX_VIDEO_SKIP specific). - Don't use detect_hdmi(), since env controlled init makes it unnecessary. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov Signed-off-by: Igor Grinberg --- board/comp

[U-Boot] [PATCH 12/12] kconfig: add config option for shell prompt

2015-07-23 Thread Nikita Kiryanov
Add option to set shell prompt string from menuconfig and use it when migrating CONFIG_SYS_PROMPT to cm-fx6 defconfig. Cc: Tom Rini Cc: Masahiro Yamada Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- common/Kconfig | 7 +++ configs/cm_fx6_defconfig | 1

[U-Boot] [PATCH 11/12] sf: kconfig: add kconfig options for spi flashes

2015-07-23 Thread Nikita Kiryanov
Add kconfig options for various SPI flashes and use them in cm-fx6 defconfig. Cc: Jagan Teki Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- configs/cm_fx6_defconfig | 8 drivers/mtd/spi/Kconfig | 44 include

Re: [U-Boot] [PATCH v4 0/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-30 Thread Nikita Kiryanov
rees rotation. Patch 1-3 make preparations to the code. Patch 4 implements the new feature Whole series: Acked-by: Nikita Kiryanov -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v3 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-26 Thread Nikita Kiryanov
rows = pcons->lcdsizex; } else { cols = pcons->lcdsizex; rows = pcons->lcdsizey; } console_calc_rowcol(&cons, cols, rows); } -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v3 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-25 Thread Nikita Kiryanov
+#endif This duplication with console_calc_rowcol() exists because the lcdsizey and lcdsizex data is expected by the functions to be already in pcons. If you change console_calc_rowcol() to accept both variables as additional arguments, then console_calc_rowcol() could be reused in console_calc_ro

Re: [U-Boot] [RFC 1/4] common: add ansi console base implementation

2015-03-18 Thread Nikita Kiryanov
break; + + case '\t': /* tab 8 */ + COL |= 0x0008; + COL &= ~0x0007; This seems buggy. Not only does this limit us to one tab, it can potentially move the cursor backwards. The LCD version of COL += 8 seems more cor

Re: [U-Boot] [RFC 0/4] ansi console support for lcd driver

2015-03-18 Thread Nikita Kiryanov
z00.h | 5 + include/lcd_console.h | 33 9 files changed, 537 insertions(+), 426 deletions(-) create mode 100644 common/ansi_console.c create mode 100644 include/ansi_console.h -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boo

Re: [U-Boot] [PATCH 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-16 Thread Nikita Kiryanov
object oriented way of accessing the object's members from its methods. -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-15 Thread Nikita Kiryanov
int rows, int cols); - +/*void lcd_init_console(void *address, int rows, int cols); */ Please delete this comment +void lcd_init_console(void *address, int vl_cols, int vl_rows, int vl_rot); /** * lcd_set_col() - Set the number of the current lcd console column * -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 3/4] common/lcd_console: move single static variables into common (static) structure

2015-03-15 Thread Nikita Kiryanov
console_t { + short curr_col, curr_row; + short cols, rows; + void *lcd_address; Can this be void *base_address? I think that's a bit more descriptive. Other than that, Acked-by: Nikita Kiryanov +}; -- Regards, Nikita Kiryanov

Re: [U-Boot] [PATCH 1/4] common/lcd_console: cleanup lcd_drawchars/lcd_putc_xy

2015-03-15 Thread Nikita Kiryanov
remove the loops inside. Signed-off-by: Hannes Petermaier Signed-off-by: Hannes Petermaier Acked-by: Nikita Kiryanov -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 2/4] common/lcd_console: ask only one-time for bg/fg-color per call

2015-03-15 Thread Nikita Kiryanov
onsole.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) Acked-by: Nikita Kiryanov -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] lcd-console / display rotation

2015-03-04 Thread Nikita Kiryanov
video console with the lcd console anyway), so for now you can work with it fairly uninterrupted. I only ask that you avoid adding platform specific code to it. The only platform specific thing in there right now is a mention of panel_info, and that should disappear soon as well (replaced with a

[U-Boot] Unused video drivers

2015-02-13 Thread Nikita Kiryanov
Hi all, I noticed we have a lot of unused video drivers, specifically: CONFIG_EXYNOS_PWM_BL CONFIG_L5F31188 CONFIG_SED156X CONFIG_VIDEO_COREBOOT CONFIG_VIDEO_IMX25LCDC CONFIG_VIDEO_SED13806 CONFIG_VIDEO_SMI_LYNXEM CONFIG_AM335X_LCD Any objections to removing these drivers? -- Regards, Nikita

Re: [U-Boot] [PATCH V2 02/13] lcd: split configuration_get_cmap

2015-02-08 Thread Nikita Kiryanov
Hi Bo, On 02/04/2015 09:25 AM, Bo Shen wrote: Hi Nikita Kiryanov, On 02/03/2015 07:32 PM, Nikita Kiryanov wrote: [..] #ifdef CONFIG_LCD_LOGO void bitmap_plot(int x, int y) diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 935ae42..0ce2370 100644 --- a

Re: [U-Boot] [PATCH 03/21] common/lcd: Add command for writing to lcd-display

2015-02-03 Thread Nikita Kiryanov
Hi Hannes, On 02/02/2015 09:37 AM, Hannes Petermaier wrote: From: Nikita Kiryanov To: Hannes Petermaier , u-boot@lists.denx.de Date: 01.02.2015 15:53 Subject: Re: [U-Boot] [PATCH 03/21] common/lcd: Add command for writing to lcd-display Sent by: "U-Boot" Hi Hannes, Hi Nikita,

Re: [U-Boot] [PATCH 02/21] common/lcd: Add command for setting cursor within lcd-framework

2015-02-03 Thread Nikita Kiryanov
Hi Hannes, On 02/02/2015 09:32 AM, Hannes Petermaier wrote: "U-Boot" schrieb am 01.02.2015 15:48:51: From: Nikita Kiryanov To: Hannes Petermaier , u-boot@lists.denx.de Date: 01.02.2015 15:49 Subject: Re: [U-Boot] [PATCH 02/21] common/lcd: Add command for setting cursor

[U-Boot] [PATCH V2 08/13] lcd: introduce lcd_set_cmap

2015-02-03 Thread Nikita Kiryanov
Reduce the lcd_display_bitmap #ifdef complexity by extracting Atmel-specific code for setting cmap for bitmap images into a new function lcd_set_cmap(). A default version is implemented with the remainder of the code. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Bo Shen Cc

[U-Boot] [PATCH V2 09/13] lcd: remove unused includes

2015-02-03 Thread Nikita Kiryanov
Remove unused includes. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin --- Changes in V2: - Minor commit message update common/lcd.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/common/lcd.c b

[U-Boot] [PATCH V2 07/13] lcd: logo: move generic cmap setting to lcd_logo_set_cmap()

2015-02-03 Thread Nikita Kiryanov
Get rid of platform-specific #ifdefs in bitmap_plot() by moving the generic case of setting cmap into the weak lcd_logo_set_cmap(). Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin --- Changes in V2: - Minor commit message

[U-Boot] [PATCH V2 11/13] lcd: rename bitmap_plot to better represent its functionality

2015-02-03 Thread Nikita Kiryanov
The name "bitmap_plot" is misleading because it implies that this is a generic function capable of dealing with any bitmap, but its implementation only works with the logo data. Rename the function to better reflect this. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: S

[U-Boot] [PATCH V2 13/13] lcd: split splash code into its own function

2015-02-03 Thread Nikita Kiryanov
fitting location code wise) * Move the responsibility of setting the console base address to lcd_clear() too. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin --- Changes in V2: - Minor commit message update common/lcd.c

[U-Boot] [PATCH V2 12/13] lcd: dt: extract simplefb support

2015-02-03 Thread Nikita Kiryanov
We now have api functions that can support compiling simplefb code as its own module. Since this code is not part of the display functionality, extract it to its own file. Raspberry Pi is updated to accommodate the changes. Signed-off-by: Nikita Kiryanov Acked-by: Stephen Warren Reviewed-by

[U-Boot] [PATCH V2 02/13] lcd: split configuration_get_cmap

2015-02-03 Thread Nikita Kiryanov
configuration_get_cmap() is multiple platform-specific functions stuffed into one function. Split it into multiple versions, and move each version to the appropriate driver to reduce the #ifdef complexity. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc

[U-Boot] [PATCH V2 10/13] lcd: various cleanups

2015-02-03 Thread Nikita Kiryanov
This cleanup mostly focuses on removing unnecessary whitespace and comments which are superfluous and/or do not conform to the coding style. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Simon Glass Cc: Anatolij Gustschin --- Changes in V2: - Minor commit message update

[U-Boot] [PATCH V2 01/13] lcd: move platform-specific structs to their own headers

2015-02-03 Thread Nikita Kiryanov
-specific cases) is retained in lcd.h as the default case. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin --- Changes in V2: - Minor commit message update include/atmel_lcd.h | 38 ++ include/exynos_lcd.h | 81

[U-Boot] [PATCH V2 04/13] lcd: mpc8xx: move mpc823-specific fb_put_byte to mpc8xx_lcd.c

2015-02-03 Thread Nikita Kiryanov
Reduce the amount of platform-specific code in common/lcd.c by moving MPC823 implementation of fb_put_byte() to mpc8xx_lcd.c. Since we must also have a default implementation for everybody else, make the remainder of the code into a weak function. Signed-off-by: Nikita Kiryanov Reviewed-by

[U-Boot] [PATCH V2 00/13] common lcd refactor

2015-02-03 Thread Nikita Kiryanov
ccommodate the changes/) - patch 2: define configuration_get_cmap() prototype only once. Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin Nikita Kiryanov (13): lcd: move platform-specific structs to their own headers lcd: split configuration_get_cmap lcd: atmel: move atmel-specific fb_p

[U-Boot] [PATCH V2 03/13] lcd: atmel: move atmel-specific fb_put_word to atmel_lcdfb

2015-02-03 Thread Nikita Kiryanov
Reduce the amount of platform-specific code in common/lcd.c by moving Atmel implementation of fb_put_word() to atmel_lcdfb.c. Since we must also have a default implementation for everybody else, make the remainder of the code into a weak function. Signed-off-by: Nikita Kiryanov Reviewed-by

[U-Boot] [PATCH V2 06/13] lcd: mpc823: move mpc823-specific lcd_logo_set_cmap code to mpc8xx_lcd.c

2015-02-03 Thread Nikita Kiryanov
bmp_logo_data.h, which would cause a compilation error because the logo data and palette arrays would be defined twice. This is a step towards cleaning bitmap_plot() of platform-specific code. Signed-off-by: Nikita Kiryanov Reviewed-by: Simon Glass Cc: Simon Glass Cc: Anatolij Gustschin --- Changes

[U-Boot] [PATCH V2 05/13] lcd: atmel: introduce lcd_logo_set_cmap

2015-02-03 Thread Nikita Kiryanov
(bmp_logo_palette) is switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which would cause a compilation error because the logo data and palette arrays would be defined twice. This is a step towards cleaning bitmap_plot() of platform-specific code. Signed-off-by: Nikita Kiryanov Reviewed-by

Re: [U-Boot] [PATCH 02/13] lcd: split configuration_get_cmap

2015-02-01 Thread Nikita Kiryanov
Hi Simon, On 01/31/2015 02:24 AM, Simon Glass wrote: Hi Nikita, On 29 January 2015 at 04:21, Nikita Kiryanov wrote: configuration_get_cmap() is multiple platform specific functions stuffed into one function. Split it into multiple versions, and move each version to the appropriate driver to

Re: [U-Boot] [PATCH 03/21] common/lcd: Add command for writing to lcd-display

2015-02-01 Thread Nikita Kiryanov
to see something with an "lcd" prefix. Also, this code seems better suited for lcd_console.c + "print string on lcd-framebuffer", + "" +); + /*--*/ static int

Re: [U-Boot] [PATCH 02/21] common/lcd: Add command for setting cursor within lcd-framework

2015-02-01 Thread Nikita Kiryanov
ommand is better suited for the lcd_console.c file. /*--*/ static int lcd_init(void *lcdbase) -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 13/13] lcd: split splash code into its own function

2015-02-01 Thread Nikita Kiryanov
Hi Simon, On 01/31/2015 02:25 AM, Simon Glass wrote: Hi Nikita, On 29 January 2015 at 04:21, Nikita Kiryanov wrote: lcd_logo() currently performs tasks well beyond just displaying the logo. It has code which displays splash image, it has logic which determines when the different display

Re: [U-Boot] [PATCH 12/13] lcd: dt: extract simplefb support

2015-02-01 Thread Nikita Kiryanov
Hi Stephen, On 01/29/2015 07:14 PM, Stephen Warren wrote: On 01/29/2015 04:21 AM, Nikita Kiryanov wrote: We now have api functions that can support compiling simplefb code as its own module. Since this code is not part of the display functionality, extract it to its own file. Raspberry Pi

Re: [U-Boot] [PATCH 12/13] lcd: dt: extract simplefb support

2015-02-01 Thread Nikita Kiryanov
Hi Simon, On 01/31/2015 02:25 AM, Simon Glass wrote: On 29 January 2015 at 04:21, Nikita Kiryanov wrote: We now have api functions that can support compiling simplefb code as its own module. Since this code is not part of the display functionality, extract it to its own file. Raspberry Pi

[U-Boot] [PATCH 06/13] lcd: mpc823: move mpc823 specific lcd_logo_set_cmap code to mpc8xx_lcd.c

2015-01-29 Thread Nikita Kiryanov
bmp_logo_data.h, which would cause a compilation error because the logo data and palette arrays would be defined twice. Signed-off-by: Nikita Kiryanov Cc: Simon Glass Cc: Anatolij Gustschin --- common/lcd.c | 10 +- drivers/video/mpc8xx_lcd.c | 15 +++ 2 files

[U-Boot] [PATCH 08/13] lcd: introduce lcd_set_cmap

2015-01-29 Thread Nikita Kiryanov
Reduce the lcd_display_bitmap #ifdef complexity by extracting Atmel specific code for setting cmap for bitmap images into a new function lcd_set_cmap(). A default version is implemented with the remainder of the code. Signed-off-by: Nikita Kiryanov Cc: Bo Shen Cc: Simon Glass Cc: Anatolij

<    1   2   3   4   5   6   7   >