Re: [U-Boot] [U-Boot,1/2] mmc: Add Amlogic Meson driver

2016-08-03 Thread Jaehoon Chung
Hi Carlo On 05/12/2016 09:41 PM, Carlo Caione wrote: > From: Carlo Caione > > This is a port / rewrite of the Amlogic driver shipped whithin the > Amlogic SDK for the Meson GXBaby (S905) SoC. s/whithin/within And If you want to apply this patch, could you resend the patch on lates u-boot? >

[U-Boot] [PATCH v2] arm: cache: always flush cache line size for page table

2016-08-03 Thread Stefan Agner
From: Stefan Agner The page table is maintained by the CPU, hence it is safe to always align cache flush to a whole cache line size. This allows to use mmu_page_table_flush for a single page table, e.g. when configure only small regions through mmu_set_region_dcache_behaviour. Signed-off-by: Ste

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread Wolfgang Denk
Dear James, In message you wrote: > > > In your case, you could save the "erase" by overwriting the first 4 > > bytes (where the CRC32 checksum is stored) with 0x. Wrong. I meant writing 0x - as you can always write that, setting any remaining 1 bits to 0 which does not require

Re: [U-Boot] [PATCH] arm: socfpga: stratix10: Add SOCFPGA Stratix10 base address

2016-08-03 Thread Marek Vasut
On 08/03/2016 05:17 PM, Chin Liang See wrote: > Add base address header file for Stratix10 SoC > > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan Applied to the 01-arria10 branch , since this patch is useless in mainline as-is . btw do you ever plan to f

[U-Boot] rockchip: SecureBoot Support?

2016-08-03 Thread Gregory Ray
Hello, Is SecureBoot from the manufacturers u-boot distribution operational? When I try to sign the loader using the SBC it complains "Sign loader failed!" I did a standard make: CROSS_COMPILE=/Developer/arm-eabi-4.8/bin/arm-eabi- make O=firefly firefly-rk3288_defconfig all Then generated the l

Re: [U-Boot] [U-Boot, 1/3] mmc: fsl: reset to normal boot mode when eMMC fast boot

2016-08-03 Thread Jaehoon Chung
Hi Peng, On 04/26/2016 03:54 PM, Peng Fan wrote: > When booting in eMMC fast boot, MMC host does not exit from > boot mode after bootrom loading image. So the first command > 'CMD0' sent in uboot will pull down the CMD line to low and > cause errors. > > This patch cleans the MMC boot register in

Re: [U-Boot] Question on Enabling hypervisor mode in u-boot

2016-08-03 Thread Keerthy
On Thursday 04 August 2016 10:51 AM, Alexander Graf wrote: On 02 Aug 2016, at 12:59, Keerthy wrote: Hi Alex, On Tuesday 02 August 2016 07:24 AM, Keerthy wrote: On Tuesday 02 August 2016 03:16 AM, Alexander Graf wrote: On 01 Aug 2016, at 11:07, Keerthy wrote: Hi Alexander, I am tr

Re: [U-Boot] [PATCH v2] eth: asix88179: Add support for the driver model

2016-08-03 Thread Marek Vasut
On 08/03/2016 11:51 AM, Alban Bedel wrote: > Adjust this driver to support driver model for Ethernet. > > Signed-off-by: Alban Bedel Applied, thanks -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailma

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Marek Vasut
On 08/03/2016 05:22 PM, Chin Liang See wrote: Hi, [...] >>> It's the fat driver which is utilizing the malloc. >> >> So fat is allocating stuff without freeing it ? I wonder if we should >> either fix fat or use full malloc in SPL on A10 . I am not really >> fond >> of adding more stuff into simp

Re: [U-Boot] Question on Enabling hypervisor mode in u-boot

2016-08-03 Thread Alexander Graf
> On 02 Aug 2016, at 12:59, Keerthy wrote: > > Hi Alex, > > > On Tuesday 02 August 2016 07:24 AM, Keerthy wrote: >> >> >> On Tuesday 02 August 2016 03:16 AM, Alexander Graf wrote: >>> On 01 Aug 2016, at 11:07, Keerthy wrote: Hi Alexander, I am trying to enable hy

Re: [U-Boot] [U-Boot,v3] mmc: add mmc partconf read capability

2016-08-03 Thread Jaehoon Chung
Hi Angelo, On 04/15/2016 03:51 AM, Angelo Dureghello wrote: > This patch allows to read back the EXT_CSD[179] partition_config > register, just specifying the dev param: > > U-Boot> mmc partconf 0 > EXT_CSD[179], PARTITION_CONFIG register: > BOOT_ACK: 0 > BOOT_PARTITION_ENABLE: 0 > PARTITION_ACCE

Re: [U-Boot] [PATCH v2] cmd: gpt: fix the wrong size parse for the last partition

2016-08-03 Thread Michael Trimarchi
Hi On Aug 4, 2016 05:38, "Kever Yang" wrote: > > Hi Michael, > > Do you think this patch is necessary? > Yes, I have checked it and fix the regression. Today I will confirm on hot correctness but I think too Michael > Thanks, > -Kever > > On 07/29/2016 11:12 AM, Kever Yang wrote: >> >> The

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

2016-08-03 Thread york sun
Tom, The following changes since commit ad6a303c578b0087749510d20c1c46ae13f20367: Merge git://git.denx.de/u-boot-fsl-qoriq (2016-08-02 20:45:24 -0400) are available in the git repository at: git://git.denx.de/u-boot-mpc86xx.git for you to fetch changes up to e1efe43c710bec8d951c25f163cc8

