Re: [U-Boot] [PATCH] spi: fsl_qspi: Add controller busy check before new spi operation

2017-08-22 Thread Suresh Gupta
> -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Wednesday, August 23, 2017 10:57 AM > To: Suresh Gupta > Cc: u-boot@lists.denx.de; Jagan Teki > Subject: Re: [U-Boot] [PATCH] spi: fsl_qspi: Add controller busy check before > new spi operation > > On Tue

[U-Boot] [PATCH 2/2] env: ti: boot: Select dtb name for X15 revC

2017-08-22 Thread Lokesh Vutla
Select dtb name for am57xx BeagleBoard-X15 revC Signed-off-by: Lokesh Vutla --- include/environment/ti/boot.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 01f7f7a300..dabfb37204 100644 --- a/include/environment/ti/boot.

[U-Boot] [PATCH 0/2] board: ti: am57xx: Add DT support for BeagleBoard-X15 revC

2017-08-22 Thread Lokesh Vutla
Now that we have synced DTS from Latest Linux kernel, add dt support for BeagleBoard-X15 revC. Board detection support is already added for this board. Lokesh Vutla (2): board: ti: am57xx: Add dt support for BeagleBoard-X15 revC env: ti: boot: Select dtb name for X15 revC arch/arm/dts/Makefi

[U-Boot] [PATCH 1/2] board: ti: am57xx: Add dt support for BeagleBoard-X15 revC

2017-08-22 Thread Lokesh Vutla
Add support for selecting proper dtb for am57xx BeagleBoard X15 revC u-boot from FIT Signed-off-by: Lokesh Vutla --- arch/arm/dts/Makefile | 1 + board/ti/am57xx/board.c | 3 +++ configs/am57xx_evm_defconfig| 2 +- configs/am57xx_hs_evm_defconfig | 2 +- 4 files changed, 6

[U-Boot] [PATCH] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

2017-08-22 Thread Sumit Garg
As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in all Secure Boot defconfigs. Signed-off-by: Sumit Garg --- configs/ls1012ardb_qspi_SECURE_BOOT_defconfig

Re: [U-Boot] [PATCH] blk: Remove various places that do flush cache after read

2017-08-22 Thread Bin Meng
Hi Yangbo, On Wed, Aug 23, 2017 at 11:29 AM, Y.b. Lu wrote: > cmd/mmc.c > > Maybe SD controller on some vendor platforms doesn't support SNOOP. > flush_cache() is required to sync between DDR and cache. > Should be careful to remove this. > Please do not top-posting. What you mentioned if snoop

Re: [U-Boot] [PATCH] spi: fsl_qspi: Add controller busy check before new spi operation

2017-08-22 Thread Jagan Teki
On Tue, Aug 22, 2017 at 4:19 PM, Suresh Gupta wrote: > Thanks Jagan for reviewing the code. > Please find comments in line > >> -Original Message- >> From: Jagan Teki [mailto:jagannadh.t...@gmail.com] >> Sent: Monday, August 21, 2017 7:53 PM >> To: Suresh Gupta >> Cc: u-boot@lists.denx.d

Re: [U-Boot] [PATCH] spi: fsl_qspi: Add controller busy check before new spi operation

2017-08-22 Thread Suresh Gupta
> -Original Message- > From: York Sun > Sent: Tuesday, August 22, 2017 9:56 PM > To: Suresh Gupta ; u-boot@lists.denx.de > Cc: ja...@openedev.com; Prabhakar Kushwaha > > Subject: Re: [PATCH] spi: fsl_qspi: Add controller busy check before new spi > operation > > On 08/21/2017 03:25 AM,

Re: [U-Boot] [PATCH] blk: Remove various places that do flush cache after read

2017-08-22 Thread Y.b. Lu
cmd/mmc.c Maybe SD controller on some vendor platforms doesn't support SNOOP. flush_cache() is required to sync between DDR and cache. Should be careful to remove this. > -Original Message- > From: Qiang Zhao > Sent: Wednesday, August 23, 2017 11:14 AM > To: Y.b. Lu; York Sun; Bin Meng;

Re: [U-Boot] [PATCH] blk: Remove various places that do flush cache after read

