Re: [U-Boot] [PATCH] travisci: Add support for ARC

2017-04-21 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-04-21 at 09:17 -0400, Tom Rini wrote: > On Fri, Apr 21, 2017 at 01:14:23PM +0000, Alexey Brodkin wrote: > > > > Hi Tom, > > > > On Fri, 2017-04-21 at 09:13 -0400, Tom Rini wrote: > > > > > > On Fri, Apr 21, 2

Re: [U-Boot] [PATCH] travisci: Add support for ARC

2017-04-21 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-04-21 at 09:13 -0400, Tom Rini wrote: > On Fri, Apr 21, 2017 at 01:35:43PM +0300, Alexey Brodkin wrote: > > > > > Finally adding support for ARC boards in TravisCI. > > > > To build for ARC boards we need to install Synopsys prebuilt

Re: [U-Boot] [PATCH] drivers/usb/ehci: Use platform-specific accessors

2017-03-03 Thread Alexey Brodkin
Hi Marek, On Fri, 2017-03-03 at 00:57 +0100, Marek Vasut wrote: > On 03/01/2017 01:52 PM, Alexey Brodkin wrote: > > > > Hi Marek, > > > > On Fri, 2017-02-10 at 21:33 +0100, Marek Vasut wrote: > > > > > > On 02/10/2017 09:23 PM, Alexey Bro

[U-Boot] [PATCH] ARCv2: SLC: Make sure busy bit is set properly on SLC flushing

2017-04-07 Thread Alexey Brodkin
-by: Alexey Brodkin <abrod...@synopsys.com> --- arch/arc/lib/cache.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/cache.c index b6ec83112cd8..f1436bf19992 100644 --- a/arch/arc/lib/cache.c +++ b/arch/arc/lib/cache.c @@ -59,10

Re: [U-Boot] [PATCH] drivers/usb/ehci: Use platform-specific accessors

2017-04-14 Thread Alexey Brodkin
Hi Marek, On Fri, 2017-04-14 at 16:44 +0200, Marek Vasut wrote: > On 03/24/2017 01:56 PM, Marek Vasut wrote: > >  > Even better, this patch breaks powerpc board lwmon5, so dropped. Are you sure the problem is in my patch? Maybe this PPC board just needs to UNdefine CONFIG_EHCI_DESC_BIG_ENDIAN

[U-Boot] [PATCH] clean-up: Remove uselsess mentions of CONFIG_COMMAND_HISTORY

2017-04-18 Thread Alexey Brodkin
-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Masahiro Yamada <yamada.masah...@socionext.com> Cc: Peter Griffin <peter.grif...@linaro.org> Cc: Stephen Warren <swar...@wwwdotorg.org> Cc: Steve Rae <steve@raedomain.com> Cc: Jon Mason <jon.ma...@broadcom.com>

[U-Boot] Please pull ARC changes

2017-06-29 Thread Alexey Brodkin
4:10 +0300) -------- Alexey Brodkin (8):   arc: arcv1: Disable master/slave check   axs101: Enable data cache   axs10x: Add support of Ext2/4 FS   boards: axs10x, nsim, tb100: Enable cmdline history   axs10x: Get rid of both I2C and EEPROM who used to use I2C   axs10x: Move e

[U-Boot] [PATCH] arcv2: Set IOC aperture so it covers available DDR

2017-06-26 Thread Alexey Brodkin
a must but for simplicity we assume IOC covers all the DDR we have, that gives us a chance to not bother where DMA buffers are allocated - any part of DDR is OK. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- arch/arc/lib/cache.c | 29 +++-- 1 file chang

[U-Boot] [PATCH] arc: Add support for HS Development Kit board

2017-06-26 Thread Alexey Brodkin
connectivity modules: - Synopsys HAPS HT3 - Arduino-compatible connector - MikroBUS This initial commit supports the following peripherals: * UART (DW 8250) * Ethernet (DW GMAC) * SD/MMC (DW Mobile Storage) * USB 1.1 & 2.0 Signed-off-by: Alexey Brodkin <abrod...@synop

Re: [U-Boot] [PATCH] ehci-pci: Prepare for usage of readl()/writel() accessors

2017-06-05 Thread Alexey Brodkin
Hi Marek, On Mon, 2017-06-05 at 14:06 +0200, Marek Vasut wrote: > On 06/05/2017 02:03 PM, Alexey Brodkin wrote: > > > > Hi Marek, > > Hi, > > > > > On Mon, 2017-06-05 at 13:42 +0200, Marek Vasut wrote: > > > > > > On 06/05/2017 09:19

Re: [U-Boot] [PATCH] ehci-pci: Prepare for usage of readl()/writel() accessors

2017-06-05 Thread Alexey Brodkin
Hi Marek, On Mon, 2017-06-05 at 13:42 +0200, Marek Vasut wrote: > On 06/05/2017 09:19 AM, Alexey Brodkin wrote: > > > > We used to have opencoded ehci_readl()/writel() which required no > > external functions to be called. > > Applied, thanks. Now when we get everyth

[U-Boot] [PATCH] ehci-pci: Prepare for usage of readl()/writel() accessors