Re: [U-Boot] [RESEND PATCH 2/2] rockchip: add usb mass storage feature support for rk3288

2016-08-03 Thread Simon Glass
On 3 August 2016 at 20:27, Simon Glass wrote: > On 2 August 2016 at 21:55, Ziyuan Xu wrote: >> Enable ums feature for rk3288 boards, so that we can mount the mmc >> device to PC. >> >> Signed-off-by: Ziyuan Xu >> --- >> >> include/configs/rk3288_common.h | 4 >> 1 file changed, 4 insertion

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Simon Glass
Hi Jaehoon, On 3 August 2016 at 20:43, Jaehoon Chung wrote: > On 08/04/2016 11:40 AM, Simon Glass wrote: >> Hi Jaehoon, >> >> On 3 August 2016 at 20:38, Jaehoon Chung wrote: >>> Hi Simon, >>> >>> On 08/04/2016 11:35 AM, Simon Glass wrote: Hi Jaehoon, On 31 July 2016 at 20:20, Simo

Re: [U-Boot] [RESEND PATCH 1/2] rockchip: add basic partitions support for rk3288

2016-08-03 Thread Simon Glass
On 3 August 2016 at 20:27, Simon Glass wrote: > On 2 August 2016 at 21:55, Ziyuan Xu wrote: >> For compatibility with distro boot, fastboot, and mount the mmc deivce >> to PC via usb mass storage feature, GPT partitions are essential. >> >> You should write the partitions to mmc device prior to u

Re: [U-Boot] [PATCH v2] rockchip: add support for rk3288 miniarm board

2016-08-03 Thread Simon Glass
On 31 July 2016 at 18:46, Ziyuan Xu wrote: > From: Xu Ziyuan > > Miniarm is a rockchip rk3288 based development board, which has lots of > interface such as HDMI, USB, micro-SD card, Audio etc. > > Signed-off-by: Ziyuan Xu > Acked-by: Simon Glass > --- > > Changes in v2: > - Sort soemthing in a

Re: [U-Boot] [PATCH v3 1/2] rk3399: add basic soc driver

2016-08-03 Thread Simon Glass
On 31 July 2016 at 21:34, Kever Yang wrote: > This patch add driver for: > - clock driver including set_rate for cpu, mmc, vop, I2C. > - sysreset driver > - grf syscon driver > > Signed-off-by: Kever Yang > Acked-by: Simon Glass > --- > > Changes in v3: > - use EINVAL instead of -1 for return va

Re: [U-Boot] [PATCH] rockchip: rockchip, sdram-channel 0xff fix remaining dts

2016-08-03 Thread Simon Glass
Hi Ziyuan, On 31 July 2016 at 20:36, Ziyuan Xu wrote: > Hi Simon, > > > > On 2016年08月01日 10:21, Simon Glass wrote: >> >> Hi Ziyuan, >> >> On 31 July 2016 at 20:13, Ziyuan Xu wrote: >>> >>> Hi Simon, >>> >>> >>> On 2016年08月01日 09:51, Simon Glass wrote: Hi Sandy, On 28 July 201

Re: [U-Boot] [PATCH] move: rockchip: move clock drivers into a subdirectory

2016-08-03 Thread Simon Glass
On 29 July 2016 at 14:42, Heiko Stuebner wrote: > Am Freitag, 29. Juli 2016, 07:51:14 schrieb Simon Glass: >> On 29 July 2016 at 06:47, Heiko Stuebner wrote: >> > With the number of Rockchip clock drivers increasing, don't clutter up >> > the core drivers/clk directory with them and instead move

Re: [U-Boot] [PATCH] rockchip: add fastboot support for rk3036 board

2016-08-03 Thread Simon Glass
On 31 July 2016 at 17:28, Simon Glass wrote: > On 27 July 2016 at 21:42, Ziyuan Xu wrote: >> >> Enable fastboot feature on rk3036, please refer to doc/README.rockchip >> for more detailed usage. >> >> Signed-off-by: Ziyuan Xu >> --- >> >> arch/arm/dts/rk3036-sdk.dts| 2 -- >> b

[U-Boot] [PATCH v2 1/3] clock: rk3399: add support for dwmmc 400K

2016-08-03 Thread Kever Yang
MMC core will use 400KHz for card initialize first and then switch to higher frequency like 50MHz, we need to support both 400KHz and about 50MHz for dwmmc controller. Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v2: None drivers/clk/clk_rk3399.c | 29 +--

[U-Boot] [PATCH v2 3/3] config: rk3399: enable dwmmc controller

2016-08-03 Thread Kever Yang
Enable the rockchip dwmmc driver for rk3399 and its evb. Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v2: - add commit message configs/evb-rk3399_defconfig| 1 + include/configs/rk3399_common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defc

[U-Boot] [PATCH v2 0/3] rk3399: enable dwmmc controller for sdcard

2016-08-03 Thread Kever Yang
rk3399 using dwmmc controller for sdcard, let's enable it. this patch set has been test on rk3399 evb. Changes in v2: - add commit message - move the SCLK_SDMMC and its name to the first place - add commit message Kever Yang (3): clock: rk3399: add support for dwmmc 400K dts: rk3399: enable

[U-Boot] [PATCH v2 2/3] dts: rk3399: enable dwmmc for sdcard

2016-08-03 Thread Kever Yang
rk3399 sdcard is using dwmmc controller, enable it for sdcard. SCLK_SDMMC is the clock for controller operation clock, move it to the first place. Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v2: - add commit message - move the SCLK_SDMMC and its name to the first place arch