2017-08-22 Thread Qiang Zhao
+Yangbo Best Regards Qiang Zhao > -Original Message- > From: York Sun > Sent: Wednesday, August 23, 2017 12:49 AM > To: Bin Meng ; Grygorii Strashko > ; Michal Simek ; Angelo > Dureghello ; Kever Yang ; > Jaehoon Chung ; Albert Aribaud > ; Marcel Ziswiler ; > Markus Niebel ; Z.q. Hou > ;

[U-Boot] [PATCH] scripts: objdiff: Ignore debug info when comparing

2017-08-22 Thread Masahiro Yamada
From: Stephen Boyd If the kernel is configured to be built with debug symbols, or has bug tables, comparing files may not work if line numbers change. This makes comparing object files with these options harder to do. Let's strip out the debug info and drop the __bug_table here so that we don't s

Re: [U-Boot] [PATCH 0/5] configs: at91: Remove value of CONFIG_SYS_EXTRA_OPTIONS option

2017-08-22 Thread Yang, Wenyou
Hi Please comment this patch series. On 2017/8/4 9:20, Wenyou Yang wrote: The CONFIG_SYS_EXTRA_OPTIONS option is deprecated, remove the value of this option from the board default config files. Wenyou Yang (5): ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig ARM: at91: Add the SoC

Re: [U-Boot] [PATCH] blk: Remove various places that do flush cache after read

2017-08-22 Thread Bin Meng
Hi York, On Wed, Aug 23, 2017 at 12:49 AM, York Sun wrote: > On 08/21/2017 08:42 PM, Bin Meng wrote: >> All these places seem to inherit the codes from the MMC driver where >> a FIXME was put in the comment. However the correct operation after >> read should be cache invalidate, not flush. >> >>

Re: [U-Boot] [PATCH v4 3/3] armv8: ls1088aqds: Add support of LS1088AQDS