2017-06-05 Thread Alexey Brodkin
l(>cr_capbase))); ^~ ->8--- This the same fix as we have for "ehci-ppc4xx" in 83cb46c286b "ehci-ppc4xx: Prepare for usage of readl()/writel() accessors". Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Simon Glass <s...@chromium.

Re: [U-Boot] [PATCH] ehci-pci: Prepare for usage of readl()/writel() accessors

2017-06-15 Thread Alexey Brodkin
Hi Marek, On Thu, 2017-06-15 at 19:51 +0200, Marek Vasut wrote: > On 06/15/2017 07:48 PM, Alexey Brodkin wrote: > > > > Hi Marek, > > > > On Thu, 2017-06-15 at 19:23 +0200, Marek Vasut wrote: > > > > > > On 06/15/2017 07:19 PM, Tom Rini wrote: &

Re: [U-Boot] [PATCH] arc: Move dram_init out of arch code, into board code

2017-06-15 Thread Alexey Brodkin
Hi Alexandru, On Mon, 2017-06-05 at 13:00 -0700, Alexandru Gagniuc wrote: > On 06/05/2017 12:22 PM, Alexey Brodkin wrote: > > > > Hi Alexandru, > > > > On Mon, 2017-06-05 at 10:49 -0700, Alexandru Gagniuc wrote: > > > > > > The following

Re: [U-Boot] [PATCH] ehci-pci: Prepare for usage of readl()/writel() accessors

2017-06-15 Thread Alexey Brodkin
Hi Marek, On Thu, 2017-06-15 at 19:23 +0200, Marek Vasut wrote: > On 06/15/2017 07:19 PM, Tom Rini wrote: > > > > On Thu, Jun 15, 2017 at 07:00:25PM +0200, Marek Vasut wrote: > > > > > > On 06/14/2017 11:55 AM, Alexey Brodkin wrote: [snip] > > Clearl

Re: [U-Boot] [PATCH] ehci-pci: Prepare for usage of readl()/writel() accessors

2017-06-14 Thread Alexey Brodkin
Hi Marek, On Mon, 2017-06-05 at 14:06 +0200, Marek Vasut wrote: > On 06/05/2017 02:03 PM, Alexey Brodkin wrote: > > > > Hi Marek, > > Hi, > > > > > On Mon, 2017-06-05 at 13:42 +0200, Marek Vasut wrote: > > > > > > On 06/05/2017 09:19

[U-Boot] [PATCH] axs10x: Get rid of both I2C and EEPROM who used to use I2C

2017-06-01 Thread Alexey Brodkin
With eb5ba3aefdf0 "i2c: Drop use of CONFIG_I2C_HARD" in place we cannot use I2C EEPROM any longer so we're dropping all references to both EEPROM and I2C which was only used for EEPROM. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Simon Glass <s...@chromiu

[U-Boot] [PATCH] axs10x: Move environment from I2C EEPROM to SD-card

2017-06-01 Thread Alexey Brodkin
to another. Moreover instead of 256 bytes of EEPROM we're now virtually unlimited in stuff being placed in environment like complicated scripts etc which are usually required in case of full-scale distros. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- include/configs/axs10x.h | 9 ++

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-16 Thread Alexey Brodkin
Hi Eugeniy, On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > The HSDK can manage some pins via CREG registers block. > > Signed-off-by: Eugeniy Paltsev > --- >  MAINTAINERS   |   6 +++ >  drivers/gpio/Kconfig  |   7 +++ >  

Re: [U-Boot] [PATCH v2] DW SPI: Get clock value from Device Tree

2017-10-17 Thread Alexey Brodkin
Hi Jagan, > -Original Message- > From: Eugeniy Paltsev [mailto:palt...@synopsys.com] > Sent: Tuesday, October 17, 2017 4:33 PM > To: jagannadh.t...@gmail.com > Cc: u-boot@lists.denx.de; uboot-snps-...@synopsys.com > Subject: [uboot-snps-arc] Re: [PATCH v2] DW SPI: Get clock value from

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > The HSDK can manage some pins via CREG registers block. > > Signed-off-by: Eugeniy Paltsev > --- >  MAINTAINERS   |   6 +++ >  drivers/gpio/Kconfig  |   7 +++ >  

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-10-13 at 09:46 -0400, Tom Rini wrote: > On Fri, Oct 13, 2017 at 01:33:22PM +0000, Alexey Brodkin wrote: > > > > Hi Tom, > > > > On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > > > > > > The HSDK can manage some pins

Re: [U-Boot] [uboot-snps-arc] [PATCH v2] ARC: HSDK: introduce CREG GPIO driver

2017-10-16 Thread Alexey Brodkin
Hi Eugeniy, On Mon, 2017-10-16 at 16:21 +0300, Eugeniy Paltsev wrote: > The HSDK can manage some pins via CREG registers block. > > Signed-off-by: Eugeniy Paltsev > --- > Changes v1->v2: >   * Use linux debug function (debug -> pr_debug, errror -> pr_err) > as

[U-Boot] Please pull ARC changes

2017-11-24 Thread Alexey Brodkin
) Alexey Brodkin (2):   arc: bootm: Move slave cores kick-starting under !fake   arc: cache: Add required NOPs after invalidation of instruction cache Eugeniy Paltsev (1):   ARC: HSDK: introduce CREG GPIO driver  MAINTAINERS   |   6 ++  arch