[U-Boot] [PATCH v2] configs: rk3399: add gpt and fs support

2016-08-03 Thread Kever Yang
To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang Reviewed-by: Simon Glass --- Changes in v2: - remove some re-defined MACRO, comments from Ziyuan Xu include/configs/rk3399_common.h | 14 +

Re: [U-Boot] [PATCH v2] cmd: gpt: fix the wrong size parse for the last partition

2016-08-03 Thread Kever Yang
Hi Michael, Do you think this patch is necessary? Thanks, -Kever On 07/29/2016 11:12 AM, Kever Yang wrote: The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for size '-', because both fist_usable_lba and last_usable_lba will remain 34 sectors. We can simply use 0 for siz

[U-Boot] [Resend] Please pull u-boot-mpc86xx master

2016-08-03 Thread york sun
(Resend) Tom, The following changes since commit ad6a303c578b0087749510d20c1c46ae13f20367: Merge git://git.denx.de/u-boot-fsl-qoriq (2016-08-02 20:45:24 -0400) are available in the git repository at: git://git.denx.de/u-boot-mpc86xx.git for you to fetch changes up to e1efe43c710bec8d9

Re: [U-Boot] [PATCH] cmd: net: flush cache cacheline aligned

2016-08-03 Thread Stefan Agner
On 2016-08-03 16:18, Joe Hershberger wrote: > On Tue, Aug 2, 2016 at 2:20 AM, Stefan Agner wrote: >> From: Stefan Agner >> >> Flush loaded data cacheline aligned. This avoids warnings such as >> CACHE: Misaligned operation at range [8100, 816d0fa8] >> >> Signed-off-by: Stefan Agner >> --- >

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Jaehoon Chung
On 08/04/2016 11:40 AM, Simon Glass wrote: > Hi Jaehoon, > > On 3 August 2016 at 20:38, Jaehoon Chung wrote: >> Hi Simon, >> >> On 08/04/2016 11:35 AM, Simon Glass wrote: >>> Hi Jaehoon, >>> >>> On 31 July 2016 at 20:20, Simon Glass wrote: On 26 July 2016 at 04:06, Jaehoon Chung wrote: >>>

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Simon Glass
Hi Jaehoon, On 3 August 2016 at 20:38, Jaehoon Chung wrote: > Hi Simon, > > On 08/04/2016 11:35 AM, Simon Glass wrote: >> Hi Jaehoon, >> >> On 31 July 2016 at 20:20, Simon Glass wrote: >>> On 26 July 2016 at 04:06, Jaehoon Chung wrote: buswidth isn't used anywhere in sdhci_setup_cfg.

Re: [U-Boot] [PATCH 2/2] mmc: sdhci: remove the unnecessary argumetns for sdhci_setup_cfg

2016-08-03 Thread Jaehoon Chung
Hi Simon, On 08/04/2016 11:36 AM, Simon Glass wrote: > On 31 July 2016 at 20:20, Simon Glass wrote: >> On 26 July 2016 at 04:06, Jaehoon Chung wrote: >>> Some arguments don't need to pass to sdhci_setup_cfg. >>> Generic variable can be used in sdhci_setup_cfg, and some arguments are >>> already

Re: [U-Boot] [PATCH] powerpc/86xx: Increase boot map size to 256 MiB

2016-08-03 Thread york sun
On 07/19/2016 03:52 PM, Scott Wood wrote: > This is what Linux maps on classic PPC during boot, and modern kernel > images don't fit within the current 8 MiB uncompressed limit. > > Adjust image load addresses to be above this limit to avoid conflicts. > > Signed-off-by: Scott Wood > --- > includ

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Jaehoon Chung
Hi Simon, On 08/04/2016 11:35 AM, Simon Glass wrote: > Hi Jaehoon, > > On 31 July 2016 at 20:20, Simon Glass wrote: >> On 26 July 2016 at 04:06, Jaehoon Chung wrote: >>> buswidth isn't used anywhere in sdhci_setup_cfg. >>> >>> Signed-off-by: Jaehoon Chung >>> --- >>> drivers/mmc/msm_sdhci.c

Re: [U-Boot] [PATCH 2/2] mmc: sdhci: remove the unnecessary argumetns for sdhci_setup_cfg

2016-08-03 Thread Simon Glass
On 31 July 2016 at 20:20, Simon Glass wrote: > On 26 July 2016 at 04:06, Jaehoon Chung wrote: >> Some arguments don't need to pass to sdhci_setup_cfg. >> Generic variable can be used in sdhci_setup_cfg, and some arguments are >> already included in sdhci_host struct. >> >> It's enough that just p

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Simon Glass
Hi Jaehoon, On 31 July 2016 at 20:20, Simon Glass wrote: > On 26 July 2016 at 04:06, Jaehoon Chung wrote: >> buswidth isn't used anywhere in sdhci_setup_cfg. >> >> Signed-off-by: Jaehoon Chung >> --- >> drivers/mmc/msm_sdhci.c | 4 ++-- >> drivers/mmc/sdhci.c | 4 ++-- >> drivers/mmc/zyn

Re: [U-Boot] [RESEND PATCH 2/2] rockchip: add usb mass storage feature support for rk3288

2016-08-03 Thread Simon Glass
On 2 August 2016 at 21:55, Ziyuan Xu wrote: > Enable ums feature for rk3288 boards, so that we can mount the mmc > device to PC. > > Signed-off-by: Ziyuan Xu > --- > > include/configs/rk3288_common.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/include/configs/rk3288_common.h b/i

