Re: [U-Boot] [PATCH] mpc85xx: pci: Implement workaround for Erratum A007815

2016-11-30 Thread Chris Packham
(adding York) On Thu, Dec 1, 2016 at 4:20 PM, Tony O'Brien wrote: > The read-only-write-enable bit is set by default and must be cleared > to prevent overwriting read-only registers. This should be done > immediately after resetting the PCI Express controller. > > Reviewed-by: Hamish Martin > >

Re: [U-Boot] [PATCH] powerpc: Retain compatible property for L2 cache

2016-11-30 Thread Chris Packham
On Thu, Dec 1, 2016 at 6:18 AM, york sun wrote: > On 11/28/2016 07:10 PM, Chris Packham wrote: >> Instead of setting the compatible property to "cache", append the >> desired value retaining what may already be set in the current property. >> >> Signed-off-by: Chris Packham >> --- > > > >> >> a

Re: [U-Boot] [PATCH 4/5] mmc: tegra: allow disabling external clock loopback

2016-11-30 Thread Marcel Ziswiler
On December 1, 2016 3:20:55 AM GMT+01:00, Simon Glass wrote: >Hi Marcel, > >On 30 November 2016 at 09:47, Marcel Ziswiler >wrote: >> From: Marcel Ziswiler >> >> Introduce CONFIG_TEGRA124_MMC_DISABLE_EXT_LOOPBACK to disable the >external clock >> loopback and use the internal one on SDMMC3 as p

Re: [U-Boot] [PATCH 3/5] mmc: tegra: move CONFIG_TEGRA_MMC from headers to defconfigs

2016-11-30 Thread Marcel Ziswiler
On December 1, 2016 3:20:50 AM GMT+01:00, Simon Glass wrote: >On 30 November 2016 at 09:47, Marcel Ziswiler >wrote: >> From: Marcel Ziswiler >> >> Basically running the following script: >> >> tools/moveconfig.py CONFIG_TEGRA_MMC >> >> Note that I left the SPL specific handling in >> include/c

Re: [U-Boot] [PATCH 2/5] mmc: tegra: introduce CONFIG_TEGRA_MMC to Kconfig

2016-11-30 Thread Marcel Ziswiler
On December 1, 2016 3:20:44 AM GMT+01:00, Simon Glass wrote: >On 30 November 2016 at 09:46, Marcel Ziswiler >wrote: >> From: Marcel Ziswiler >> >> Signed-off-by: Marcel Ziswiler >> --- >> >> drivers/mmc/Kconfig | 6 ++ >> 1 file changed, 6 insertions(+) >> > >Reviewed-by: Simon Glass T

[U-Boot] [PATCH v3] rtc: Add RTC chip pcf2127 support

2016-11-30 Thread Meng Yi
This driver just implemented rtc_get and rtc_set function for the compatibility of pcf2127 and pcf2129, and didn't make use of pcf2127's 512 bytes of general-purpose static RAM since pcf2129 don't have any static RAM. Signed-off-by: Meng Yi --- change in V3: -fix coding style and return value che

[U-Boot] [PATCH] mpc85xx: pci: Implement workaround for Erratum A007815

2016-11-30 Thread Tony O'Brien
The read-only-write-enable bit is set by default and must be cleared to prevent overwriting read-only registers. This should be done immediately after resetting the PCI Express controller. Reviewed-by: Hamish Martin --- Note that this does not implement the whole fix for this erratum, just what

[U-Boot] [PATCH v2 0/8] spl: Move image loader names into the linker list

2016-11-30 Thread Simon Glass
At present we have a linker list for all the image-loader methods but announce_boot_device() uses its own switch() statement with the names of each method. We may as well combine the name into the linker list. The names are only needed if libcommon support is enabled, since printf() is used to dis

[U-Boot] [PATCH 1/5] arm: tegra: initial support for apalis tk1

2016-11-30 Thread Marcel Ziswiler
From: Marcel Ziswiler This patch adds board support for the Toradex Apalis TK1 a computer on module which can be used on different carrier boards. The module consists of a Tegra TK1 SoC, a PMIC solution, 2 GB of DDR3L RAM, a bunch of level shifters, an eMMC, a TMP451 temperature sensor chip, an

[U-Boot] [PATCH 0/5] arm: tegra: apalis-tk1, mmc and ext clock loopback

2016-11-30 Thread Marcel Ziswiler
From: Marcel Ziswiler This series adds support for the Toradex Apalis TK1 as well as moves the CONFIG_TEGRA_MMC to Kconfig and introduces a new option to disable the external clock loopback on SDMMC3. The whole series is also available here: http://git.toradex.com/cgit/u-boot-toradex.git/log/?

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

2016-11-30 Thread Jaehoon Chung
Dear Tom, Could you pull these patches on your master branch? If there are some problems, let me know, plz. The following changes since commit 38c4f0bdce5bca8535eadab08ece80dff45ad0ee: ts4600: Disable CONFIG_DISPLAY_CPUINFO (2016-11-30 19:31:18 -0500) are available in the git repository at:

Re: [U-Boot] [PATCH v2 1/4] mmc: sdhci: Distinguish between base clock and maximum peripheral frequency