[U-Boot] [PATCH] arc: cache: Add required NOPs after invalidation of instruction cache

2017-11-17 Thread Alexey Brodkin
As per ARC HS databook (see chapter 5.3.3.2) it is required to add 3 NOPs after each write to IC_IVIC which we do from now on. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Eugeniy Paltsev <palt...@synopsys.com> --- arch/arc/lib/cache.c | 7 +++ 1 file changed,

[U-Boot] [PATCH] arc: bootm: Move slave cores kick-starting under !fake

2017-11-17 Thread Alexey Brodkin
Currently slave cores will be kick-started even if we want to dry run bootm which is not what we really want. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Eugeniy Paltsev <palt...@synopsys.com> --- arch/arc/lib/bootm.c | 8 1 file changed, 4 insertions(+),

[U-Boot] [PATCH] usb: ehci: Fix accessors for big-endian platforms and descriptors

2017-11-17 Thread Alexey Brodkin
data without messing with endianess. While at it replace cpu_to_be32() to be32_to_cpu() in readl() to keep sane semantics. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Marek Vasut <ma...@denx.de> Reported-by: Vladimir Boroda <bor...@yahoo.com> --- drivers/usb/host/

[U-Boot] Please pull ARC changes

2017-12-11 Thread Alexey Brodkin
Hi Tom, Seems like I'm a little bit late as RC1 was already cut but anyways I think most if not all the mentioned below changes could be safely pulled. That's because 5 of 6 patches are really just very trivial fixes (which I think is quite of for post-RC1 stage) and the only more significant

[U-Boot] [PATCH] gpio/hsdk: Depend on DM_GPIO instead of simple DM

2017-12-10 Thread Alexey Brodkin
ned reference to 'gpio_request' ... -->8- Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Eugeniy Paltsev <palt...@synopsys.com> Cc: Simon Glass <s...@chromium.org> --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion

[U-Boot] Please pull ARC changes

2017-12-12 Thread Alexey Brodkin
) Alexey Brodkin (1):   gpio/hsdk: Depend on DM_GPIO instead of simple DM  drivers/gpio/Kconfig | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) -Alexey ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo

Re: [U-Boot] [RESEND] drivers/usb/ehci: Use platform-specific accessors

2017-10-30 Thread Alexey Brodkin
Hi Marek, Vladimir, On Sun, 2017-10-29 at 11:00 +0100, Marek Vasut wrote: > On 10/27/2017 02:42 PM, Vladimir Boroda wrote: > > > > Alexey/Marek, > > > > It appears that the "drivers/usb/ehci: Use platform-specific accessors" > > patch that was submitted in June (and currently adopted in U-Boot

[U-Boot] [PATCH 2/3] serial/serial_arc: Implement debug serial

2018-05-21 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- drivers/serial/Kconfig | 9 + drivers/serial/serial_arc.c | 26 ++ 2 files changed, 35 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 1aab0320f676..877790

[U-Boot] [PATCH 3/3] ARC: Enable debug UART on nSIM boards

2018-05-21 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- configs/nsim_700_defconfig| 4 configs/nsim_700be_defconfig | 4 configs/nsim_hs38_defconfig | 4 configs/nsim_hs38be_defconfig | 4 4 files changed, 16 insertions(+) diff --git a/configs/nsim_700_defco

[U-Boot] [PATCH 1/3] serial: Convert ARC_SERIAL to Kconfig

2018-05-21 Thread Alexey Brodkin
One step closer to completely Kconfig-driven target configuration in U-Boot :) Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- configs/nsim_700_defconfig| 1 + configs/nsim_700be_defconfig | 1 + configs/nsim_hs38_defconfig | 1 + configs/nsim_hs38be_defconfig | 1 + d

[U-Boot] [PATCH 0/3] Improvements for ARC UART

2018-05-21 Thread Alexey Brodkin
* Move ARC_SERIAL to Kconfig * Implement DEBUG_SERIAL in ARC_UART and * Enable DEBUG_UART in nSIM boards Alexey Brodkin (3): serial: Convert ARC_SERIAL to Kconfig serial/serial_arc: Implement debug serial ARC: Enable debug UART on nSIM boards configs/nsim_700_defconfig| 5

[U-Boot] [PATCH] arm: Use mtune for Xscale

2018-05-25 Thread Alexey Brodkin
ARM mode --->8--- So I guess this change might be put in series with buildman toolchain bump. [1] https://travis-ci.org/abrodkin/u-boot/jobs/383219348 [2] https://travis-ci.org/abrodkin/u-boot/jobs/383594006 Signed-off-by: Alexey Brodkin <abrod.

Re: [U-Boot] [PATCH] arm: Use mtune for Xscale

2018-05-25 Thread Alexey Brodkin
Hello, Just a short update. On Fri, 2018-05-25 at 12:04 +0300, Alexey Brodkin wrote: > Otherwise with GCC 8 we see this warning [which is rendered to an error > with -Werror, which happens for buildman/travisci], see [1]: > --->8-

Re: [U-Boot] [PATCH] regmap: Separate memory-based operations