Re: [U-Boot] [PATCH 2/4] ARM: AM57xx: Disable non-FIT based image loading for HS devices

2016-08-03 Thread Simon Glass
Hi Tom, On 3 August 2016 at 19:48, Tom Rini wrote: > On Wed, Aug 03, 2016 at 07:16:12PM -0600, Simon Glass wrote: >> Hi Andrew, >> >> On 1 August 2016 at 09:30, Andrew F. Davis wrote: >> > Disable support for loading non-FIT images for AM57xx platforms using >> > the high-security (HS) device va

Re: [U-Boot] [RESEND PATCH 1/2] rockchip: add basic partitions support for rk3288

2016-08-03 Thread Simon Glass
On 2 August 2016 at 21:55, Ziyuan Xu wrote: > For compatibility with distro boot, fastboot, and mount the mmc deivce > to PC via usb mass storage feature, GPT partitions are essential. > > You should write the partitions to mmc device prior to use above > feature. > > => gpt write mmc 1 $partition

Re: [U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-03 Thread Simon Glass
On 1 August 2016 at 21:03, Ziyuan Xu wrote: > > On 2016年08月02日 10:56, Ziyuan Xu wrote: >> >> Hi kever, >> >> >> On 2016年08月02日 10:29, Kever Yang wrote: >>> >>> To compatible with distro boot, we need to add gpt and fs support, >>> including gpt table and vfat, ext2, ext4 support. >>> >>> Signed-of

Re: [U-Boot] [PATCH v3 2/2] mmc: rockchip_sdhci: add clock init

2016-08-03 Thread Simon Glass
On 31 July 2016 at 21:34, Kever Yang wrote: > Initialize the maximum clock with CMU, before setting the rockchip sdhci > host controller. > > Signed-off-by: Kever Yang > Reviewed-by: Jaehoon Chung > --- > > Changes in v3: > - update commit message > > Changes in v2: > - update base on comments f

Re: [U-Boot] [PATCH 2/4] ARM: AM57xx: Disable non-FIT based image loading for HS devices

2016-08-03 Thread Tom Rini
On Wed, Aug 03, 2016 at 07:16:12PM -0600, Simon Glass wrote: > Hi Andrew, > > On 1 August 2016 at 09:30, Andrew F. Davis wrote: > > Disable support for loading non-FIT images for AM57xx platforms using > > the high-security (HS) device variant. > > > > Signed-off-by: Andrew F. Davis > > --- > >

Re: [U-Boot] [PATCH] arm: cache: always flush cache line size for page table

2016-08-03 Thread Stefan Agner
On 2016-08-03 18:22, Simon Glass wrote: > Hi, > > On 3 August 2016 at 10:32, Fabio Estevam wrote: >> On Tue, Aug 2, 2016 at 4:07 AM, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> The page table is maintained by the CPU, hence it is safe to always >>> align cache flush to a whole cache line

Re: [U-Boot] [PATCH] arm: cache: always flush cache line size for page table

2016-08-03 Thread Simon Glass
Hi, On 3 August 2016 at 10:32, Fabio Estevam wrote: > On Tue, Aug 2, 2016 at 4:07 AM, Stefan Agner wrote: >> From: Stefan Agner >> >> The page table is maintained by the CPU, hence it is safe to always >> align cache flush to a whole cache line size. This allows to use >> mmu_page_table_flush f

Re: [U-Boot] [PATCH] cmd: net: flush cache cacheline aligned

2016-08-03 Thread Simon Glass
Hi Joe, On 3 August 2016 at 17:18, Joe Hershberger wrote: > On Tue, Aug 2, 2016 at 2:20 AM, Stefan Agner wrote: >> From: Stefan Agner >> >> Flush loaded data cacheline aligned. This avoids warnings such as >> CACHE: Misaligned operation at range [8100, 816d0fa8] >> >> Signed-off-by: Stefan

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Simon Glass
Hi, On 2 August 2016 at 21:24, Chin Liang See wrote: > Enable a simple malloc implementation which will minimize > memory usage prior relocation. This is essential as memory > available prior location is internal memory and limited in > size. > > This implementation will stored last 2 usage of ma

Re: [U-Boot] [PATCH 1/2] rockchip: add basic partitions support for rk3288

2016-08-03 Thread Simon Glass
On 2 August 2016 at 21:50, Ziyuan Xu wrote: > For compatibility with distro boot, fastboot, and mount the mmc deivce > to PC via usb mass storage feature, GPT partitions are essential. > > You should write the partitions to mmc device prior to use above > feature. > > => gpt write mmc 1 $partition

Re: [U-Boot] [PATCH] tegra: config: Add 'pci enum' to preboot when PCI is enabled

2016-08-03 Thread Simon Glass
Hi, On 3 August 2016 at 09:37, Stephen Warren wrote: > On 08/03/2016 03:35 AM, Alban Bedel wrote: >> >> For simplicity and backward compatibility automatically run 'pci enum' >> via preboot when PCI is enabled. As preboot is already used for the >> USB keyboard support this rework how CONFIG_PREB

Re: [U-Boot] [PATCH] net: e1000: Allow to use e1000 SPI command with DM

2016-08-03 Thread Simon Glass
On 2 August 2016 at 20:42, Yaroslav K. wrote: > Fix compile errors when enabling CONFIG_DM_ETH, > CONFIG_CMD_E1000 and CONFIG_E1000_SPI. > > Signed-off-by: Yaroslav K. > --- > drivers/net/e1000.c | 6 - > drivers/net/e1000_spi.c | 60 > -

Re: [U-Boot] [PATCH v2] eth: asix88179: Add support for the driver model

2016-08-03 Thread Simon Glass
On 3 August 2016 at 03:51, Alban Bedel wrote: > Adjust this driver to support driver model for Ethernet. > > Signed-off-by: Alban Bedel > --- > drivers/usb/eth/asix88179.c | 184 > > 1 file changed, 184 insertions(+) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH v2 08/10] arm: dts: imx7: add Ricoh RN5T567 PMIC node

