[U-Boot] [PATCH] pwm: remove unneeded ifdef CONFIG_DM_PWM ... endif

2017-02-01 Thread Masahiro Yamada
Both CONFIG_PWM_TEGRA and CONFIG_PWM_EXYNOS depend on CONFIG_DM_PWM, i.e. they are already guarded by Kconfig correctly. Remove unneeded ifdef CONFIG_DM_PWM ... endif. While we are here, let's tidy up alignment and sort the lines alphabetically in Makefile. Signed-off-by: Masahiro Yamada ---

Re: [U-Boot] [PATCH v4 2/3] spl: Remove overwrite of relocated malloc limit

2017-02-01 Thread Lokesh Vutla
On 2/2/2017 5:18 AM, André Przywara wrote: > On 27/01/17 16:39, Andrew F. Davis wrote: > > Hi, > >> spl_init on some boards is called after stack and heap relocation, on >> some platforms spl_relocate_stack_gd is called to handle setting the >> limit to its value CONFIG_SPL_STACK_R_MALLOC_SIMPL

Re: [U-Boot] [PATCH] serial: 16550: properly initialize fcr field of ns16550_platdata

2017-02-01 Thread Oleksandr Tymoshenko
Heiko Schocher (h...@denx.de) wrote: > Hello Oleksandr, > > Am 01.02.2017 um 19:52 schrieb Oleksandr Tymoshenko: > > Tom Rini (tr...@konsulko.com) wrote: > >> On Tue, Jan 31, 2017 at 05:15:20PM -0800, Oleksandr Tymoshenko wrote: > >> > >>> Default fcr value is initialized in ns16550_serial_ofdata_

Re: [U-Boot] [PATCH] serial: 16550: properly initialize fcr field of ns16550_platdata

2017-02-01 Thread Heiko Schocher
Hello Oleksandr, Am 01.02.2017 um 19:52 schrieb Oleksandr Tymoshenko: Tom Rini (tr...@konsulko.com) wrote: On Tue, Jan 31, 2017 at 05:15:20PM -0800, Oleksandr Tymoshenko wrote: Default fcr value is initialized in ns16550_serial_ofdata_to_platdata but this function is only called if OF_CONTROL

[U-Boot] [PATCH v2] mmc: mmc-uclass: use the fixed devnum with alias node

2017-02-01 Thread Jaehoon Chung
If there are alias nodes as "mmc", use the devnum as alias index number. This patch is for fixing a problem of Exynos4 series. Problem is the below thing. Current legacy mode: EXYNOS DWMMC: 0, SAMSUNG SDHCI: 1 After using DM: SAMSUNG SDHCI: 0, EXYNOS DWMMC: 1 Dev index is swapped. Then u-boot ca

Re: [U-Boot] Please pull u-boot-mpc85xx master

2017-02-01 Thread Tom Rini
On Wed, Feb 01, 2017 at 04:19:16PM +, york sun wrote: > Tom, > > The following changes since commit cf4128e53caa4f7b0a6586fc3f10690d5c05db31: > >Merge git://www.denx.de/git/u-boot-marvell (2017-01-26 12:26:24 -0500) > > are available in the git repository at: > >git://git.denx.de/u

Re: [U-Boot] [PULL] Please pull u-boot-imx

2017-02-01 Thread Tom Rini
On Wed, Feb 01, 2017 at 04:50:30PM +0100, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit cf4128e53caa4f7b0a6586fc3f10690d5c05db31: > > Merge git://www.denx.de/git/u-boot-marvell (2017-01-26 12:26:24 -0500) > > are available in

Re: [U-Boot] [PATCH v4 2/3] spl: Remove overwrite of relocated malloc limit

2017-02-01 Thread André Przywara
On 02/02/17 00:08, Tom Rini wrote: Hi Tom, thanks for the quick reply! > On Wed, Feb 01, 2017 at 11:48:11PM +, André Przywara wrote: >> On 27/01/17 16:39, Andrew F. Davis wrote: >> >> Hi, >> >>> spl_init on some boards is called after stack and heap relocation, on >>> some platforms spl_relo