2018-05-25 Thread Alexey Brodkin
Hi Simon, On Thu, 2018-05-24 at 20:42 -0600, Simon Glass wrote: > Hi Alexey, > > On 24 May 2018 at 06:36, Alexey Brodkin <alexey.brod...@synopsys.com> wrote: > > One of important features of regmap [at least in Linux kernel] > > is an ability to seamlessly commu

[U-Boot] [PATCH] buildman: Add GCC 8.1.0 version to tools from kernel.org

2018-05-25 Thread Alexey Brodkin
s/383423714 [6] https://travis-ci.org/abrodkin/u-boot/jobs/383423717 Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Simon Goldschmidt <sgoldschm...@de.pepperl-fuchs.com> Cc: Joe Hershberger <joe.hershber...@ni.com> Cc: Patrice Chotard <patrice.chot...@st.com> C

[U-Boot] [PATCH v2] board_f: Only reserve memory for U-Boot if we're going to relocate

2018-05-25 Thread Alexey Brodkin
In case of no relocation we'll just waste some space at the very end of usable memory area. If target device has very limited amount of memory (for example 256 kB) this loss will be pretty inconvenient. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Reviewed-by: Simon Gl

[U-Boot] [PATCH] MAINTAINERS: Add board/synopsys/

2018-05-25 Thread Alexey Brodkin
As of today 'board/synopsys/' folder contains only Synopsys ARC boards supported by the same people who support 'arch/arc'. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 567091

[U-Boot] Please pull ARC changes

2018-05-24 Thread Alexey Brodkin
boot code 2) Convert serial_arc to Kconfig Once both items above are done we just patched defconfigs. Alexey Brodkin (3): serial: Convert ARC_SERIAL to Kconfig serial/serial_arc: Implement debug serial ARC: Enable

Re: [U-Boot] [uboot-snps-arc] [PATCH 0/3] Improvements for ARC UART

2018-05-24 Thread Alexey Brodkin
Hi Tom, On Mon, 2018-05-21 at 17:03 +0300, Alexey Brodkin wrote: > * Move ARC_SERIAL to Kconfig > * Implement DEBUG_SERIAL in ARC_UART and > * Enable DEBUG_UART in nSIM boards > > Alexey Brodkin (3): > serial: Convert ARC_SERIAL to Kconfig > serial/serial_arc: I

[U-Boot] [PATCH] regmap: Separate memory-based operations

2018-05-24 Thread Alexey Brodkin
- and little-endian flavours etc. It was inspired by discussion [1] of addition of even more accessors to a standard 16550 UART. [1] https://lists.denx.de/pipermail/u-boot/2018-March/322322.html Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Simon Glass <s...@chromium.org> ---

[U-Boot] How to build multiple object files from one source?

2018-06-08 Thread Alexey Brodkin
Hello, I've been playing with libgcc sources imported in U-Boot [1] and so far for some platforms it works but for some doesn't. The problem I just discovered is how libgcc's assembly is composed. It has a couple of not very usual features: 1. The same labels used in different functions 2. A

Re: [U-Boot] [uboot-snps-arc] Please pull ARC changes

2018-06-18 Thread Alexey Brodkin
Hi Tom, Please disregard this duplicate "pull request". Not sure what happened but looks like my mailer sent a copy of older message that you already processed. -Alexey On Mon, 2018-06-18 at 09:29 +0000, Alexey Brodkin wrote: > Hi Tom, > > The following c

[U-Boot] Please pull ARC changes

2018-06-18 Thread Alexey Brodkin
. This will help real-life users to update U-Boot on the board. Alexey Brodkin (1): ARC: HSDK: Add readme Eugeniy Paltsev (1): ARC: HSDK: Add tool and make target to generate bsp board/synopsys/hsdk/README| 121