2016-08-03 Thread Simon Glass
On 1 August 2016 at 23:50, Stefan Agner wrote: > From: Stefan Agner > > Add device tree node for Ricoh RN5T567. Currently we do not need > the individual DC/DC converters or LDO's (and they are also not > yet supported by the driver). > > Signed-off-by: Stefan Agner > --- > > arch/arm/dts/imx7-

Re: [U-Boot] [PATCH 3/3] config: rk3399: enable dwmmc controller

2016-08-03 Thread Simon Glass
On 1 August 2016 at 21:00, Kever Yang wrote: > Signed-off-by: Kever Yang Commit message please. > --- > > configs/evb-rk3399_defconfig| 1 + > include/configs/rk3399_common.h | 1 + > 2 files changed, 2 insertions(+) Acked-by: Simon Glass > > diff --git a/configs/evb-rk3399_defconfig b/

Re: [U-Boot] [PATCH 3/7] net/ethoc: add CONFIG_DM_ETH support

2016-08-03 Thread Simon Glass
On 2 August 2016 at 05:31, Max Filippov wrote: > Extract reusable parts from ethoc_init, ethoc_set_mac_address, > ethoc_send and ethoc_receive, move the rest under #ifdef CONFIG_DM_ETH. > Add U_BOOT_DRIVER, eth_ops structure and implement required methods. > > Signed-off-by: Max Filippov > --- >

Re: [U-Boot] [PATCH] x86: bayleybay: Add PS/2 keyboard and mouse to ASL file

2016-08-03 Thread Simon Glass
On 1 August 2016 at 21:53, Bin Meng wrote: > Without PS/2 keyboard and mouse in the ASL file, Windows does not > see them. No problem for Linux as it probes keyboard and mouse via > the legacy 8042 I/O port. > > Signed-off-by: Bin Meng > --- > > board/intel/bayleybay/acpi/mainboard.asl | 38 > +

Re: [U-Boot] [PATCH 2/3] dts: rk3399: enable dwmmc for sdcard

2016-08-03 Thread Simon Glass
Hi Kever, On 1 August 2016 at 21:00, Kever Yang wrote: > Signed-off-by: Kever Yang Please add a commit message. > --- > > arch/arm/dts/rk3399-evb.dts | 4 > arch/arm/dts/rk3399.dtsi| 2 +- > 2 files changed, 5 insertions(+), 1 deletion(-) > Acked-by: Simon Glass > diff --git a/arc

Re: [U-Boot] [PATCH v2 07/10] power: pmic: add Ricoh RN5T567 PMIC support

2016-08-03 Thread Simon Glass
+Stephen as an example of a simple PMIC driver. - Simon On 1 August 2016 at 23:50, Stefan Agner wrote: > From: Stefan Agner > > Add device model enabled PMIC driver for Ricoh RN5T567 PMIC used > on Colibri iMX7. > > Signed-off-by: Stefan Agner > Reviewed-by: Simon Glass > --- > > doc/device-

Re: [U-Boot] [PATCH 1/3] clock: rk3399: add support for dwmmc 400K

2016-08-03 Thread Simon Glass
On 1 August 2016 at 20:47, Kever Yang wrote: > MMC core will use 400KHz for card initialize first and then switch to > higher frequency like 50MHz, we need to support both 400KHz and about > 50MHz for dwmmc controller. > > Signed-off-by: Kever Yang > --- > > drivers/clk/clk_rk3399.c | 29 +++

Re: [U-Boot] [PATCH 8/9] mmc: tegra: port to standard clock/reset APIs

2016-08-03 Thread Simon Glass
Hi Stephen, On 1 August 2016 at 09:50, Stephen Warren wrote: > On 07/31/2016 08:20 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 27 July 2016 at 15:24, Stephen Warren wrote: >>> >>> From: Stephen Warren >>> >>> Tegra186 supports the new standard clock and reset APIs. Older Tegra SoCs >>> st

Re: [U-Boot] [PATCH 6/7] ARM: tegra: enable SD card on p2771-0000

2016-08-03 Thread Simon Glass
Hi Stephen, On 1 August 2016 at 10:02, Stephen Warren wrote: > On 07/31/2016 07:04 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 29 July 2016 at 13:15, Stephen Warren wrote: >>> >>> From: Stephen Warren >>> >>> Now that clock and reset drivers exist for Tegra186, we can enable the SD >>> ca

Re: [U-Boot] [PATCH 2/4] ARM: AM57xx: Disable non-FIT based image loading for HS devices

2016-08-03 Thread Simon Glass
Hi Andrew, On 1 August 2016 at 09:30, Andrew F. Davis wrote: > Disable support for loading non-FIT images for AM57xx platforms using > the high-security (HS) device variant. > > Signed-off-by: Andrew F. Davis > --- > configs/am57xx_hs_evm_defconfig | 1 + > 1 file changed, 1 insertion(+) > > di

Re: [U-Boot] [PATCH 1/5] pci: tegra: port to standard clock/reset/pwr domain APIs