Re: [U-Boot] [PATCH v4 2/3] spl: Remove overwrite of relocated malloc limit

2017-02-01 Thread Tom Rini
On Wed, Feb 01, 2017 at 11:48:11PM +, André Przywara wrote: > On 27/01/17 16:39, Andrew F. Davis wrote: > > Hi, > > > spl_init on some boards is called after stack and heap relocation, on > > some platforms spl_relocate_stack_gd is called to handle setting the > > limit to its value CONFIG_SP

Re: [U-Boot] [PATCH v4 2/3] spl: Remove overwrite of relocated malloc limit

2017-02-01 Thread André Przywara
On 27/01/17 16:39, Andrew F. Davis wrote: Hi, > spl_init on some boards is called after stack and heap relocation, on > some platforms spl_relocate_stack_gd is called to handle setting the > limit to its value CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN when simple > SPL malloc is enabled during relocat

Re: [U-Boot] [PATCH v2 2/2] powerpc: mpc83xx: Enable pre-relocation malloc

2017-02-01 Thread york sun
On 01/16/2017 11:34 PM, Mario Six wrote: > To enable DM on MPC83xx, we need pre-relocation malloc, which is > implemented in this patch. > > Signed-off-by: Mario Six > --- > > Changes in v2: > > * Switched to r3 to hold SP modifications (as suggested by Joakim Tjernlund) > Applied to u-boot-mpc85

Re: [U-Boot] Please pull u-boot-marvell/master