Re: [U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux

2018-06-13 Thread Alexey Brodkin
On Wed, 2018-06-13 at 10:24 +0200, Mario Six wrote: > Hi Alexey, > > On Mon, Jun 4, 2018 at 6:05 PM, Alexey Brodkin > wrote: > > Hi Mario, > > > > On Wed, 2018-05-23 at 14:09 +0200, Mario Six wrote: > > > Especially for commands, it is useful to be

[U-Boot] Please pull ARC changes

2018-06-15 Thread Alexey Brodkin
. This will help real-life users to update U-Boot on the board. Alexey Brodkin (1): ARC: HSDK: Add readme Eugeniy Paltsev (1): ARC: HSDK: Add tool and make target to generate bsp board/synopsys/hsdk/README| 121

[U-Boot] [PATCH] ARC: HSDK: Add readme

2018-06-14 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin --- board/synopsys/hsdk/README | 121 + 1 file changed, 121 insertions(+) create mode 100644 board/synopsys/hsdk/README diff --git a/board/synopsys/hsdk/README b/board/synopsys/hsdk/README new file mode 100644 index

Re: [U-Boot] [PATCH] regmap: Separate memory-based operations

2018-05-29 Thread Alexey Brodkin
Hi Simon, On Fri, 2018-05-25 at 20:07 -0600, Simon Glass wrote: > Hi Alexey, > > On 25 May 2018 at 03:45, Alexey Brodkin wrote: > > Hi Simon, > > > > On Thu, 2018-05-24 at 20:42 -0600, Simon Glass wrote: > > > Hi Alexey, [snip] > > > When we wa

[U-Boot] [PATCH] ARC: Make sure .ivt section is not purged by garbage collector

2018-05-29 Thread Alexey Brodkin
if we use "--gc-sections". And KEEP does exactly this, see [2]. [1] http://git.denx.de/?p=u-boot.git;a=commit;h=fac4790491f69b29755d92db2cad508849573ff7 [2] https://sourceware.org/binutils/docs/ld/Input-Section-Keep.html#Input-Section-Keep Signed-off-by: Alexey Brodkin --- arch/ar

[U-Boot] [PATCH] ARC: Move .ivt section to the very beginning of the image

2018-05-29 Thread Alexey Brodkin
This is useful for cases when U-Boot image is put in ROM and reset vector points to 0 where the very beginnign of the image reside. Signed-off-by: Alexey Brodkin --- arch/arc/cpu/u-boot.lds | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arc/cpu/u

[U-Boot] [PATCH] ARC: Improve relocation fix-ups

2018-05-29 Thread Alexey Brodkin
to deal with middle-endian encoded values only once and then use "do_swap" flag. Signed-off-by: Alexey Brodkin --- arch/arc/lib/relocate.c | 75 + 1 file changed, 53 insertions(+), 22 deletions(-) diff --git a/arch/arc/lib/relocate.c b/arch/a

[U-Boot] [PATCH v2] ARC: Improve relocation fix-ups

2018-05-30 Thread Alexey Brodkin
res is just an array of 32-bit ints and they are not swapped even on little-endia cores while in case of ARCompact cores .ivt contains valid code so swapping is required. 3. Just in case add check for ARC600 which is also ARCompact and its .ivt is normal code. Signed-off-by: Alexey Brod

[U-Boot] [PATCH] ARC: Use elf32-bigarc in case of -EB

2018-05-30 Thread Alexey Brodkin
As it is stated in LD manual [1] the second entry in OUTPUT_FORMAT corresponds to "-EB" command-line option which for us is "elf32-bigarc". [1] https://sourceware.org/binutils/docs/ld/Format-Commands.html#Format-Commands Signed-off-by: Alexey Brodkin --- arch/arc/cpu/u-boo

[U-Boot] [PATCH] ARC: Reset: Implement weak reset_cpu()

2018-05-31 Thread Alexey Brodkin
This will allow for board-specific implementation of reset. Default version will just stop execution with help of BRK instruction. Signed-off-by: Alexey Brodkin --- arch/arc/lib/reset.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arc/lib/reset.c b

[U-Boot] [PATCH] ARC: Reset: Use __builtin_arc_brk() instead of open-coded ASM

2018-05-31 Thread Alexey Brodkin
For quite some time we have a GCC's built-in which inserts BRK instruction so let's use it instead of simple insertion of in-line assembly. Signed-off-by: Alexey Brodkin --- arch/arc/lib/reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/lib/reset.c b/arch/arc

[U-Boot] [PATCH] ARC: Add support for EM Development Kit board

2018-05-31 Thread Alexey Brodkin
used as a primary bootloader on EMDK allowing users to easily load and start their application from micro-SD card. Signed-off-by: Alexey Brodkin --- arch/arc/Kconfig| 5 ++ arch/arc/dts/Makefile | 1 + arch/arc/dts/emdk.dts | 33 board/synopsys/emdk/Kco

[U-Boot] [PATCH] ARC: Use elf32-bigarc in case of -EB

2018-05-31 Thread Alexey Brodkin
As it is stated in LD manual [1] the second entry in OUTPUT_FORMAT corresponds to "-EB" command-line option which for us is "elf32-bigarc". [1] https://sourceware.org/binutils/docs/ld/Format-Commands.html#Format-Commands Signed-off-by: Alexey Brodkin --- arch/arc/cpu/u-boo

[U-Boot] Please pull ARC changes for v2018.07-rc1

2018-05-31 Thread Alexey Brodkin
EMDK. ---- Alexey Brodkin (9): MAINTAINERS: Add board/synopsys/ ARC: Cache: Don't compare I$ and D$ line lengths ARC: Make sure .ivt section is not purged by garbage collector ARC: Improve relocation fix-ups

[U-Boot] [PATCH v3] lib: Add hexdump

2018-06-05 Thread Alexey Brodkin
->8 Source of hexdump.c was copied from Linux kernel v4.7-rc2. Signed-off-by: Alexey Brodkin Cc: Anatolij Gustschin Cc: Mario Six Cc: Simon Glass Cc: Tom Rini Cc: Stefan Roese --- Build-tested by Travis CI, see https://travis-ci.org/abrodkin/u-boot. Changes v2 -> v3:

Re: [U-Boot] [PATCH v2] board_f: Only reserve memory for U-Boot if we're going to relocate

2018-06-05 Thread Alexey Brodkin
Hi Tom, On Sat, 2018-05-26 at 18:53 -0600, Simon Glass wrote: > On 25 May 2018 at 07:08, Alexey Brodkin wrote: > > In case of no relocation we'll just waste some space at the very end > > of usable memory area. If target device has very limited amount of memory > > (for exam

[U-Boot] [PATCH] ARC: Cache: Don't compare I$ and D$ line lengths

2018-05-28 Thread Alexey Brodkin
to deal with such an exotic configs if the target board is not supposed to run Linux kernel. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- arch/arc/lib/cache.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/c

Re: [U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux

2018-06-04 Thread Alexey Brodkin
Hi Mario, On Wed, 2018-05-23 at 14:09 +0200, Mario Six wrote: > Especially for commands, it is useful to be able to turn a hexadecimal > string into its binary representation. > > Hence, import the hex_to_bin, bin2hex, and hex2bin functions from the > Linux kernel. > > Signed-off-by: Mario Six

Re: [U-Boot] [PATCH 1/3] serial: Migrate CONFIG_ARC_SERIAL to Kconfig

2018-05-28 Thread Alexey Brodkin
pts/get_maintainer.pl 0001-serial-Migrate-CONFIG_ARC_SERIAL-to-Kconfig.patch Alexey Brodkin <alexey.brod...@synopsys.com> (maintainer:ARC) Eugeniy Paltsev <eugeniy.palt...@synopsys.com> (maintainer:ARC) Alexander Graf <ag...@suse.de> (commit_signer:6/24=25%,authored:6/24=25%,added_lines:46/

Re: [U-Boot] [PATCH 3/3] serial: Migrate CONFIG_ARM_DCC to Kconfig

2018-05-28 Thread Alexey Brodkin
Hi gents, On Sun, 2018-04-08 at 00:27 +0300, Tuomas Tynkkynen wrote: > Signed-off-by: Tuomas Tynkkynen > --- > arch/arm/Kconfig| 2 ++ > drivers/serial/Kconfig | 5 + > include/configs/xilinx_zynqmp.h | 1 - > include/configs/zynq-common.h | 2

Re: [U-Boot] [PATCH 3/3] serial: Migrate CONFIG_ARM_DCC to Kconfig

2018-05-28 Thread Alexey Brodkin
Ooops I meant https://patchwork.ozlabs.org/patch/895969/ here. This one I guess is for Albert or Michal. -Alexey On Mon, 2018-05-28 at 12:33 +0300, Alexey Brodkin wrote: > Hi gents, > > On Sun, 2018-04-08 at 00:27 +0300, Tuomas Tynkkynen wrote: > > Signed-off-by: Tuomas

[U-Boot] [PATCH] ARC: devboards: Allow huge uImages (up to 128 MiB)

2018-01-19 Thread Alexey Brodkin
may afford loading huge uImages. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- include/configs/axs10x.h | 2 +- include/configs/hsdk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/axs10x.h b/include/configs/axs10x.h index 29c595970a22..a9c

[U-Boot] Please pull ARC changes

2018-01-19 Thread Alexey Brodkin
-01-19 17:59:35 +0300) Alexey Brodkin (1): ARC: devboards: Allow huge uImages (up to 128 MiB) Eugeniy Paltsev (9): ARC: ARCv2: Cache: Fixed operation without IOC ARC: Cache: Disable IOC by default ARC: Cache

[U-Boot] [PATCH] board_f: Only reserve memory for U-Boot if we're going to relocate

2018-01-25 Thread Alexey Brodkin
In case of no relocation we'll just waste some paceat the very end of usable memory area. If U-Boot is huge and we cannot use a lot of memory this loss will be pretty inconvenient. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Simon Glass <s...@chromium.org> Cc: Bin

[U-Boot] [PATCH] arc: Get rid of handwritten string routines

2018-01-25 Thread Alexey Brodkin
ore HW flavors for free: generated instructions will match our target as long as correct compiler option is used. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- arch/arc/include/asm/string.h | 26 arch/arc/lib/Makefile | 7 --- arch/arc/lib/memcmp.S

[U-Boot] [PATCH] arc: Don't halt slaves

2018-01-25 Thread Alexey Brodkin
eally required as we have all the cores running from the very beginning and then we need to allow master core to do some preparatory work while slaves are not getting in the way. In case of U-Boot we: a) Don't really run more than 1 core in parallel b) We may use whatever core for that Signed-of

[U-Boot] [PATCH] arc: Eliminate unused code and data with GCC's garbage collector

2018-01-25 Thread Alexey Brodkin
-boot Overall ~5% of memory footprint saved. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- arch/arc/config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arc/config.mk b/arch/arc/config.mk index 13676bd0c8e1..a19c188dbcfa 100644 --- a/arch/arc/con

[U-Boot] [PATCH] arc: Introduce a possibility to not relocate U-boot

2018-01-25 Thread Alexey Brodkin
From: Alexey Brodkin <alexey.brod...@synopsys.com> Disabling relocation might be useful on ARC for 2 reasons: a) For advanced debugging with Synopsys proprietary MetaWare debugger which is capable of accessing much more specific hardware resources compared to gdb. For example it ma