2016-11-30 Thread Jaehoon Chung
On 11/25/2016 10:59 PM, Stefan Herbrechtsmeier wrote: > The sdhci controller assumes that the base clock frequency is fully supported > by > the peripheral and doesn't support hardware limitations. The Linux kernel > distinguishes between base clock (max_clk) of the host controller and maximum > f

Re: [U-Boot] [PATCH v2] dm: core: Add dev_get_addr_size_index() to retrieve addr and size

2016-11-30 Thread Stefan Roese
Hi Simon, On 01.12.2016 03:19, Simon Glass wrote: On 29 November 2016 at 23:24, Stefan Roese wrote: The currently available functions accessing the 'reg' property of a device only retrieve the address. Sometimes its also necessary to retrieve the size described by the 'reg' property. This patc

Re: [U-Boot] [PATCH 06/13] mmc: Add JZ47xx SD/MMC controller driver

2016-11-30 Thread Jaehoon Chung
Dear Marek, On 12/01/2016 10:06 AM, Marek Vasut wrote: > From: Paul Burton > > Add driver for the JZ47xx MSC controller. I added more comment..Could you check my comments? > > Signed-off-by: Marek Vasut > Cc: Daniel Schwierzeck > Cc: Paul Burton > Cc: Jaehoon Chung > --- > drivers/mmc/Kc

Re: [U-Boot] [PATCH 04/13] mmc: Fix warning if debug() is not used

2016-11-30 Thread Jaehoon Chung
On 12/01/2016 10:06 AM, Marek Vasut wrote: > If debug() is not used, then the whole content of debug(...) will > be removed by the preprocessor, which will result in the following > warning. This patch adds __maybe_unused annotation to fix this. > > drivers/mmc/mmc.c: In function ‘mmc_init’: > dri

Re: [U-Boot] [PATCH 07/13] SPL: mmc: Make spl_mmc_load_image available

2016-11-30 Thread Jaehoon Chung
On 12/01/2016 10:06 AM, Marek Vasut wrote: > Make the spl_mmc_load_image() available globally, so it can be > invoked directly by SPL on extremely space-constrained systems. > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Simon Glass > Cc: Jaehoon Chung Applied on u-boot-mmc. Thanks! Bes

Re: [U-Boot] [PATCH 05/13] mmc: Tinification of the mmc code

2016-11-30 Thread Jaehoon Chung
On 12/01/2016 10:06 AM, Marek Vasut wrote: > Add new configuration option CONFIG_MMC_TINY which strips away all > memory allocation within the MMC code and code for handling multiple > cards. This allows extremely space-constrained SPL code use the MMC > framework. > > Signed-off-by: Marek Vasut

Re: [U-Boot] [PATCH] fsl/usb: enable the errata-a005697 for ls1012a

2016-11-30 Thread Jerry Huang
York, I don't know the file " arch/arm/include/asm/arch-fsl-layerscape/soc.h " is not included for ls1021a, maybe ls1021a is one special ARM SoC. Now I will add one macro " CONFIG_LS1012A " to resolve this issue. Best Regards Jerry Huang -Original Message- From: york sun Sent: Thursda

Re: [U-Boot] Please assign custodian for: u-boot-pmic / maintainers for: Samsung boards

2016-11-30 Thread Jaehoon Chung
On 12/01/2016 11:19 AM, Simon Glass wrote: > Hi Przemyslaw, > > On 30 November 2016 at 06:27, Przemyslaw Marczak > wrote: >> >> Hello, >> >> During the last year I was assigned to an internal project, and I haven't >> time for an Open Source activity, so I was quite inactive on U-Boot list. >

Re: [U-Boot] [PATCH] nds32: Support mmc DM.