2017-02-01 Thread Tom Rini
On Wed, Feb 01, 2017 at 12:46:28PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the following patches from the Marvell U-Boot git > repository. Mostly patches from GDSYS (Mario) for the MVEBU > secure boot support which have been posted quite a while > ago. Some patches of this patch seri

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-02-01 Thread Tom Rini
On Wed, Feb 01, 2017 at 08:24:40AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Could you pull these patches on your master branch? > I have tested a buildman with all case. > > The following changes since commit 794c6e2c96c20f8fc62890a5e13cc71ab99a2e57: > > Prepare v2017.03-rc1 (2017-01-30 19

[U-Boot] Please pull u-boot-mpc85xx master

2017-02-01 Thread york sun
Tom, The following changes since commit cf4128e53caa4f7b0a6586fc3f10690d5c05db31: Merge git://www.denx.de/git/u-boot-marvell (2017-01-26 12:26:24 -0500) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx.git for you to fetch changes up to de8c9317a891c1b30c465df1eb7

Re: [U-Boot] [PATCH] serial: 16550: properly initialize fcr field of ns16550_platdata

2017-02-01 Thread Oleksandr Tymoshenko
Tom Rini (tr...@konsulko.com) wrote: > On Tue, Jan 31, 2017 at 05:15:20PM -0800, Oleksandr Tymoshenko wrote: > > > Default fcr value is initialized in ns16550_serial_ofdata_to_platdata > > but this function is only called if OF_CONTROL option is enabled while > > the field is used whenever DM_SERI

Re: [U-Boot] [PATCH] mpc5200: Correct return value of memcpy function

2017-02-01 Thread york sun
On 01/24/2017 05:41 AM, thomas.grazia...@omicronenergy.com wrote: > From: Mark Marshall > > The memcpy() function returns a pointer to trg. > > Signed-off-by: Mark Marshall > Reviewed-by: Thomas Graziadei > --- Applied to u-boot-mpc85xx master, awaiting upstream. Thanks. York ___

Re: [U-Boot] [PATCH] mpc85xx: Use symbolic names for cache control bits

2017-02-01 Thread york sun
On 01/24/2017 06:42 AM, thomas.grazia...@omicronenergy.com wrote: > From: Mark Marshall > > We should use the symbolic names for the cache control bits. > > Signed-off-by: Mark Marshall > Reviewed-by: Thomas Graziadei > --- Applied to u-boot-mpc85xx master, awaiting upstream. Thanks. York __

[U-Boot] [PATCH v4 2/2] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-01 Thread Dalon Westergreen
From: Dalon Westergreen Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig. set to default y for socfpga platforms, and add appropriate configurations for kc1, snipper, and db-88f6820-gp boards. Signed-off-by: Dalon Westergreen --- common/spl/Kcon

[U-Boot] [PATCH v4 1/2] SPL: add support to boot from a partition type

2017-02-01 Thread Dalon Westergreen
From: Dalon Westergreen the socfpga bootrom supports mmc booting from either a raw image starting at 0x0, or from a partition of type 0xa2. This patch adds support for locating the boot image in the first type 0xa2 partition found. Assigned a partition number of -1 will cause a search for a par

Re: [U-Boot] [PATCH v2 1/2] powerpc: mpc83xx: Minimize r1 modification

2017-02-01 Thread york sun
On 01/16/2017 11:34 PM, Mario Six wrote: > The r1 register is modified several times during the cache-ram setup of > the MPC83xx SoCs. > > Since this SP modification confuses debuggers, we use a general purpose > register to compute the new stack pointer value, and only set the SP > once after all

[U-Boot] [PATCH] armv8:fsl-layerscape: Add registers space defination for CCI-400 bus

2017-02-01 Thread Ashish Kumar
CoreLink Cache Coherent Interconnect (CCI) is ARM BUS which provides full cache coherency between two clusters of multi-core CPUs and I/O coherency for devices and I/O masters. This patch add new CONFIG defination and move existing register space definaton of CCI-400 bus from from immap_lsch2

[U-Boot] [PULL] Please pull u-boot-imx

2017-02-01 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit cf4128e53caa4f7b0a6586fc3f10690d5c05db31: Merge git://www.denx.de/git/u-boot-marvell (2017-01-26 12:26:24 -0500) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to

[U-Boot] [PATCH] common: env_sf: Use CONFIG_SF_DEFAULT_xxx as the default value for CONFIG_ENV_SPI_xxx

2017-02-01 Thread Jean-Jacques Hiblot
The default values for the configuration defines CONFIG_ENV_SPI_xxx are arbitrary values. It makes more sense to set them to the values used by the sf command. Signed-off-by: Jean-Jacques Hiblot --- On DRA7 evm, reading the environment doesn't work in the SPL because CONFIG_ENV_SPI_MODE is not d

[U-Boot] [PATCH] pcm052: fix DDR initialization sequence

2017-02-01 Thread Albert ARIBAUD (3ADEV)
The sequence erroneously launched the DDR controller initialization before the pad muxing was done, causing DRAM size computation to hang. Configuring the pads first then launching DDR controller initialization prevents the DRAM hanging. Signed-off-by: Albert ARIBAUD (3ADEV) --- board/phytec/pc

Re: [U-Boot] [u-boot PATCH v2 6/8] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-02-01 Thread Tom Rini
On Wed, Feb 01, 2017 at 03:05:18PM +0200, Roger Quadros wrote: > On 01/02/17 14:14, Tom Rini wrote: > > On Wed, Feb 01, 2017 at 02:01:11PM +0200, Roger Quadros wrote: > >> On 01/02/17 12:47, Lokesh Vutla wrote: > >>> > >>> > >>> On Wednesday 01 February 2017 03:12 PM, Roger Quadros wrote: > On

Re: [U-Boot] [PATCH] serial: 16550: properly initialize fcr field of ns16550_platdata

2017-02-01 Thread Tom Rini
On Tue, Jan 31, 2017 at 05:15:20PM -0800, Oleksandr Tymoshenko wrote: > Default fcr value is initialized in ns16550_serial_ofdata_to_platdata > but this function is only called if OF_CONTROL option is enabled while > the field is used whenever DM_SERIAL is set. So for configs that > do not have OF

Re: [U-Boot] [u-boot PATCH v2 6/8] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-02-01 Thread Roger Quadros
On 01/02/17 14:14, Tom Rini wrote: > On Wed, Feb 01, 2017 at 02:01:11PM +0200, Roger Quadros wrote: >> On 01/02/17 12:47, Lokesh Vutla wrote: >>> >>> >>> On Wednesday 01 February 2017 03:12 PM, Roger Quadros wrote: On 31/01/17 06:17, Lokesh Vutla wrote: > > > On Monday 30 January 2

Re: [U-Boot] [PATCH] serial: 16550: properly initialize fcr field of ns16550_platdata

2017-02-01 Thread Marek Vasut
On 02/01/2017 02:15 AM, Oleksandr Tymoshenko wrote: > Default fcr value is initialized in ns16550_serial_ofdata_to_platdata > but this function is only called if OF_CONTROL option is enabled while > the field is used whenever DM_SERIAL is set. So for configs that > do not have OF_CONTROL default fc

Re: [U-Boot] [u-boot PATCH v2 6/8] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-02-01 Thread Tom Rini
On Wed, Feb 01, 2017 at 02:01:11PM +0200, Roger Quadros wrote: > On 01/02/17 12:47, Lokesh Vutla wrote: > > > > > > On Wednesday 01 February 2017 03:12 PM, Roger Quadros wrote: > >> On 31/01/17 06:17, Lokesh Vutla wrote: > >>> > >>> > >>> On Monday 30 January 2017 08:45 PM, Roger Quadros wrote: >

Re: [U-Boot] [u-boot PATCH v2 6/8] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-02-01 Thread Roger Quadros
On 01/02/17 12:47, Lokesh Vutla wrote: > > > On Wednesday 01 February 2017 03:12 PM, Roger Quadros wrote: >> On 31/01/17 06:17, Lokesh Vutla wrote: >>> >>> >>> On Monday 30 January 2017 08:45 PM, Roger Quadros wrote: In stead of defining the board EEPROM address in the board headers let

[U-Boot] Please pull u-boot-marvell/master

2017-02-01 Thread Stefan Roese
Hi Tom, please pull the following patches from the Marvell U-Boot git repository. Mostly patches from GDSYS (Mario) for the MVEBU secure boot support which have been posted quite a while ago. Some patches of this patch series still have some open issues - thats why I've not included them. Thanks,

Re: [U-Boot] [PATCH v2 16/18] arm: mvebu: Implement secure boot

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:01, Mario Six wrote: The patch implements secure booting for the mvebu architecture. This includes: - The addition of secure headers and all needed signatures and keys in mkimage - Commands capable of writing the board's efuses to both write the needed cryptographic data and

Re: [U-Boot] [PATCH v2 15/18] tools: kwbimage: Refactor line parsing and fix error

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: The function image_create_config_parse_oneline is pretty complex, and since more parameters will be added to support secure booting, we refactor the function to make it more readable. Also, when a line contained just a keyword without any parameters, strtok_

Re: [U-Boot] [PATCH v2 13/18] tools: kwbimage: Remove unused parameter

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: The parameter 'params' of the image_headersz_v1 function is never used by the function. Hence, remove it. Signed-off-by: Mario Six --- Changes in v2: None Applied to u-boot-marvell/master Thanks, Stefan ___ U

Re: [U-Boot] [PATCH v2 14/18] tools: kwbimage: Factor out add_binary_header_v1

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: In preparation of adding the creation of secure headers, we factor the add_binary_header_v1 function out of the image_create_v1 function. Signed-off-by: Mario Six --- Changes in v2: None Applied to u-boot-marvell/master Thanks, Stefan __

Re: [U-Boot] [PATCH v2 12/18] tools: kwbimage: Reduce scope of variables

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: This patch reduces the scope of some variables. Signed-off-by: Mario Six --- Changes in v2: None Applied to u-boot-marvell/master Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.d

Re: [U-Boot] [PATCH v2 11/18] tools: kwbimage: Fix arithmetic with void pointers

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: Arithmetic with void pointers, e.g. a - b where both a and b are void pointers, is undefined in the C standard. Since we are operating with byte data here, we switch the void pointers to uint8_t pointers, and add the necessary casts. Signed-off-by: Mario Six

Re: [U-Boot] [PATCH v2 10/18] tools: kwbimage: Fix style violations

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: Fix some style violations: - nine instances of missing blank lines after declarations - one overly long line - one split string (which also rewords an error message more concisely) - two superfluous else Signed-off-by: Mario Six --- Changes in v2: None

Re: [U-Boot] [PATCH v2 06/18] lib: tpm: Add command to flush resources

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: This patch adds a function to the TPM library, which allows U-Boot to flush resources, e.g. keys, from the TPM. Signed-off-by: Mario Six --- Changes in v2: * Added U-Boot command for resource flushing ("tpm flush"), and made the command and the library f

Re: [U-Boot] [PATCH v2 04/18] arm: mvebu: spl.c: Remove useless gd declaration

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: From: Reinhard Pfau ddaa905 ("arm: mvebu: Add DM (driver model) support") removed the assignment of the gd pointer, but kept the (now superfluous) declaration of the gd pointer. Remove this declaration. Signed-off-by: Reinhard Pfau --- Changes in v2: No

Re: [U-Boot] [PATCH v2 09/18] tools: kwbimage: Fix dest addr

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: To enable secure boot, we need to jump back into the BootROM to continue the SoC's boot process instead of letting the SPL load and run the main U-Boot image. But, since the u-boot-spl.img (including the 64 byte header) is loaded by the SoC as the main image

Re: [U-Boot] [PATCH v2 03/18] mvebu: Add board_pex_config()

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: Allow boards to do some initialization when PCIe comes up. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- Changes in v2: * Switched usage of __attribute(...) to __weak to simplify weak function declaration Applied to u-boot-marvell/master Th

Re: [U-Boot] [PATCH v2 02/18] net: phy: Support Marvell 88E1680

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: From: Dirk Eibach Add support for Marvell 88E1680 Integrated Octal 10/100/1000 Mbps Energy Efficient Ethernet Transceiver. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- Changes in v2: * Switched to usage of pre-defined constant names where pos

Re: [U-Boot] [PATCH v2 01/18] pci: mvebu: Fix Armada 38x support

2017-02-01 Thread Stefan Roese
On 11.01.2017 16:00, Mario Six wrote: From: Dirk Eibach Armada 38x has four PCI ports, not three. The optimization in pci_init_board() seems to assume that every port has three lanes. This is obviously wrong, and breaks support for Armada 38x. Signed-off-by: Dirk Eibach Signed-off-by: Mario

[U-Boot] [PATCH] arm: dts: dra7: add qspi register map for control module

2017-02-01 Thread Jean-Jacques Hiblot
Add qspi control module register maps to device tree. This register map had been removed by error when syncing the DTS with the latest linux at the time (commit 7aa1a4087 "ARM: dts: dra7xx: sync DT with latest Linux"). Without this entry the driver do not support memory-mapped access and the data r

Re: [U-Boot] [u-boot PATCH v2 6/8] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-02-01 Thread Lokesh Vutla
On Wednesday 01 February 2017 03:12 PM, Roger Quadros wrote: > On 31/01/17 06:17, Lokesh Vutla wrote: >> >> >> On Monday 30 January 2017 08:45 PM, Roger Quadros wrote: >>> In stead of defining the board EEPROM address in the board headers >>> let's define them in the board config files and make t

[U-Boot] [PATCH] ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

2017-02-01 Thread Jean-Jacques Hiblot
To keep a consistent MMC device mapping in SPL and in u-boot, let's register the MMC controllers the same way in u-boot and in the SPL. In terms of boot time, it doesn't hurt to register more controllers than needed because the MMC device is initialized only prior being accessed for the first time.

[U-Boot] [PATCH] env_mmc: Allow SPL to use any MMC device to load/save the environment

2017-02-01 Thread Jean-Jacques Hiblot
SPL has been restricted to use only dev 0 based on the assumption that only one MMC device is registered. This is not always the case and many platforms now register several devices as expected by the spl mmc boot code For those platform SPL_ENV_SUPPORT is broken if dev is forced to 0. A word of w

Re: [U-Boot] [u-boot PATCH v2 6/8] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-02-01 Thread Roger Quadros
On 31/01/17 06:17, Lokesh Vutla wrote: > > > On Monday 30 January 2017 08:45 PM, Roger Quadros wrote: >> In stead of defining the board EEPROM address in the board headers >> let's define them in the board config files and make them >> configurable by Kconfig. >> >> Signed-off-by: Roger Quadros