Re: [U-Boot] [PATCH v8 2/2] DW SPI: Get clock value from Device Tree

2018-01-25 Thread Alexey Brodkin
Hi Jagan, On Fri, 2018-01-19 at 14:17 +0100, Eugeniy Paltsev wrote: > Hi Jagan, > > Could you please pull these patches to your tree? > It would be really nice to see this patch in the nearest release. > > Thanks. > > On Thu, 2017-12-28 at 15:09 +0300, Eugeniy Paltsev wrote: > > Add option to

[U-Boot] [PATCH] fdt: Implement weak arch_fixup_fdt()

2018-01-24 Thread Alexey Brodkin
in arch/xxx/lib/bootm.c. Now with weak arch_fixup_fdt() right in image-fdt.c where it is used we get both items highlighted above fixed. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Cc: Simon Glass <s...@chromium.org>

[U-Boot] [PATCH] Build system: Don't check for CONFIG_SYS_TEXT_BASE being set

2018-01-30 Thread Alexey Brodkin
CONFIG_SYS_TEXT_BASE must be set anyways and then it is used in many places in the same Makefile without any checks so there's no point in keeping this check araound just in one place. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Tom Rini <tr...@konsulko.com> --- Makefi

Re: [U-Boot] [PATCH] Build system: Don't check for CONFIG_SYS_TEXT_BASE being set