2016-08-03 Thread Simon Glass
Hi Stephen, On 1 August 2016 at 09:22, Stephen Warren wrote: > On 07/31/2016 07:02 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 27 July 2016 at 15:48, Stephen Warren wrote: >>> >>> From: Stephen Warren >>> >>> Tegra186 supports the new standard clock, reset, and power domain APIs. >>> Olde

Re: [U-Boot] [PATCH] ARM64: zynqmp: Do not enable DM_MMC by default

2016-08-03 Thread Simon Glass
On 1 August 2016 at 01:05, Michal Simek wrote: > The patch: > "dm: mmc: zynq: Convert zynq to use driver model for MMC" > (sha1: 329a449f2c289b4de8f892fca1d9379ce5fd81b8) > added dependency on enabling some MMC options by default. > There are minimal ZynqMP configurations which require > only mini

Re: [U-Boot] [PATCH] mmc: s5p_sdhci: support the Driver model for Exynos

2016-08-03 Thread Jaehoon Chung
Hi, On 08/04/2016 09:38 AM, Minkyu Kang wrote: > On 21/07/16 21:30, Jaehoon Chung wrote: >> This patch support the driver model for s5p_sdhci controller. >> To support the legacy model, maintained the existing code. >> >> Note: If use the Driver Model, it needs to modify the device-tree. >> In fu

Re: [U-Boot] [PATCH] mmc: s5p_sdhci: support the Driver model for Exynos

2016-08-03 Thread Minkyu Kang
On 21/07/16 21:30, Jaehoon Chung wrote: > This patch support the driver model for s5p_sdhci controller. > To support the legacy model, maintained the existing code. > > Note: If use the Driver Model, it needs to modify the device-tree. > In future, will update the Device-tree and enable the config

Re: [U-Boot] [PATCH] cmd: net: flush cache cacheline aligned

2016-08-03 Thread Joe Hershberger
On Tue, Aug 2, 2016 at 2:20 AM, Stefan Agner wrote: > From: Stefan Agner > > Flush loaded data cacheline aligned. This avoids warnings such as > CACHE: Misaligned operation at range [8100, 816d0fa8] > > Signed-off-by: Stefan Agner > --- This was already rejected once. http://lists.denx.de/p

Re: [U-Boot] [PATCH v4] nitrogen6x : Use generic distro configuration

2016-08-03 Thread Troy Kisky
On 8/3/2016 12:54 AM, Stefano Babic wrote: > Hi Fabien, > > > On 02/08/2016 09:31, Fabien Lahoudere wrote: >> In order to simplify the use of various images on various media >> for nitrogen6x, the configuration of the board must follow the >> generic distro configuration (doc/README.distro). >> >

Re: [U-Boot] [PATCH 1/2] fdt_support: fdt_translate_address() blob const correctness

2016-08-03 Thread Simon Glass
On 1 August 2016 at 14:52, Stephen Warren wrote: > > From: Stephen Warren > > The next patch will call fdt_translate_address() from somewhere with a > "const void *blob" rather than a "void *blob", so fdt_translate_address() > must accept a const pointer too. Constify the minimum number of functi

Re: [U-Boot] [PATCH] cmd: net: flush cache cacheline aligned

2016-08-03 Thread Simon Glass
On 2 August 2016 at 01:20, Stefan Agner wrote: > From: Stefan Agner > > Flush loaded data cacheline aligned. This avoids warnings such as > CACHE: Misaligned operation at range [8100, 816d0fa8] > > Signed-off-by: Stefan Agner > --- > Why do we actually have to flush caches after load? It see

Re: [U-Boot] [PATCH] ARM: non-sec: flush code cacheline aligned

2016-08-03 Thread Fabio Estevam
Hi Stefan, On Wed, Aug 3, 2016 at 5:08 PM, Stefan Agner wrote: > From: Stefan Agner > > Flush operations need to be cacheline aligned to take effect, make > sure to flush always complete cachelines. This avoids messages such > as: > CACHE: Misaligned operation at range [0090, 009004d9] > > S

Re: [U-Boot] [PATCH] cmd: net: flush cache cacheline aligned

2016-08-03 Thread Fabio Estevam
Hi Stefan, On Tue, Aug 2, 2016 at 4:20 AM, Stefan Agner wrote: > From: Stefan Agner > > Flush loaded data cacheline aligned. This avoids warnings such as > CACHE: Misaligned operation at range [8100, 816d0fa8] > > Signed-off-by: Stefan Agner This fixes the cache warnings: Tested-by: Fabio

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread James Chargin
Dear Wolfgang, On 08/03/2016 12:59 PM, Wolfgang Denk wrote: Dear James, In message you wrote: I know my non-volatile copy of the environment is in NOR flash so I use the command protect all off;erase +1 But, of course this is specific to NOR flash. I'm not aware of a way to do this in the

[U-Boot] [PATCH] ARM: non-sec: flush code cacheline aligned