2016-11-30 Thread Jaehoon Chung
Hi, On 12/01/2016 11:06 AM, Andes wrote: > From: rick > > Add Andestech mmc DM driver for ag101p board. > Do not use get_timer() to check mmc state can > improve throughput performance. > > Signed-off-by: rick > Cc: Andes I think that it can be split the some patches. (devicetree, mmc side a

Re: [U-Boot] [PATCH 04/13] mmc: Fix warning if debug() is not used

2016-11-30 Thread Jaehoon Chung
On 12/01/2016 10:06 AM, Marek Vasut wrote: > If debug() is not used, then the whole content of debug(...) will > be removed by the preprocessor, which will result in the following > warning. This patch adds __maybe_unused annotation to fix this. > > drivers/mmc/mmc.c: In function ‘mmc_init’: > dri

Re: [U-Boot] [PATCH v2] spi: cadence_qspi_apb: Use 32 bit indirect write transaction when possible

2016-11-30 Thread Vignesh R
[...] >>> >>> Hmmm... From 11.15.4.1.1, the data slave port should able to accept >>> only byte, half-word and word access. This should not create any >>> data >>> abort but probably bad performance. But it should insignificant as >>> access time for the flash is longer than the data port access >>

[U-Boot] [PATCH v2] fsl/usb: enable the errata-a005697 for ls1012a

2016-11-30 Thread Changming Huang
Enable the errata-a005697 for ls1012a Signed-off-by: Changming Huang --- changes in v2: - change the macro to ARM64 drivers/usb/common/fsl-errata.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 0dc3dd8..6069c

[U-Boot] [PATCH v3] armv8: QSPI: Add AHB bus 16MB+ size support

2016-11-30 Thread Yuan Yao
From: Yuan Yao The default configuration for QSPI AHB bus can't support 16MB+. But some flash on NXP layerscape board are more than 16MB. Signed-off-by: Yuan Yao --- Changed in v3: Rename the CONFIG_SYS_QSPI_ADDR to SYS_FSL_QSPI_ADDR. Changed in v2: Remove the CONFIG_QSPI_AHB_IN

Re: [U-Boot] [PATCH v2 1/3] net: Kconfig: Add CONFIG_MACB option

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 03:48:56PM -0600, Joe Hershberger wrote: > Hi Tom, > > On Tue, Nov 1, 2016 at 9:06 PM, Wenyou Yang wrote: > > Add CONFIG_MACB option in KConfig to be used to select the Cadence > > MACB Ethernet driver. > > > > Signed-off-by: Wenyou Yang > > --- > > > > Changes in v2: Non

[U-Boot] [PATCH] nds32: Support eth DM.

2016-11-30 Thread Andes
From: rick Add eth DM driver for ag101p board. Enable random ethaddr. Signed-off-by: rick Cc: Andes --- arch/nds32/dts/ag101p.dts |1 + board/AndesTech/adp-ag101p/adp-ag101p.c |5 +- configs/adp-ag101p_defconfig|3 + drivers/net/Kconfig

[U-Boot] [PATCH] nds32: Support mmc DM.

2016-11-30 Thread Andes
From: rick Add Andestech mmc DM driver for ag101p board. Do not use get_timer() to check mmc state can improve throughput performance. Signed-off-by: rick Cc: Andes --- arch/nds32/dts/ag101p.dts |8 ++ board/AndesTech/adp-ag101p/adp-ag101p.c |2 + configs/adp-ag101p_defc

[U-Boot] [PATCH] nds32: Support timer DM.

2016-11-30 Thread Andes
From: rick Add ag101p baord timer DM driver. Signed-off-by: rick Cc: Andes --- arch/nds32/cpu/n1213/ag101/timer.c |3 +- arch/nds32/dts/ag101p.dts |1 + configs/adp-ag101p_defconfig |2 + drivers/timer/Kconfig |6 ++ drivers/timer/Makefile

[U-Boot] [PATCH] nds32: Support serial DM.

2016-11-30 Thread Andes
From: rick Add device tree source file and enable DM and DM_SERIAL ag101p board can run ns16550 serial DM flow. Signed-off-by: rick Cc: Andes --- arch/Kconfig|1 + arch/nds32/cpu/n1213/start.S| 13 + arch/nds32/dts/Makefile | 14 + arch/

Re: [U-Boot] [PATCH v2] armv8: QSPI: Add AHB bus 16MB+ size support

2016-11-30 Thread Yao Yuan
On 12/01/2016 07:33 PM, York Sun wrote: > On 11/29/2016 07:33 PM, Yuan Yao wrote: > > From: Yuan Yao > > > > The default configuration for QSPI AHB bus can't support 16MB+. > > But some flash on NXP layerscape board are more than 16MB. > > > > Signed-off-by: Yuan Yao > > --- > > Changed in v2: >

Re: [U-Boot] [RFC PATCH v2 8/8] sandbox: GPT over MTD test

2016-11-30 Thread Simon Glass
On 30 November 2016 at 04:01, Patrick Delaunay wrote: > From: Patrick Delaunay > > activate needed feature in sandbox to allow test GPT over MTD > - EFI_PARTITION_MTD > - SPI_FLASH_MTD > - CMD_MTDPARTS > - MTD_PARTITIONS > - MTD_DEVICE > > activate 2 features useful for test > - RANDOM_UUID > - P

Re: [U-Boot] [RFC PATCH v2 5/8] cmd: part: update command to support GPT over MTD

2016-11-30 Thread Simon Glass
On 30 November 2016 at 04:01, Patrick Delaunay wrote: > From: Patrick Delaunay > > support part list for MTD device >> part list nand 0 >> part list nor 0 > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > cmd/part.c | 48 +++

Re: [U-Boot] [RFC PATCH v2 6/8] cmd: mtdparts: update command to support GPT over MTD

2016-11-30 Thread Simon Glass
Hi Patrick, On 30 November 2016 at 04:01, Patrick Delaunay wrote: > add new subcommand : > mtdparts gpt [] > > extract mtd partition from GPT header present in MTD device >> mtdparts gpt nand0 >> mtdparts gpt nor0 > > extract mtd partitions only for some GUID >> mtdparts gpt nand0 data >> mtdpar

Re: [U-Boot] [RFC PATCH v2 4/8] cmd: gpt: update command to support GPT over MTD

2016-11-30 Thread Simon Glass
Hi Patrick, On 30 November 2016 at 04:01, Patrick Delaunay wrote: > From: Patrick Delaunay > > support gpt write for MTD device >> gpt write nand 0 >> gpt write nor 0 > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > cmd/gpt.c | 98 >

Re: [U-Boot] [RFC PATCH v2 1/8] uuid: add function for GUID string parsing

2016-11-30 Thread Simon Glass
Hi Patrick, On 30 November 2016 at 04:01, Patrick Delaunay wrote: > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - split serie to reduce patches size > (seperate disk part and cmd impact and add precursor patch) > - split large function > > inc

Re: [U-Boot] [RFC PATCH v2 2/8] disk: part: refactor to prepare GPT over MTD

2016-11-30 Thread Simon Glass
Hi Patrick, On 30 November 2016 at 04:01, Patrick Delaunay wrote: > From: Patrick Delaunay > > - udpate prepare_backup_gpt_header(): > calculate partition_entry_lba and no more assumed last lba + 1 > > - split part_print_efi : create sub-functions > part_print_gpt() > part_get_disk_info()

Re: [U-Boot] [RFC PATCH v2 3/8] disk: part: add support of GPT partitioning over MTD

2016-11-30 Thread Simon Glass
Hi Patrick, On 30 November 2016 at 04:01, Patrick Delaunay wrote: > From: Patrick Delaunay > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > Kconfig| 12 ++ > disk/part_efi.c| 445 > +++

Re: [U-Boot] [PATCH 1/5] arm: tegra: initial support for apalis tk1

2016-11-30 Thread Simon Glass
On 30 November 2016 at 09:46, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This patch adds board support for the Toradex Apalis TK1 a computer on > module which can be used on different carrier boards. > > The module consists of a Tegra TK1 SoC, a PMIC solution, 2 GB of DDR3L > RAM, a bunch

Re: [U-Boot] [PATCH v2] rtc: Add RTC chip pcf2127 support

2016-11-30 Thread Simon Glass
Hi Meng, On 30 November 2016 at 00:47, Meng Yi wrote: > This driver compatible with pcf2127 and pcf2129 > > Signed-off-by: Meng Yi > --- > change in V2: > -convert to using u-boot driver module > --- > drivers/rtc/Kconfig | 6 +++ > drivers/rtc/Makefile | 1 + > drivers/rtc/pcf2127.c | 1

Re: [U-Boot] [PATCH 4/5] mmc: tegra: allow disabling external clock loopback

2016-11-30 Thread Simon Glass
Hi Marcel, On 30 November 2016 at 09:47, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Introduce CONFIG_TEGRA124_MMC_DISABLE_EXT_LOOPBACK to disable the external > clock > loopback and use the internal one on SDMMC3 as per the > SDMMC_VENDOR_MISC_CNTRL_0 > register's SDMMC_SPARE1 bits bei

Re: [U-Boot] [PATCH] disk: convert to Kconfig

2016-11-30 Thread Simon Glass
Hi Patrick, On 30 November 2016 at 10:06, Patrick DELAUNAY wrote: > Hi Tom, > >> >> > This converts the following to Kconfig: >> >CONFIG_PARTITIONS >> >CONFIG_MAC_PARTITION >> >CONFIG_DOS_PARTITION >> >CONFIG_ISO_PARTITION >> >CONFIG_AMIGA_PARTITION >> >

Re: [U-Boot] [PATCH 2/5] mmc: tegra: introduce CONFIG_TEGRA_MMC to Kconfig

2016-11-30 Thread Simon Glass
On 30 November 2016 at 09:46, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Signed-off-by: Marcel Ziswiler > --- > > drivers/mmc/Kconfig | 6 ++ > 1 file changed, 6 insertions(+) > Reviewed-by: Simon Glass But how about adding more help text? What versions of MMC/SD does it support?

Re: [U-Boot] [PATCH 3/5] mmc: tegra: move CONFIG_TEGRA_MMC from headers to defconfigs

2016-11-30 Thread Simon Glass
On 30 November 2016 at 09:47, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Basically running the following script: > > tools/moveconfig.py CONFIG_TEGRA_MMC > > Note that I left the SPL specific handling in > include/configs/tegra-common-post.h unchanged. > > Signed-off-by: Marcel Ziswiler

Re: [U-Boot] [PATCH v3 0/9] From Simon:

2016-11-30 Thread Simon Glass
Hi Heiko, On 30 November 2016 at 04:52, Heiko Stübner wrote: > Am Dienstag, 29. November 2016, 19:47:10 schrieb Simon Glass: >> Hi Heiko, >> >> On 29 November 2016 at 16:45, Heiko Stübner wrote: >> > Hi Simon, >> > >> > Am Sonntag, 27. November 2016, 10:01:40 schrieb Simon Glass: >> >> This v3 p

Re: [U-Boot] [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2016-11-30 Thread Simon Glass
Hi, On 25 November 2016 at 08:30, Olliver Schinagl wrote: > This patch adds a method for the board to set the MAC address if the > environment is not yet set. The environment based MAC addresses are not > touched, but if the fdt has an alias set, it is parsed and put into the > environment. > > E

Re: [U-Boot] uefi: x86: uboot as uefi payload

2016-11-30 Thread Simon Glass
Hi Markus, On 30 November 2016 at 04:32, Markus Valentin wrote: > Hi, > > im trying to run u-boot as uefi-payload for qemu this works totally > fine. > > My real target is a Minnowboard Turbot. I did use the > minnowmax_defconfig enabled CONFIG_EFI, CONFIG_EFI_STUB and > CONFIG_EFI_STUB_64BIT. Th

Re: [U-Boot] [PATCH v3 1/2] dm: Add support for scsi/sata based devices

2016-11-30 Thread Simon Glass
Hi Michal, On 30 November 2016 at 13:48, Michal Simek wrote: > All sata based drivers are bind and corresponding block > device is created. Based on this find_scsi_device() is able > to get back block device based on scsi_curr_dev pointer. > > intr_scsi() is commented now but it can be replaced b

Re: [U-Boot] [PATCH v1 5/5] scsi: Separate SCSI private block description initialization

2016-11-30 Thread Simon Glass
On 30 November 2016 at 13:46, Michal Simek wrote: > When blk_create_device() is called some parameters in blk_desc are > automatically filled. Separate SCSI private initialization and SCSI full > block device initialization not to rewrite already prepared data. > > Signed-off-by: Michal Simek > -

Re: [U-Boot] [PATCH v1 4/5] scsi: Change scsi_scan() to be able to return value

2016-11-30 Thread Simon Glass
On 30 November 2016 at 13:46, Michal Simek wrote: > With DM_SCSI this function will return more than one return value to > cover errors. > > Suggested-by: Simon Glass > Signed-off-by: Michal Simek > --- > > cmd/scsi.c | 14 ++ > common/scsi.c | 3 ++- > include/scsi.h | 2 +-

Re: [U-Boot] [PATCH v1 3/5] cmd: scsi: Make private functions static

2016-11-30 Thread Simon Glass
On 30 November 2016 at 13:46, Michal Simek wrote: > Two functions should be static because they are not exported to any > other file. > Warnings were reported by sparse C=1. > > Signed-off-by: Michal Simek > --- > > cmd/scsi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed

Re: [U-Boot] Please assign custodian for: u-boot-pmic / maintainers for: Samsung boards

2016-11-30 Thread Simon Glass
Hi Przemyslaw, On 30 November 2016 at 06:27, Przemyslaw Marczak wrote: > > Hello, > > During the last year I was assigned to an internal project, and I haven't > time for an Open Source activity, so I was quite inactive on U-Boot list. I wondered where you went! > > I finish work today at Sams

Re: [U-Boot] [PATCH v1 1/5] common: scsi: Remove completely unused functions

2016-11-30 Thread Simon Glass
On 30 November 2016 at 13:46, Michal Simek wrote: > These functions are not called for any location. > This patch removes them scsi_trim_trail(), scsi_get_disk_count() > and scsi_setup_read6(). > > Signed-off-by: Michal Simek > --- > > common/scsi.c | 35 --- > i

Re: [U-Boot] [PATCH v1 2/5] common: scsi: Make private functions static

2016-11-30 Thread Simon Glass
On 30 November 2016 at 13:46, Michal Simek wrote: > Several functions should be static because they are not exported to any > other file. > Warnings were reported by sparse C=1. > > Signed-off-by: Michal Simek > --- > > common/scsi.c | 16 ++-- > 1 file changed, 10 insertions(+), 6 d

Re: [U-Boot] [PATCHv3 09/15] pci: layerscape: add pci driver based on DM

2016-11-30 Thread Simon Glass
Hi, On 30 November 2016 at 01:14, Z.Q. Hou wrote: > Hi Simon, > > Thanks for your comments! > >> -Original Message- >> From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass >> Sent: 2016年11月30日 5:41 >> To: Z.Q. Hou >> Cc: U-Boot Mailing List ; Albert ARIBAUD >> ; Prabha

Re: [U-Boot] [PATCH v2] dm: core: Add dev_get_addr_size_index() to retrieve addr and size

2016-11-30 Thread Simon Glass
On 29 November 2016 at 23:24, Stefan Roese wrote: > The currently available functions accessing the 'reg' property of a > device only retrieve the address. Sometimes its also necessary to > retrieve the size described by the 'reg' property. This patch adds > the new function dev_get_addr_size_inde

Re: [U-Boot] [PATCH v3 1/1] cmd: pci: add option to parse and display BAR information

2016-11-30 Thread Simon Glass
Hi, On 30 November 2016 at 01:05, wrote: > From: Yehuda Yitschak > > Currently the PCI command only allows to see the BAR register > values but not the size and actual base address. > This little extension parses the BAR registers and displays > the base, size and type of each BAR. > > Signed-o

Re: [U-Boot] [PATCH v5 10/13] tegra: Use a U-Boot-specific .dtsi file

2016-11-30 Thread Simon Glass
Hi Stephen, On 29 November 2016 at 21:09, Stephen Warren wrote: > On 11/28/2016 03:09 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 17 November 2016 at 12:45, Stephen Warren >> wrote: >>> >>> >>> On 11/16/2016 06:13 PM, Simon Glass wrote: With the new device-tree rules it is p

Re: [U-Boot] [PATCH v2] spi: cadence_qspi_apb: Use 32 bit indirect write transaction when possible

2016-11-30 Thread Chin Liang See
On Sel, 2016-11-29 at 10:55 +0530, Vignesh R wrote: > > On Monday 28 November 2016 07:45 PM, See, Chin Liang wrote: > > > > On Jum, 2016-11-25 at 17:51 +0100, Marek Vasut wrote: > > > > > > On 11/24/2016 06:35 AM, Vignesh R wrote: > > > > > > > > > > > > According to Section 11.15.4.9.2 Indire

[U-Boot] [PATCH 13/13] mips: jz47xx: Add Creator CI20 platform

2016-11-30 Thread Marek Vasut
From: Paul Burton Add support for the Creator CI20 platform based on the JZ4780 SoC. The DTS file comes from Linux 4.6 as of revision 78800558d104e003f9ae92e0107f1de39cf9de9f So far, there are still a few details which will have to be fixed once they are fleshed out in Linux: - pinmux: Thus far,

[U-Boot] [PATCH 12/13] mips: jz47xx: Add minimal JZ MMC node

2016-11-30 Thread Marek Vasut
Add minimal JZ MMC node into the JZ4780 device tree. This piece is picked from the CI20 Linux repository. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Paul Burton --- arch/mips/dts/jz4780.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/mips/dts/jz47

[U-Boot] [PATCH 11/13] mips: jz47xx: Add JZ4780 SoC support

2016-11-30 Thread Marek Vasut
From: Paul Burton Add initial support for the Ingenic JZ47xx MIPS SoC. The DTSI file comes from Linux 4.6 as of revision 78800558d104e003f9ae92e0107f1de39cf9de9f Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Paul Burton --- arch/mips/Kconfig| 7 + ar

[U-Boot] [PATCH 09/13] misc: Add JZ47xx efuse driver

2016-11-30 Thread Marek Vasut
From: Paul Burton Add driver for the efuse block in the JZ47xx SOC. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Paul Burton --- drivers/misc/Kconfig| 6 +++ drivers/misc/Makefile | 1 + drivers/misc/jz4780_efuse.c | 100

[U-Boot] [PATCH 06/13] mmc: Add JZ47xx SD/MMC controller driver

2016-11-30 Thread Marek Vasut
From: Paul Burton Add driver for the JZ47xx MSC controller. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Paul Burton Cc: Jaehoon Chung --- drivers/mmc/Kconfig | 6 + drivers/mmc/Makefile | 1 + drivers/mmc/jz_mmc.c | 445 +++ 3 f

[U-Boot] [PATCH 07/13] SPL: mmc: Make spl_mmc_load_image available

2016-11-30 Thread Marek Vasut
Make the spl_mmc_load_image() available globally, so it can be invoked directly by SPL on extremely space-constrained systems. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass Cc: Jaehoon Chung --- common/spl/spl_mmc.c | 4 ++-- include/spl.h| 3 +++ 2 files changed, 5 insertio

[U-Boot] [PATCH 10/13] mips: Add SPL header

2016-11-30 Thread Marek Vasut
From: Paul Burton Add header with SPL boot mode and type definitions. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Paul Burton --- arch/mips/include/asm/spl.h | 35 +++ 1 file changed, 35 insertions(+) create mode 100644 arch/mips/include/asm/spl.h

[U-Boot] [PATCH 05/13] mmc: Tinification of the mmc code

2016-11-30 Thread Marek Vasut
Add new configuration option CONFIG_MMC_TINY which strips away all memory allocation within the MMC code and code for handling multiple cards. This allows extremely space-constrained SPL code use the MMC framework. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass Cc: Jaehoon Chung --- V

[U-Boot] [PATCH 08/13] gpio: Add JZ47xx GPIO driver

2016-11-30 Thread Marek Vasut
From: Paul Burton Add primitive GPIO controller driver for the JZ47xx SoC. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Paul Burton --- drivers/gpio/Kconfig | 8 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-jz47xx.c | 79 +

[U-Boot] [PATCH 03/13] serial: 16550: Add Ingenic JZ4780 support

2016-11-30 Thread Marek Vasut
Add compatibility string for the Ingenic JZ4780 SoC, the necessary UART enable bit into FCR and register shift. Neither are encoded in the DTS coming from Linux, so we need to support it this way. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass Cc: Daniel Schwierzeck Cc: Paul Burton -

[U-Boot] [PATCH 02/13] serial: 16550: Add port type as driver data

2016-11-30 Thread Marek Vasut
Add driver data to each compatible string to identify the type of the port. Since all the ports in the driver are entirely compatible with 16550 for now, all are marked with PORT_NS16550. But, there are ports which have specific quirks, like the JZ4780 UART, which do not have any DT property to den

[U-Boot] [PATCH 04/13] mmc: Fix warning if debug() is not used

2016-11-30 Thread Marek Vasut
If debug() is not used, then the whole content of debug(...) will be removed by the preprocessor, which will result in the following warning. This patch adds __maybe_unused annotation to fix this. drivers/mmc/mmc.c: In function ‘mmc_init’: drivers/mmc/mmc.c:1685:11: warning: variable ‘start’ set b

[U-Boot] [PATCH 01/13] serial: 16550: Add getfcr accessor

2016-11-30 Thread Marek Vasut
Add function which allows fetching the default FCR register setting from platform data for DM , while retaining old behavior for non-DM by returning UART_FCRVAL. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass --- V2: If CONFIG_DM_SERIAL and DEBUG_UART are enabled, the ns16550_getfcr()

Re: [U-Boot] [PATCH v1 5/5] scsi: Separate SCSI private block description initialization

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 09:46:51PM +0100, Michal Simek wrote: > When blk_create_device() is called some parameters in blk_desc are > automatically filled. Separate SCSI private initialization and SCSI full > block device initialization not to rewrite already prepared data. > > Signed-off-by: Mich

Re: [U-Boot] [PATCH v1 4/5] scsi: Change scsi_scan() to be able to return value

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 09:46:50PM +0100, Michal Simek wrote: > With DM_SCSI this function will return more than one return value to > cover errors. > > Suggested-by: Simon Glass > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [PATCH v1 3/5] cmd: scsi: Make private functions static

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 09:46:49PM +0100, Michal Simek wrote: > Two functions should be static because they are not exported to any > other file. > Warnings were reported by sparse C=1. > > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signatur

Re: [U-Boot] [PATCH v1 2/5] common: scsi: Make private functions static

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 09:46:48PM +0100, Michal Simek wrote: > Several functions should be static because they are not exported to any > other file. > Warnings were reported by sparse C=1. > > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital sign

Re: [U-Boot] [PATCH v1 1/5] common: scsi: Remove completely unused functions

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 09:46:47PM +0100, Michal Simek wrote: > These functions are not called for any location. > This patch removes them scsi_trim_trail(), scsi_get_disk_count() > and scsi_setup_read6(). > > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Descripti

Re: [U-Boot] [PATCH v2 2/2] common/board_f.c: align m68k arch to use CONFIG_DISPLAY_CPUINFO

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 11:16:06PM +0100, Angelo Dureghello wrote: > Change all coldfire board files to use CONFIG_DISPLAY_CPUINFO. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: >- no changes > --- > configs/M5208EVBE_defconfig | 1 + > configs/M52277EVB_def

Re: [U-Boot] [PATCH v2 1/2] common/board_f.c: align m68k arch to use CONFIG_DISPLAY_CPUINFO

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 11:15:51PM +0100, Angelo Dureghello wrote: > Change all coldfire arch files to use CONFIG_DISPLAY_CPUINFO. > > Signed-off-by: Angelo Dureghello Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] net: phy: micrel: Fix error handling

2016-11-30 Thread Joe Hershberger
Hi Marek, https://patchwork.ozlabs.org/patch/694537/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] ts4600: Disable CONFIG_DISPLAY_CPUINFO

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 02:16:16PM -0500, Tom Rini wrote: > Without this change we see: > ../arch/arm/cpu/arm926ejs/mxs/mxs.c: In function ‘print_cpuinfo’: > ../arch/arm/cpu/arm926ejs/mxs/mxs.c:181:23: warning: unused variable ‘data’ > [-Wunused-variable] > ../arch/arm/cpu/arm926ejs/mxs/mxs.c:180

Re: [U-Boot] [PATCH] travis.yml: Split Freescale ARM job up more

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 02:06:39PM -0500, Tom Rini wrote: > In order to avoid running into the time limit, split the 32bit and 64bit > Freescale boards into separate jobs. We could either pass > "freescale & armv8" to buildman or exclude all of the 32bit CPUs. While > the former is shorter I fea

Re: [U-Boot] [GIT PULL] u-boot-mips/master

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 07:13:51PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > Travis-CI build is green (one job has failed due to job time limit) > > https://travis-ci.org/danielschwierzeck/u-boot/builds/180114376 > > > The following changes since commit 6b29a395b62965eef6b5065d3a526a8

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

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 11:57:06AM +0100, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit e94793c844a40606252f2e3f6428063e057b3fd2: > > spl: add USB Gadget config option (2016-11-28 19:49:49 -0500) > > are available in the git r

Re: [U-Boot] Travis CI

2016-11-30 Thread Tom Rini
On Wed, Nov 30, 2016 at 09:55:52PM +, york sun wrote: > On 11/30/2016 01:43 PM, york@nxp.com wrote: > > On 11/30/2016 01:35 PM, Stephen Warren wrote: > >> On 11/30/2016 12:47 PM, york sun wrote: > >>> Guys, > >>> > >>> I noticed you have been improving .travis.yml. Can you share some > >>>

Re: [U-Boot] [PATCH v2] board/ls2088ardb: set rear fan speed to reduce noise

2016-11-30 Thread york sun
Ying, There is no ls2088ardb board. It is ls2080ardb target supporting all three variants. On 11/21/2016 05:30 AM, ying.zhang22...@nxp.com wrote: > From: Ying Zhang > > Fan settings(PWM signal set to ~50% duty cycle for all three rear) > fans provide good thermal air flow with considerable redu

Re: [U-Boot] [PATCH] net: zynq_gem: Return 0 on success, not -ENOSYS

2016-11-30 Thread Joe Hershberger
On Fri, Nov 25, 2016 at 9:41 AM, Olliver Schinagl wrote: > The .read_rom_hwaddr net_ops hook does not check the return value, which > is why it was never caught that we are currently returning 0 if the > read_rom_hwaddr function return -ENOSYS and -ENOSYS otherwise. > > In this case we can simplif

Re: [U-Boot] [PATCHv2 1/5] fsl: serdes: ensure accessing the initialized maps of serdes protocol

2016-11-30 Thread york sun
On 11/30/2016 12:41 AM, Z.Q. Hou wrote: >> Zhiqiang, >> >> This patch has been merged but I found an issue with it today. Please try to >> boot P4080DS from NOR flash. It causes recursive calls >> fsl_serdes_init()->p4080_erratum_serdes_a005()->is_serdes_configured()->fsl_ >> serdes_init(). >> Plea

Re: [U-Boot] [PATCH] powerpc: Retain compatible property for L2 cache

2016-11-30 Thread york sun
On 11/28/2016 07:10 PM, Chris Packham wrote: > Instead of setting the compatible property to "cache", append the > desired value retaining what may already be set in the current property. > > Signed-off-by: Chris Packham > --- > > arch/powerpc/cpu/mpc85xx/fdt.c | 3 ++- > 1 file changed, 2 ins

[U-Boot] [PATCH v2 6/8] spl: sunxi: Drop spl_board_announce_boot_device()

2016-11-30 Thread Simon Glass
This function is not used anymore. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-sunxi/board.c | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 205236d..aa11493 100644 --- a/arch/arm/mach-sun

[U-Boot] [PATCH v2 7/8] spl: uniphier: Drop spl_board_announce_boot_device()

2016-11-30 Thread Simon Glass
This function is not used anymore. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-uniphier/boot-mode/spl_board.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-uniphier/boot-mode/spl_board.c b/arch/arm/mach-uniphier/boot-mode/spl_board.c index

[U-Boot] [PATCH v2 5/8] spl: Drop announce_boot_device()

2016-11-30 Thread Simon Glass
This task can be handled by inline code now. Drop this function. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/spl.c | 86 ++-- 1 file changed, 3 insertions(+), 83 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c

[U-Boot] [PATCH v2 4/8] spl: Pass the loader into spl_load_image()

2016-11-30 Thread Simon Glass
Rather than have this function figure out the correct loader again, pass it in as a parameter. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/spl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index f97d5b4..062b

[U-Boot] [PATCH v2 8/8] spl: sandbox: Drop spl_board_announce_boot_device()

2016-11-30 Thread Simon Glass
This function is not used anymore. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/spl.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index 632446b..7cc76d4 100644 --- a/arch/

[U-Boot] [PATCH v2 2/8] spl: Add a name to the SPL load-image methods

2016-11-30 Thread Simon Glass
It is useful to name each method so that we can print out this name when using the method. Currently this happens using a separate function. In preparation for unifying this, add a name to each method. The name is only available if we have libcommon support (i.e can use printf()). Signed-off-by:

[U-Boot] [PATCH v2 1/8] spl: Use a single underscore in the SPL_LOAD_IMAGE_METHOD() macro

2016-11-30 Thread Simon Glass
A double underscore is normally reserved for compiler predefines. Use a single underscore instead. Signed-off-by: Simon Glass --- Changes in v2: None include/spl.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/spl.h b/include/spl.h index e080a82..11

[U-Boot] [PATCH v2 3/8] spl: Move the loading code into its own function

2016-11-30 Thread Simon Glass
Create a boot_from_devices() function to handle trying each device. This helps to reduce the size of the already-large board_init_r() function. Signed-off-by: Simon Glass --- Changes in v2: - Drop incorrect use of ARRAY_SIZE in boot_from_devices() - Add a function comment to boot_from_devices()

Re: [U-Boot] Travis CI

2016-11-30 Thread york sun
On 11/30/2016 01:35 PM, Stephen Warren wrote: > On 11/30/2016 12:47 PM, york sun wrote: >> Guys, >> >> I noticed you have been improving .travis.yml. Can you share some >> performance data when using it? I am still using Jenkins to verify my >> branches for every commit. Due to the limitation of co

[U-Boot] [PATCH v2 2/2] common/board_f.c: align m68k arch to use CONFIG_DISPLAY_CPUINFO

2016-11-30 Thread Angelo Dureghello
Change all coldfire board files to use CONFIG_DISPLAY_CPUINFO. Signed-off-by: Angelo Dureghello --- Changes for v2: - no changes --- configs/M5208EVBE_defconfig | 1 + configs/M52277EVB_defconfig | 1 + configs/M52277EVB_stmicro_defconfig | 1 + c

[U-Boot] [PATCH v2 1/2] common/board_f.c: align m68k arch to use CONFIG_DISPLAY_CPUINFO

2016-11-30 Thread Angelo Dureghello
Change all coldfire arch files to use CONFIG_DISPLAY_CPUINFO. Signed-off-by: Angelo Dureghello --- Changes for v2: - update common/Kconfig to add M68K to the default y list --- arch/m68k/cpu/mcf5227x/cpu.c | 4 +++- arch/m68k/cpu/mcf523x/cpu.c| 4 +++- arch/m68k/cpu/mcf52x2/cpu.c|

Re: [U-Boot] [PATCH 2/4 v3] fsl/ddr: Add erratum_a009942_check_cpo and clean related erratum

2016-11-30 Thread york sun
On 11/30/2016 01:28 PM, york@nxp.com wrote: > On 11/20/2016 07:49 PM, Shengzhou Liu wrote: >> - add additional function erratum_a009942_check_cpo to check if the >> board needs tuning CPO calibration for optimal setting. >> - move ERRATUM_A009942(with revision to check cpo_sample option) from

  1   2   3   >