2018-01-30 Thread Alexey Brodkin
Hi MAsahiro-san, Tom, On Wed, 2018-01-31 at 01:23 +0900, Masahiro Yamada wrote: > 2018-01-31 0:23 GMT+09:00 Alexey Brodkin <alexey.brod...@synopsys.com>: > > > Please feel free to include historical reason: > > This ifneq conditional was added for Blackfi

[U-Boot] [PATCH] part: Allocate only one legacy_mbr buffer

2018-01-29 Thread Alexey Brodkin
just space enough for "legacy_mbr" structure. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Rob Clark <robdcl...@gmail.com> Cc: Peter Jones <pjo...@redhat.com> Cc: Alexander Graf <ag...@suse.de> Cc: Tom Rini <tr...@konsulko.com> --- disk/part_dos.c

[U-Boot] [PATCH] usb: dwc2: Rename CONFIG_DWC2_UTMI_PHY_WIDTH to CONFIG_DWC2_UTMI_WIDTH

2018-01-31 Thread Alexey Brodkin
or 16 depending on hardware (and the same is said in a comment for it in dwc2.h) but then 8 is hardcoded in the header leaving no ability to override this value in board's configuration. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Marek Vasut <ma...@denx.de> --- drivers/usb

Re: [U-Boot] [PATCH] usb: dwc2: Rename CONFIG_DWC2_UTMI_PHY_WIDTH to CONFIG_DWC2_UTMI_WIDTH

2018-02-01 Thread Alexey Brodkin
Hi Marek, On Wed, 2018-01-31 at 16:13 +0100, Marek Vasut wrote: > On 01/31/2018 03:56 PM, Alexey Brodkin wrote: > > For some reason from day one we used to have both CONFIG_DWC2_UTMI_WIDTH > > mentioned in dwc2.h and in scripts/config_whitelist.txt but never r

[U-Boot] [PATCH] usb: dwc2: Fix logic for setup of GUSBCFG->ULPI_UTMI_Sel bit

2018-02-02 Thread Alexey Brodkin
eep "ULPI_UTMI_Sel" zeroed while setting the next "FSIntf" bit (#5) unexpectedly selecting Full speed interface! Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Marek Vasut <ma...@denx.de> --- drivers/usb/host/dwc2.c | 4 +++- 1 file changed, 3 inse

[U-Boot] [PATCH] board_f: Show only .text location in display_text_info()

2018-02-01 Thread Alexey Brodkin
d. [1] http://patchwork.ozlabs.org/patch/868299/ Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Simon Glass <s...@chromium.org> Cc: Tom Rini <tr...@konsulko.com> --- common/board_f.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/commo

[U-Boot] [PATCH] Remove more checks for CONFIG_SYS_TEXT_BASE being set

2018-02-01 Thread Alexey Brodkin
some point might be cleaned-up too. But at least sources are clean now. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Masahiro Yamada <yamada.masah...@socionext.com> Cc: Tom Rini <tr...@konsulko.com> --- arch/x86/lib/relocate.c | 4 common/autoboot.c

Re: [U-Boot] [PATCH] Build system: Don't check for CONFIG_SYS_TEXT_BASE being set

2018-01-31 Thread Alexey Brodkin
Hi Masahiro-san, On Thu, 2018-02-01 at 00:18 +0900, Masahiro Yamada wrote: > 2018-01-31 1:28 GMT+09:00 Alexey Brodkin <alexey.brod...@synopsys.com>: > > Hi MAsahiro-san, Tom, > > > > On Wed, 2018-01-31 at 01:23 +0900, Masahiro Yamada wrote: > > > 2018

Re: [U-Boot] Build system: Don't check for CONFIG_SYS_TEXT_BASE being set

2018-02-12 Thread Alexey Brodkin
Hi Tom, Simon, On Sun, 2018-02-11 at 15:47 -0500, Tom Rini wrote: > On Tue, Jan 30, 2018 at 06:23:13PM +0300, Alexey Brodkin wrote: > > > CONFIG_SYS_TEXT_BASE must be set anyways and then it is used in many > > places in the same Makefile without any checks so there's no po

Re: [U-Boot] Build system: Don't check for CONFIG_SYS_TEXT_BASE being set

2018-02-12 Thread Alexey Brodkin
On Mon, 2018-02-12 at 09:23 -0500, Tom Rini wrote: > On Mon, Feb 12, 2018 at 01:27:30PM +0000, Alexey Brodkin wrote: > > Hi Tom, Simon, > > > > On Sun, 2018-02-11 at 15:47 -0500, Tom Rini wrote: > > > On Tue, Jan 30, 2018 at 06:23:13

Re: [U-Boot] [PATCH] usb: dwc2: Fix logic for setup of GUSBCFG->ULPI_UTMI_Sel bit

2018-02-05 Thread Alexey Brodkin
Hi Marek, > -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Monday, February 5, 2018 4:23 PM > To: Alexey Brodkin <alexey.brod...@synopsys.com>; u-boot@lists.denx.de > Subject: Re: [PATCH] usb: dwc2: Fix logic for setup of GUSBCFG->ULPI_UTMI_

Re: [U-Boot] [PATCH] usb: dwc2: Rename CONFIG_DWC2_UTMI_PHY_WIDTH to CONFIG_DWC2_UTMI_WIDTH

2018-02-05 Thread Alexey Brodkin
Hi Marek, > -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Monday, February 5, 2018 4:18 PM > To: Alexey Brodkin <alexey.brod...@synopsys.com> > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH] usb: dwc2: Rename CONFIG_DWC2_UTMI_PHY_WIDTH to