2017-08-22 Thread York Sun
On 08/17/2017 10:45 PM, Ashish Kumar wrote: > +void ls1088a_handle_phy_interface_sgmii(int dpmac_id) > +{ > + struct mii_dev *bus; > + struct ccsr_gur __iomem *gur = (void *)CONFIG_SYS_FSL_GUTS_ADDR; > + u32 serdes1_prtcl, cfg; > + > + cfg = in_le32(&gur->rcwsr[FSL_CHASSIS3_SRDS1

Re: [U-Boot] [PATCH] fastboot: Ensure we treat CONFIG_FASTBOOT_BUF_ADDR as long

2017-08-22 Thread Tom Rini
On Tue, Aug 22, 2017 at 04:49:54PM -0400, Tom Rini wrote: > Otherwise: > drivers/usb/gadget/f_fastboot.c:564:32: warning: format "%lx" expects > argument of type "long unsigned int", but argument 3 has type "unsigned > int" [-Wformat=] > > Signed-off-by: Tom Rini Applied to u-boot/master, thank

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

2017-08-22 Thread Tom Rini
On Mon, Aug 21, 2017 at 11:43:22AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull this one mvebu fix from Chris. > > Thanks, > Stefan > > > The following changes since commit 2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383: > > env: Replace all open-coded gd->env_valid values with ENV_ flags

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

2017-08-22 Thread Tom Rini
On Mon, Aug 21, 2017 at 11:32:42AM +0200, Marek Vasut wrote: > The following changes since commit 2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383: > > env: Replace all open-coded gd->env_valid values with ENV_ flags > (2017-08-20 19:27:44 -0400) > > are available in the git repository at: > > git:

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

2017-08-22 Thread Tom Rini
On Sun, Aug 20, 2017 at 11:18:59PM +0900, Masahiro Yamada wrote: > Hi Tom, > > Please pull some more UniPhier SoC changes. > Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists

[U-Boot] [PATCH] fastboot: Ensure we treat CONFIG_FASTBOOT_BUF_ADDR as long

2017-08-22 Thread Tom Rini
Otherwise: drivers/usb/gadget/f_fastboot.c:564:32: warning: format "%lx" expects argument of type "long unsigned int", but argument 3 has type "unsigned int" [-Wformat=] Signed-off-by: Tom Rini --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH 10/14] dm: mmc: sunxi: Add support for driver model

2017-08-22 Thread Maxime Ripard
Hi Siarhei, On Fri, Jul 28, 2017 at 11:15:44PM +0300, Siarhei Siamashka wrote: > On Fri, 28 Jul 2017 18:08:31 +0200 > Maxime Ripard wrote: > > > On Thu, Jul 27, 2017 at 10:19:44PM -0600, Simon Glass wrote: > > > Hi Maxime, > > > > > > On 17 July 2017 at 03:26, Maxime Ripard > > > wrote: > >

Re: [U-Boot] [PATCH 2/2] net: nfs: Correct type of rpc_t->u.reply->data

2017-08-22 Thread Joe Hershberger
On Sun, Aug 20, 2017 at 9:40 PM, Tom Rini wrote: > In rpc_t we declare data to be a uint8_t of size 2048, for a final size > of 2048. We also however declare the reply part of the union to have a > uint32_t data field of NFS_READ_SIZE (1024) for a final size of > 4096+24=4120 and an overrun. Exp

Re: [U-Boot] [PATCH 1/2] net: nfs: Drop CONFIG_NFS_READ_SIZE

2017-08-22 Thread Joe Hershberger
On Sun, Aug 20, 2017 at 9:40 PM, Tom Rini wrote: > In the general case, CONFIG_NFS_READ_SIZE is unchanged from the default > of 1024. There are in fact no in-tree users that increase this size. > Adjust the comment to reflect what could be done in the future in > conjunction with CONFIG_IP_DEFRAG

Re: [U-Boot] [PATCH] blk: Remove various places that do flush cache after read

2017-08-22 Thread York Sun
On 08/21/2017 08:42 PM, Bin Meng wrote: > All these places seem to inherit the codes from the MMC driver where > a FIXME was put in the comment. However the correct operation after > read should be cache invalidate, not flush. > > The underlying drivers should be responsible for the cache operatio

[U-Boot] [PATCH 1/1] efi_net: return EFI_UNSUPPORTED where appropriate

2017-08-22 Thread Heinrich Schuchardt
U-Boot does not implement all functions of the simple network protocol. The unimplemented functions return either of EFI_SUCCESS and EFI_INVALID_PARAMETER. The UEFI spec foresees to return EFI_UNSUPPORTED in these cases. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_net.c | 10 -

Re: [U-Boot] [PATCH] spi: fsl_qspi: Add controller busy check before new spi operation

2017-08-22 Thread York Sun
On 08/21/2017 03:25 AM, Suresh Gupta wrote: > It is recommended to check either controller is free to take > new spi action. The IP_ACC and AHB_ACC bits indicates that > the controller is busy in IP or AHB mode respectively. > And the BUSY bit indicates that the controller is currently > busy handl

[U-Boot] [PATCH 2/2] omap3: am3517_evm: Enable TI_COMMON_CMD_OPTION

2017-08-22 Thread Adam Ford
Enable TI_COMMON_CMD_OPTIONS and remove similar options from the defconfig. Updated with savedefconfig. Signed-off-by: Adam Ford --- board/logicpd/am3517evm/Kconfig | 2 ++ configs/am3517_evm_defconfig| 23 --- 2 files changed, 10 insertions(+), 15 deletions(-) diff --g

[U-Boot] [PATCH 1/2] ARM: OMAP3: am3517_evm: Move header to ti_omap3_common.h

2017-08-22 Thread Adam Ford
Much of the AM3517 functions are copies of the standard definitions used in ti_omap3_common.h. Moving to include a common file reduces the amount of duplicative code and clutter. A few AM3517 specific functions (like EMIF4) are explictly defined and a few items are undefined or redefined, but ove

Re: [U-Boot] [PATCH] fs: ext4: Fix journal overrun issue reported by Coverity

2017-08-22 Thread Brüns , Stefan
On Montag, 21. August 2017 04:30:15 CEST Tom Rini wrote: > While &p_jdb[fs->blksz] is a valid expression (it points *one* char > sized element past the end of the array, e.g. &p_jdb[fs->blksz + 1] is > invalid (according to the C standard (C99/C11)). > > Changing this to tag = (struct ext3_journal

[U-Boot] [PATCH 07/14] nvme: Use macros to access NVMe queues

2017-08-22 Thread Bin Meng
NVMe driver only uses two queues. The first one is allocated to do admin stuff, while the second one is for IO stuff. So far the driver uses magic number (0/1) to access them. Change to use macros. Signed-off-by: Bin Meng --- drivers/nvme/nvme.c | 22 +++--- 1 file changed, 15 i

[U-Boot] [PATCH 14/14] sandbox: Enable NVMe driver for build testing

2017-08-22 Thread Bin Meng
This enables NVMe driver on sandbox for build testing. Signed-off-by: Bin Meng --- configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs/sandbox_spl_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sa

[U-Boot] [PATCH 06/14] nvme: Respect timeout when en/disabling the controller

2017-08-22 Thread Bin Meng
So far the driver unconditionally delays 10ms when en/disabling the controller and still return 0 if 10ms times out. In fact, spec defines a timeout value in the CAP register that is the worst case time that host software shall wait for the controller to become ready. Signed-off-by: Bin Meng ---

[U-Boot] [PATCH 09/14] nvme: Apply cache operations on the DMA buffers

2017-08-22 Thread Bin Meng
So far cache operations are only applied on the submission queue and completion queue, but they are missing in other places like identify and block read/write routines. In order to correctly operate on the caches, the DMA buffer passed to identify routine must be allocated properly on the stack wi

[U-Boot] [PATCH 08/14] nvme: Consolidate block read and write routines

2017-08-22 Thread Bin Meng
The NVMe block read and write routines are almost the same except the command opcode. Let's consolidate them to avoid duplication. Signed-off-by: Bin Meng --- drivers/nvme/nvme.c | 65 ++--- 1 file changed, 12 insertions(+), 53 deletions(-) diff

[U-Boot] [PATCH 13/14] sandbox: Add a dummy invalidate_dcache_range() function

2017-08-22 Thread Bin Meng
This adds invalidate_dcache_range() so that some drivers can build without error on sandbox. Signed-off-by: Bin Meng --- arch/sandbox/cpu/cpu.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index eefed2e..0199104 100644 --- a/arch/sandbo

[U-Boot] [PATCH 04/14] nvme: Fix endianness assignment to prp2 in nvme_identify()

2017-08-22 Thread Bin Meng
So far this is not causing any issue due to NVMe and x86 are using the same endianness, but for correctness, it should be fixed. Signed-off-by: Bin Meng --- drivers/nvme/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index 5d

[U-Boot] [PATCH 10/14] nvme: Use blk_create_devicef() API

2017-08-22 Thread Bin Meng
The codes in nvme_uclass_post_probe() can be replaced to call the blk_create_devicef() API directly. Signed-off-by: Bin Meng --- drivers/nvme/nvme-uclass.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/nvme/nvme-uclass.c b/drivers/nvme/nvme-uclass.c in

[U-Boot] [PATCH 03/14] nvme: Fix ndev->queues allocation

2017-08-22 Thread Bin Meng
ndev->queues is a pointer to pointer, but the allocation wrongly requests sizeof(struct nvme_queue). Fix it. Signed-off-by: Bin Meng --- drivers/nvme/nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index 2ac0870..5d39cab 1

[U-Boot] [PATCH 05/14] nvme: Cache controller's capabilities

2017-08-22 Thread Bin Meng
Capabilities register is RO and accessed at various places in the driver. Let's cache it in the controller driver's priv struct. Signed-off-by: Bin Meng --- drivers/nvme/nvme.c | 11 +-- drivers/nvme/nvme.h | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/n

[U-Boot] [PATCH 11/14] nvme: Get rid of the global variable nvme_info

2017-08-22 Thread Bin Meng
At present the NVMe uclass driver uses a global variable nvme_info to store global information like namespace id, and NVMe controller driver's priv struct has a blk_dev_start that is used to calculate the namespace id based on the global information from nvme_info. This is not a good design in the

[U-Boot] [PATCH 12/14] nvme: Adjust the 'nvme' command to use blk_common_cmd()

2017-08-22 Thread Bin Meng
Instead of having separate code in the 'nvme' command, adjust it to use the common function. Signed-off-by: Bin Meng --- cmd/nvme.c | 195 +++-- doc/README.nvme| 4 +- include/config_fallbacks.h | 1 + 3 files changed, 30 i

[U-Boot] [PATCH 02/14] nvme: Fix getting PCI vendor id of the NVMe block device

2017-08-22 Thread Bin Meng
The codes currently try to read PCI vendor id of the NVMe block device by dm_pci_read_config16() with its parameter set as its root complex controller (ndev->pdev) instead of itself. This is seriously wrong. We can read the vendor id by passing the correct udevice parameter to the dm_pci_read_confi

[U-Boot] [PATCH 01/14] nvme: Remove useless defines

2017-08-22 Thread Bin Meng
These are leftover when the driver was ported from Linux and are not used by the U-Boot driver. Signed-off-by: Bin Meng --- drivers/nvme/nvme.h | 60 - 1 file changed, 60 deletions(-) diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h ind

[U-Boot] [PATCH 00/14] nvme: Various bug fixes and updates

2017-08-22 Thread Bin Meng
This series fixes various bugs and clean up on current NVMe driver. It also enables NVMe driver on sandbox for build testing. This series is available at u-boot-x86/nvme-working for testing. Bin Meng (14): nvme: Remove useless defines nvme: Fix getting PCI vendor id of the NVMe block device

Re: [U-Boot] [PATCH v2 1/3] arm: omap: Define command for booting Android from eMMC

2017-08-22 Thread Sam Protsenko
On 18 August 2017 at 14:42, Jaehoon Chung wrote: > On 08/16/2017 09:55 PM, Sam Protsenko wrote: >> If SD card is present -- try to boot from it first. If no -- try to boot >> Android from eMMC. > > Well, i didn't know exactly..but is it working? > Yes, I verified it on AM57x EVM, it's working jus

Re: [U-Boot] rk3288: 32KB SPL size restriction

2017-08-22 Thread Dr. Philipp Tomsich
> On 22 Aug 2017, at 14:05, Jagan Teki wrote: > > Philipp and Kever - Thanks for the response. > > Few comment below. > > On Thu, Aug 17, 2017 at 2:02 PM, Dr. Philipp Tomsich > wrote: >> Jagan, >> >>> On 17 Aug 2017, at 08:39, Kever Yang wrote: >>> >>> Hi Jagan, >>> >>> >>> On 08/10/2017

Re: [U-Boot] rk3288: 32KB SPL size restriction

2017-08-22 Thread Jagan Teki
Philipp and Kever - Thanks for the response. Few comment below. On Thu, Aug 17, 2017 at 2:02 PM, Dr. Philipp Tomsich wrote: > Jagan, > >> On 17 Aug 2017, at 08:39, Kever Yang wrote: >> >> Hi Jagan, >> >> >> On 08/10/2017 05:07 PM, Jagan Teki wrote: >>> Hi Simon/Philipp or any, >>> >>> I believe

[U-Boot] [PATCH 1/1] efi_loader: efi_net: hwaddr_size = 6

2017-08-22 Thread Heinrich Schuchardt
The length of a MAC address is 6. We have to set this length in the EFI_SIMPLE_NETWORK_MODE structure of the EFI_SIMPLE_NETWORK_PROTOCOL. Without this patch iPXE fails to initialize the network with error message SNP MAC(001e0633bcbf,0x0) has invalid hardware address length 0 Signed-off-by: Heinr

Re: [U-Boot] [PATCH] spi: fsl_qspi: Add controller busy check before new spi operation

2017-08-22 Thread Suresh Gupta
Thanks Jagan for reviewing the code. Please find comments in line > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Monday, August 21, 2017 7:53 PM > To: Suresh Gupta > Cc: u-boot@lists.denx.de; Jagan Teki > Subject: Re: [U-Boot] [PATCH] spi: fsl_qspi:

[U-Boot] [PATCH] armv8/ls1088a: configure PMU's PCTBENR to enable WDT

2017-08-22 Thread ying.zhang22455
From: Zhang Ying-22455 The SP805-WDT module on LS1088A requires configuration of PMU's PCTBENR register to enable watchdog counter decrement and reset signal generation. The watchdog clock needs to be enabled first. Signed-off-by: Zhang Ying-22455 --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c |

[U-Boot] [PATCH] board: ge: bx50v3: set eth0 MAC address

2017-08-22 Thread Jose Alarcon
From: Ian Ray Define i2c mux configuration. Add new vpd_reader which is used to read vital product data. Read VPD from EEPROM and set eth0 MAC address. Signed-off-by: Ian Ray Signed-off-by: Jose Alarcon --- board/ge/bx50v3/Makefile | 2 +- board/ge/bx50v3/bx50v3.c | 109 ++

[U-Boot] [PATCH] board: ge: bx50v3: set eth0 MAC address

2017-08-22 Thread Jose Alarcon
This patch modifies U-Boot to read the FEC MAC address from EEPROM and program it to the hardware -- replacing earlier functionality which attempted to set the MAC address from user-space. Tested on bx50v3. Verified that FEC MAC address is set correctly. Corrupted first MAC octet in EEPROM, and ve

[U-Boot] Please pull u-boot-cfi-flash/master

2017-08-22 Thread Stefan Roese
Hi Tom, please pull the cleanup patch from Marek for the CFI driver. Thanks, Stefan The following changes since commit 2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383: env: Replace all open-coded gd->env_valid values with ENV_ flags (2017-08-20 19:27:44 -0400) are available in the git repository

Re: [U-Boot] [PATCH] mtd: cfi: staticize functions

2017-08-22 Thread Stefan Roese
On 20.08.2017 17:20, Marek Vasut wrote: Staticize a few functions and variables which are no longer exposed. Signed-off-by: Marek Vasut Cc: Stefan Roese Applied to u-boot-cfi-flash/master. Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-22 Thread Łukasz Majewski
Hi Kever, Philipp, I have no idea about the status of rockusb, it has been a long time on the list. Maybe Eddie or Lukasz have an answer? I've asked Eddie to fix issues with breaking other boards when enabling USB gadget infrastructure on RK. No reply since then. I have to use tho

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-22 Thread Kever Yang
Philipp, I have no idea about the status of rockusb, it has been a long time on the list. Maybe Eddie or Lukasz have an answer? I have to use those patches on my local branch, so that we don't have to enter bootrom mode for firmware update. Thanks, - Kever On 08/22/2017 04:44 PM, Dr.

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-22 Thread Kever Yang
Philipp, I have no idea about the status of rockusb, it has been a long time on the list. Maybe Eddie or Lukasz have an answer? I have to use those patches on my local branch, so that we don't have to enter bootrom mode for firmware update. Thanks, - Kever On 08/22/2017 04:44 PM, Dr.

[U-Boot] [PATCH v2 3/3] rockchip: rk3399: enable preboot for boot mode detect

2017-08-22 Thread Kever Yang
We need to get into preboot once we detect that we are not get into normal boot. Signed-off-by: Kever Yang Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v2: None include/configs/rk3399_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/rk3399_c

[U-Boot] [PATCH v2 2/3] rockchip: rk3399: enable fastboot to set boot mode tag

2017-08-22 Thread Kever Yang
fastboot have a command "reboot-bootloader" which require the boot loader to reboot and get into fastboot mode again. Signed-off-by: Kever Yang Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v2: None arch/arm/mach-rockchip/rk3399/rk3399.c | 14 ++ 1 file change

[U-Boot] [PATCH v2 1/3] rockchip: rk3399: detect boot mode

2017-08-22 Thread Kever Yang
U-Boot fastboot, kernel may reboot with parameter which require bootloader to get into different boot mode, detect it and enter proper mode. Signed-off-by: Kever Yang --- Changes in v2: - use env_set() instead of setenv() arch/arm/mach-rockchip/rk3399/Kconfig | 1 + arch/arm/mach-rockchip/rk

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-22 Thread Dr. Philipp Tomsich
Kever, I was about to apply the rockusb changes onto next yesterday, when I realised that rockusb hadn’t been merged on the USB side… Do you know the status on the rockusb patches? I’d like to avoid merging this on our end, before the infrastructure has been merged. Regards, Philipp. > On 22 A

Re: [U-Boot] SPDX License status

2017-08-22 Thread Wolfgang Denk
Dear Tom, In message <20170821192329.GF17193@bill-the-cat> you wrote: > > > Do I interpret this correctly that you think we should NOT insert > > SPDX tags into files imported from Linux (or other projects)? But > > how do we keep track of the origin of such files, then? Git meta > > data infor

[U-Boot] [PATCH] board: ti: am571x: Add 666MHz support for AM571x IDK

2017-08-22 Thread Lokesh Vutla
From: Steve Kipisz AM571x supports DDR running at 666MHz. Right now it is clocked at 532MHz which is lower than what is supported. In order to have maximum performance on AM571-IDK, switch DDR to 666MHz. Signed-off-by: Steve Kipisz Signed-off-by: Lokesh Vutla --- arch/arm/include/asm/omap_com

Re: [U-Boot] U-Boot causes ethernet packet loss under Linux

2017-08-22 Thread Peter Robinson
On Mon, Aug 21, 2017 at 9:10 AM, Mark Kettenis wrote: >> Date: Sun, 20 Aug 2017 22:20:13 +0200 >> From: Urs Schulz >> >> Hey there, >> >> I have several issues with the newer U-Boot versions on my Banana Pi. >> >> I recently decided to upgrade some of my Banana Pis to the latest >> U-Boot, the la

[U-Boot] [PATCH v2 3/4] rockchip: add BOOT_LOADER support for boot mode

2017-08-22 Thread Kever Yang
Rockchip using rockusb for flash emmc via USB, people use 'reboot loader' in kernel and then want to get a rockusb device in bootloader for firmware update. Signed-off-by: Kever Yang --- Changes in v2: - use env_set() instead of setenv() arch/arm/mach-rockchip/rk3036-board.c | 4 arch/arm

[U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-22 Thread Kever Yang
Rockusb will be used by all the rockchip SoCs, enable it by default in Kconfig, and it can be work if USB gadget is available. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- Changes in v2: None arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/

[U-Boot] [PATCH v2 2/4] rockchip: rk322x: update the sysreg number for boot mode

2017-08-22 Thread Kever Yang
The boot mode for rk322x is stored in sysreg 0, update it. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- Changes in v2: None arch/arm/mach-rockchip/rk322x-board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/rk322x-board.c b/arch/ar

[U-Boot] [PATCH v2 1/4] rockchip: rk3229: move usb gadget into defconfig

2017-08-22 Thread Kever Yang
Use the defconfig for all usb gadget and function related option instead of define then in header file. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- Changes in v2: None configs/evb-rk3229_defconfig| 17 + include/configs/evb_rk3229.h| 1 - include/configs/r

Re: [U-Boot] [U-Boot, 3/4] rockchip: add BOOT_LOADER support for boot mode

2017-08-22 Thread Kever Yang
Hold this patch for a moment, the setenv() has changed to env_set(). I will update for it. Thanks, - Kever On 08/05/2017 06:43 AM, Philipp Tomsich wrote: Rockchip using rockusb for flash emmc via USB, people use 'reboot loader' in kernel and then want to get a rockusb device in bootloader for

Re: [U-Boot] [PATCH] cmd: blk: Use LBAFU in the common block command

2017-08-22 Thread Bin Meng
On Tue, Aug 22, 2017 at 3:25 PM, Bin Meng wrote: > There is already a macro LBAFU to aid formatted print with lbaint_t > variables. Let's use it in the common block command codes. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - Change to use LBAFU > Oops, forget to prefix the email ti

[U-Boot] [PATCH] cmd: blk: Use LBAFU in the common block command

2017-08-22 Thread Bin Meng
There is already a macro LBAFU to aid formatted print with lbaint_t variables. Let's use it in the common block command codes. Signed-off-by: Bin Meng --- Changes in v2: - Change to use LBAFU cmd/blk_common.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/b

Re: [U-Boot] [PATCH] cmd: blk: Use LBAFD in the common block command

2017-08-22 Thread Bin Meng
Hi Lothar, On Tue, Aug 22, 2017 at 2:41 PM, Lothar Waßmann wrote: > Hi, > > On Mon, 21 Aug 2017 21:53:41 -0700 Bin Meng wrote: >> There are already two macros LBAF and LBAFU to aid formatted print >> with lbaint_t variables. Now let's add another one LBAFD and use it >> in the common block comma