2016-08-03 Thread Stefan Agner
From: Stefan Agner Flush operations need to be cacheline aligned to take effect, make sure to flush always complete cachelines. This avoids messages such as: CACHE: Misaligned operation at range [0090, 009004d9] Signed-off-by: Stefan Agner --- arch/arm/cpu/armv7/virt-v7.c | 4 +++- 1 file

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Hannes Schmelzer
On 08/03/2016 08:09 PM, Tom Rini wrote: On Wed, Aug 03, 2016 at 02:39:47PM -0300, Fabio Estevam wrote: On Wed, Aug 3, 2016 at 1:13 PM, Stefan Agner wrote: As you noted, this particular case is due to cache flush of the page table and should be fixed with: arm: cache: always flush cache line s

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread Wolfgang Denk
Dear James, In message you wrote: > I know my non-volatile copy of the environment is in NOR flash so I use > the command > > protect all off;erase +1 > > But, of course this is specific to NOR flash. > > I'm not aware of a way to do this in the general case, independent of NV > environment

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Stefan Agner
On 2016-08-03 12:08, Simon Glass wrote: > Hi Fabio, > > On 3 August 2016 at 12:44, Fabio Estevam wrote: >> Hi Simon, >> >> On Wed, Aug 3, 2016 at 3:35 PM, Simon Glass wrote: >> >>> Actually I think these are bugs and should be fixed. In this case, >>> from what I can tell netboot_common() should

[U-Boot] [PATCH] armv8: ls2080a: Remove debug server support

2016-08-03 Thread York Sun
Debug server feature has been dropped from roadmap. Signed-off-by: York Sun --- README | 6 - arch/arm/cpu/armv8/fsl-layerscape/cpu.c| 5 - .../include/asm/arch-fsl-layerscape/immap_lsch3.h | 9 - board/freescale/ls2080a/ls2080a.c

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Stefan Agner
On 2016-08-03 11:44, Fabio Estevam wrote: > Hi Simon, > > On Wed, Aug 3, 2016 at 3:35 PM, Simon Glass wrote: > >> Actually I think these are bugs and should be fixed. In this case, I am completely with you Simon! check_cache_range return 0, which actually leads to the cache operation not being

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Simon Glass
Hi Fabio, On 3 August 2016 at 12:44, Fabio Estevam wrote: > Hi Simon, > > On Wed, Aug 3, 2016 at 3:35 PM, Simon Glass wrote: > >> Actually I think these are bugs and should be fixed. In this case, >> from what I can tell netboot_common() should cache-align the size in >> the call to: >> >> /* fl

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Fabio Estevam
Hi Simon, On Wed, Aug 3, 2016 at 3:35 PM, Simon Glass wrote: > Actually I think these are bugs and should be fixed. In this case, > from what I can tell netboot_common() should cache-align the size in > the call to: > > /* flush cache */ > flush_cache(load_addr, size); Do you mean like this? -

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Simon Glass
Hi, On 3 August 2016 at 12:29, Fabio Estevam wrote: > Hi Tom, > > On Wed, Aug 3, 2016 at 3:09 PM, Tom Rini wrote: > >> I feel like we must have done something wrong of late, can you bisect >> when these came in? Thanks! > > This cache warnings start to appear since commit: > > commit bcc53bf095

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Fabio Estevam
Hi Tom, On Wed, Aug 3, 2016 at 3:09 PM, Tom Rini wrote: > I feel like we must have done something wrong of late, can you bisect > when these came in? Thanks! This cache warnings start to appear since commit: commit bcc53bf095893fbdae531a9a7b5d4ef4a125a7fc Author: Simon Glass Date: Sun Jun

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Tom Rini
On Wed, Aug 03, 2016 at 02:39:47PM -0300, Fabio Estevam wrote: > On Wed, Aug 3, 2016 at 1:13 PM, Stefan Agner wrote: > > > As you noted, this particular case is due to cache flush of the page > > table and should be fixed with: > > arm: cache: always flush cache line size for page table > > Yes,

Re: [U-Boot] [PATCH] net: asix: Fix ASIX 88772B with driver model