[U-Boot] [PATCH] arc: Fix final linkage with Elf32 tools

2018-02-15 Thread Alexey Brodkin
section" is disabled by default as not very useful for bigger executables. Moreover GP is just another name of r26 so we're loosing 1 core register which is not used by the compiler as a generic register with "-msdata". Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> --- arch/a

[U-Boot] Please pull ARC changes

2018-02-15 Thread Alexey Brodkin
to d53b128df40d8b2f5dd87cac194163fca2bc17ed: arc: Fix final linkage with Elf32 tools (2018-02-15 15:44:47 +0300) Alexey Brodkin (1): arc: Fix final linkage with Elf32 tools arch/arc/config.mk | 2 +- 1 file changed, 1 insertion

[U-Boot] [PATCH] usb: dwc2: Reduce data buffer size to 16kB

2018-02-21 Thread Alexey Brodkin
and in the worst case longer packets will be split on separate transactions. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Marek Vasut <ma...@denx.de> --- drivers/usb/host/dwc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb

[U-Boot] [PATCH] Makefile: Don't mess with .text section location for selected arches

2018-02-21 Thread Alexey Brodkin
as use it to set .text section location. So let's only pass "-Ttext xxx" for those architectures who don't set link-base explicitly in their linker scripts. This patch iaddresses comments for previously sent https://patchwork.ozlabs.org/patch/867540/. Signed-off-by: Alexey Brodkin

Re: [U-Boot] [PATCH] board_f: Only reserve memory for U-Boot if we're going to relocate

2018-02-20 Thread Alexey Brodkin
Hi Simon, On Sun, 2018-02-04 at 06:40 -0700, Simon Glass wrote: > Hi Alexey, > > On 25 January 2018 at 10:56, Alexey Brodkin <alexey.brod...@synopsys.com> > wrote: > > In case of no relocation we'll just waste some paceat the very end > > space at?

Re: [U-Boot] [PATCH] arc: Introduce a possibility to not relocate U-boot

2018-02-20 Thread Alexey Brodkin
Hi Simon, Tom, On Sun, 2018-02-04 at 06:40 -0700, Simon Glass wrote: > On 25 January 2018 at 11:22, Alexey Brodkin <alexey.brod...@synopsys.com> > wrote: > > From: Alexey Brodkin <alexey.brod...@synopsys.com> > > > > Disabling relocation

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Alexey Brodkin
Hi Tom, On Thu, 2018-02-22 at 10:43 -0500, Tom Rini wrote: > On Wed, Feb 21, 2018 at 03:26:05PM +0300, Alexey Brodkin wrote: [snip] > > static inline void serial_out_shift(void *addr, int shift, int value) > > { > > -#ifdef CONFIG_SYS_NS16550_PORT_MAPPED > &g

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-22 Thread Alexey Brodkin
Hi Simon, On Thu, 2018-02-22 at 09:17 -0700, Simon Glass wrote: > Hi, > > On 21 February 2018 at 05:26, Alexey Brodkin > <alexey.brod...@synopsys.com> wrote: > > Synopsys Data Fusion subsystem (DFSS) is targeted to deeply built-in > > use-cases and so to save some

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-23 Thread Alexey Brodkin
Hi Simon, On Thu, 2018-02-22 at 10:29 -0700, Simon Glass wrote: > Hi Alexey, > > On 22 February 2018 at 09:23, Alexey Brodkin > <alexey.brod...@synopsys.com> wrote: > > Hi Simon, > > > > On Thu, 2018-02-22 at 09:17 -0700, Simon Glass wrote: > > >

[U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-02-21 Thread Alexey Brodkin
e it might be a slecial Kconfig option for NS16550 or anything else. I'd like to know what people think about possible colutions here. And as always any comments are much appreciated! Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Cc: Simon Glass <s...@chromium.org> Cc: Tom Ri

<    1   2   3   4   5   6   7   8   >