2016-08-03 Thread Marcel Ziswiler
On Wed, 2016-08-03 at 15:51 +0200, Marek Vasut wrote: > On 08/03/2016 11:46 AM, Alban Bedel wrote: > > > > On Wed, 3 Aug 2016 09:00:42 +0200 > > Marek Vasut wrote: > > > > > > > > On 08/03/2016 07:32 AM, Alban Bedel wrote: > > > > > > > > Commit 147271209a9d ("net: asix: fix operation without

[U-Boot] [PATCH] net: e1000: Allow to use e1000 SPI command with DM

2016-08-03 Thread Yaroslav K.
Fix compile errors when enabling CONFIG_DM_ETH, CONFIG_CMD_E1000 and CONFIG_E1000_SPI. Signed-off-by: Yaroslav K. --- drivers/net/e1000.c | 6 - drivers/net/e1000_spi.c | 60 - 2 files changed, 35 insertions(+), 31 deletions(-) diff --git

Re: [U-Boot] Regarding source code of u-boot

2016-08-03 Thread Jagan Teki
On 2 August 2016 at 14:35, kirti kumbhar wrote: > Sir, > I have download the source of u-boot,but there is one problem when I > installing cross complier there are many dependency of assembly code I > try to remove it but not working correctly so,sir please send some command > or source c

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Fabio Estevam
On Wed, Aug 3, 2016 at 1:13 PM, Stefan Agner wrote: > As you noted, this particular case is due to cache flush of the page > table and should be fixed with: > arm: cache: always flush cache line size for page table Yes, just noticed that on a imx7d-sdb I still get these cache warnings even with

[U-Boot] [PATCH] arm: socfpga: stratix10: Add SOCFPGA Stratix10 base address

2016-08-03 Thread Chin Liang See
Add base address header file for Stratix10 SoC Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 48 ++ 1 file changed, 48 insertions(+) create mode 100755 arch/arm/mach-socfpga/include/

Re: [U-Boot] [PATCH] arm: cache: always flush cache line size for page table

2016-08-03 Thread Fabio Estevam
On Tue, Aug 2, 2016 at 4:07 AM, Stefan Agner wrote: > From: Stefan Agner > > The page table is maintained by the CPU, hence it is safe to always > align cache flush to a whole cache line size. This allows to use > mmu_page_table_flush for a single page table, e.g. when configure > only small regi

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Stefan Agner
On 2016-08-03 06:51, Fabio Estevam wrote: > On Tue, Aug 2, 2016 at 3:55 AM, Stefan Agner wrote: >> From: Stefan Agner >> >> Currently the command buffer gets allocated with a size of 32 bytes. >> This causes warning messages on systems with cache lines bigger than >> 32 bytes: >> CACHE: Misaligne

Re: [U-Boot] [PATCH v4] nitrogen6x : Use generic distro configuration

2016-08-03 Thread Fabio Estevam
On Tue, Aug 2, 2016 at 4:31 AM, Fabien Lahoudere wrote: > #define CONFIG_SYS_I2C > #define CONFIG_SYS_I2C_MXC > -#define CONFIG_SYS_I2C_MXC_I2C1/* enable I2C bus 1 */ > -#define CONFIG_SYS_I2C_MXC_I2C2/* enable I2C bus 2 */ > -#define CONFIG_SYS_I2C_MXC_I2C3

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Chin Liang See
On Wed, 2016-08-03 at 15:57 +0200, Marek Vasut wrote: > On 08/03/2016 03:41 PM, Chin Liang See wrote: > > On Wed, 2016-08-03 at 09:53 +0200, Marek Vasut wrote: > > > On 08/03/2016 09:30 AM, Chin Liang See wrote: > > > > Hi Marek, > > > > > > Hi, > > > > > > > On Wed, 2016-08-03 at 08:58 +0200, Ma

Re: [U-Boot] [PATCH] tegra: config: Add 'pci enum' to preboot when PCI is enabled

2016-08-03 Thread Stephen Warren
On 08/03/2016 03:35 AM, Alban Bedel wrote: For simplicity and backward compatibility automatically run 'pci enum' via preboot when PCI is enabled. As preboot is already used for the USB keyboard support this rework how CONFIG_PREBOOT is set to allow combining several commands. For better or wor

Re: [U-Boot] [PATCH v1 1/4] usb: host: ehci-vf: Migrate Vybrid USB to driver model

2016-08-03 Thread Marek Vasut
On 08/03/2016 01:58 PM, Sanchayan Maity wrote: > Add driver model support for Vybrid USB driver. > > Signed-off-by: Sanchayan Maity CCing Lukasz. > --- > Hello, > > I am trying to migrate the Vybrid USB driver to driver model. > Patches are based on top of uboot master branch. With this > impl

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread James Chargin
I know my non-volatile copy of the environment is in NOR flash so I use the command protect all off;erase +1 But, of course this is specific to NOR flash. I'm not aware of a way to do this in the general case, independent of NV environment storage media and redundancy. I'd be supportive of

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Marek Vasut
On 08/03/2016 03:41 PM, Chin Liang See wrote: > On Wed, 2016-08-03 at 09:53 +0200, Marek Vasut wrote: >> On 08/03/2016 09:30 AM, Chin Liang See wrote: >>> Hi Marek, >> >> Hi, >> >>> On Wed, 2016-08-03 at 08:58 +0200, Marek Vasut wrote: On 08/03/2016 05:24 AM, Chin Liang See wrote: > Enable

Re: [U-Boot] [PATCH] net: asix: Fix ASIX 88772B with driver model

2016-08-03 Thread Marek Vasut
On 08/03/2016 11:46 AM, Alban Bedel wrote: > On Wed, 3 Aug 2016 09:00:42 +0200 > Marek Vasut wrote: > >> On 08/03/2016 07:32 AM, Alban Bedel wrote: >>> Commit 147271209a9d ("net: asix: fix operation without eeprom") >>> added a special handling for ASIX 88772B that enable another >>> type of head

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-03 Thread Fabio Estevam
On Tue, Aug 2, 2016 at 3:55 AM, Stefan Agner wrote: > From: Stefan Agner > > Currently the command buffer gets allocated with a size of 32 bytes. > This causes warning messages on systems with cache lines bigger than > 32 bytes: > CACHE: Misaligned operation at range [9df17a00, 9df17a20] > > Defi

Re: [U-Boot] [PATCH] arm: cache: always flush cache line size for page table

2016-08-03 Thread Fabio Estevam
Hi Stefan, On Tue, Aug 2, 2016 at 4:07 AM, Stefan Agner wrote: > From: Stefan Agner > > The page table is maintained by the CPU, hence it is safe to always > align cache flush to a whole cache line size. This allows to use > mmu_page_table_flush for a single page table, e.g. when configure > onl

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Chin Liang See
On Wed, 2016-08-03 at 09:53 +0200, Marek Vasut wrote: > On 08/03/2016 09:30 AM, Chin Liang See wrote: > > Hi Marek, > > Hi, > > > On Wed, 2016-08-03 at 08:58 +0200, Marek Vasut wrote: > > > On 08/03/2016 05:24 AM, Chin Liang See wrote: > > > > Enable a simple malloc implementation which will mini

Re: [U-Boot] Disable command at runtime

2016-08-03 Thread Wolfgang Denk
Dear Petr, In message <201343a2-69c2-6c3e-442b-a228190a8...@elnico.cz> you wrote: > > > attacker? How could you perform such a "switch" between modes? By > > setting some bit somewhere. And it has to be in some persistent > > storage. And the source code of your image is available to the > >

  1   2   >