[U-Boot] [PATCH] ARM: stm32f7: fix prescaler calculation of timer

2017-10-02 Thread Bo Shen
As the timer 2 is on APB1 bus, the maximum of clock frequency of APB1 timer clock is half of SYSCLK. Then to calculate the timer prescaler for timer 2 which need to be divided by 2. Signed-off-by: Bo Shen <voice.s...@gmail.com> --- arch/arm/mach-stm32/stm32f7/timer.c | 2 +- 1 file chan

Re: [U-Boot] [PATCH v1 5/6] serial: stm32x7: add STM32F4 support

2017-09-29 Thread Bo Shen
ear. Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v1 5/6] serial: stm32x7: add STM32F4 support

2017-09-29 Thread Bo Shen
stm32f4_info = { + .stm32f4 = true, + .uart_enable_bit = 13, + .has_overrun_disable = false, + .has_fifo = false, +}; + struct stm32_uart_info stm32f7_info = { .uart_enable_bit = 0, .stm32f4 = false, Best Regards, Bo Shen __

Re: [U-Boot] [PATCH v1 3/6] serial: stm32x7: prepare the ground to STM32F4 support

2017-09-29 Thread Bo Shen
ak; case v2: struct stm32_usart_v1 *ptr = (struct stm32_usart_v1 *)base; break; } ---8<--- Best Regards, Bo Shen On 09/27/2017 06:44 AM, patrice.chot...@st.com wrote: From: Patrice Chotard <patrice.chot...@st.com> STM32F4 serial IP is similar to F7 and H7, but registers are n

Re: [U-Boot] [PATCH v1 1/6] serial: stm32x7: cleanup code

2017-09-29 Thread Bo Shen
between stm32f7 and stm32f4, would you please check it also in the driver code? #endif Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 3/7] stm32: stm32f7: add spl build support

2017-08-19 Thread Bo Shen
le. I don't realize this option before. For sure, it's a great option. I'd like it. :) Thanks. Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 3/7] stm32: stm32f7: add spl build support

2017-08-17 Thread Bo Shen
_defconfig). Then if the people want just boot up u-boot itself, what they need to do is just run "make menuconfig" and then de-select "Activate Falcon Mode" (SPL_OS_BOOT). Then everything will be fine. Thanks. Best Regards, Bo Shen On 08/10/2017 11:36 AM, Robert Nelson wrote: O

Re: [U-Boot] [PATCH v2] arm: at91: clock: Add the generated clock support

2015-10-28 Thread Bo Shen
in the future, but now it is enough. I think if this can be dealt now, that will be better. Anyway, thank you for your advice. You are welcome. Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v4] arm: atmel: Add SAMA5D2 Xplained board

2015-10-28 Thread Bo Shen
"SAMA5D28-CN"; > >+ default: > >+ ; > >+ } > >+ } > >+ > >+ return "Unknown CPU type"; > >+} > >You don't explain why it needs to keep the default option. I think it can be r

Re: [U-Boot] [PATCH v4] mmc: atmel: Add atmel sdhci support

2015-10-28 Thread Bo Shen
. It is compliant with the SD Host Controller Standard V3.0 specification. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Reviewed-by: Bo Shen <voice.s...@gmail.com> Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://l

Re: [U-Boot] [PATCH v2] arm: atmel: Add SAMA5D2 Xplained board

2015-10-27 Thread Bo Shen
Hi Wenyou, On 10/27/2015 14:48 PM, Yang, Wenyou wrote: Hi Shen Bo, Thank you very much for your review. -Original Message- From: Bo Shen [mailto:voice.s...@gmail.com] Sent: 2015年10月27日 11:09 To: Yang, Wenyou; andreas.de...@googlemail.com Cc: U-Boot Mailing List Subject: Re: [U-Boot

Re: [U-Boot] [PATCH v4] arm: atmel: Add SAMA5D2 Xplained board

2015-10-27 Thread Bo Shen
O +#define CONFIG_SYS_WHITE_ON_BLACK +#define CONFIG_ATMEL_HLCD +#define CONFIG_ATMEL_LCD_RGB565 +#define CONFIG_SYS_CONSOLE_IS_IN_ENV +#endif + +#ifdef CONFIG_SYS_USE_MMC + +/* bootstrap + u-boot + env in sd card */ +#undef FAT_ENV_DEVICE_AND_PART +#undef CONFIG_BOOTCOMMAND + +#define FAT_ENV_DEVICE_AND_

Re: [U-Boot] [PATCH v3] mmc: atmel: Add atmel sdhci support

2015-10-27 Thread Bo Shen
(host); + return -ENODEV; + } + + add_sdhci(host, max_clk, min_clk); + + return 0; +} Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2] arm: at91: clock: Add the generated clock support

2015-10-27 Thread Bo Shen
to PLLA_CLK. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Hi Andreas, Bo Shen, Thank you for your so many advices. Bo Shen, sorry for forgetting version 2 to send for your comments. It's OK, don't worry. At that time the datasheet is not available, now it is available now. So, add on

Re: [U-Boot] [PATCH] ARM: at91: sama5: change the environment address to 0x6000

2015-10-26 Thread Bo Shen
Hi Josh, On 10/23/2015 17:18 PM, Josh Wu wrote: As sama5 board has 32k sram size, so the at91bootstrap and spl for sama5 boards is bigger than 16k (0x4000). That will overlap the U-Boot Just curious about from which commit the spl binary size bigger than 16k? Best Regards, Bo Shen

Re: [U-Boot] [PATCH] ARM: at91: sama5: change the environment address to 0x6000

2015-10-26 Thread Bo Shen
Hi Josh, On 10/26/2015 16:41 PM, Josh Wu wrote: Hi, Bo On 10/26/2015 2:43 PM, Bo Shen wrote: Hi Josh, On 10/23/2015 17:18 PM, Josh Wu wrote: As sama5 board has 32k sram size, so the at91bootstrap and spl for sama5 boards is bigger than 16k (0x4000). That will overlap the U-Boot Just

Re: [U-Boot] [PATCH v2] arm: atmel: Add SAMA5D2 Xplained board

2015-10-26 Thread Bo Shen
D_RGB565 +#define CONFIG_SYS_CONSOLE_IS_IN_ENV +#endif + +#ifdef CONFIG_SYS_USE_MMC + +/* bootstrap + u-boot + env in sd card */ +#undef FAT_ENV_DEVICE_AND_PART +#undef CONFIG_BOOTCOMMAND + +#define FAT_ENV_DEVICE_AND_PART"1" +#define CONFIG_BOOTCOMMAND "fatload mmc 1:1 0x2100 at91-sama5d2_xplained.dtb; " \ + "fatload mmc 1:1 0x2200 zImage; " \ + "bootz 0x2200 - 0x2100" +#undef CONFIG_BOOTARGS +#define CONFIG_BOOTARGS \ + "console=ttyS0,115200 earlyprintk root=/dev/mmcblk1p2 rw rootwait" + +#endif This part also present in at91-sama5_common.h, can it be used? + +#endif Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] ARM: at91: sama5: add support for CONFIG_ENV_IS_IN_MMC

2015-09-16 Thread Bo Shen
Hi Josh On 09/16/2015 11:34 AM, Josh Wu wrote: If defined CONFIG_ENV_IS_IN_MMC, then u-boot environment is saved in mmc's raw sectors. Otherwise, u-boot environment is saved as a file: uboot.env. Signed-off-by: Josh Wu <josh...@atmel.com> Reviewed-by: Bo Shen <voice.s...@gmail.c

Re: [U-Boot] [PATCH] mmc: atmel: Add support fo atmel sdhci

2015-09-16 Thread Bo Shen
, this function may failed. So, I think you need add error check here. + add_sdhci(host, max_clk, min_clk); + + return 0; +} Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] arm: at91: clock: Add the generated clock support

2015-09-11 Thread Bo Shen
to hang the whole system? Do you mean, add the timeout to while()? Yes, something like that. But we think if the clock can't reach to a stable state, the system must be in wrong condition. So, I don't think this timeout is necessary. As no datasheet for this. According to the code, the clock is f

Re: [U-Boot] Fastboot is not detected

2015-09-09 Thread Bo Shen
lease check whether the fastboot application supports your vendor ID. If not, add "-i in your command line. Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] arm: at91: clock: Add the generated clock support

2015-09-09 Thread Bo Shen
<plagn...@jcrosoft.com> * Copyright (C) 2013 Bo Shen <voice.s...@atmel.com> + * Copyright (C) 2015 Wenyou Yang <wenyou.y...@atmel.com> * * SPDX-License-Identifier: GPL-2.0+ */ @@ -173,3 +174,59 @@ void at91_periph_clk_disable(int id) writel(re

[U-Boot] [PATCH v2 4/4] ARM: atmel: at91sam9n12ek: enable spl support

2015-03-27 Thread Bo Shen
Enable SPL support for at91sam9n12ek boards, now it supports boot up from NAND flash, serial flash. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - Remove the meaningless prefix +S: in configuration file. arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91

[U-Boot] [PATCH v2 1/4] ARM: atmel: arm926ejs: fix clock configuration

2015-03-27 Thread Bo Shen
Config MCKR according to the datasheet sequence, or else it will cause the MCKR configuration failed. Remove timeout checking for clock configuration, if configure the clock failed, let the system hang while not run in wrong clock configuration. Signed-off-by: Bo Shen voice.s...@atmel.com Tested

[U-Boot] [PATCH v2 2/4] ARM: atmel: at91sam9m10g45ek: enable spl support

2015-03-27 Thread Bo Shen
Supports boot up from NAND flash with software ECC eanbled. And supports boot up from SD/MMC card with FAT file system. As the boot from SD/MMC card with FAT file system, the BSS segment is too big to fit into SRAM, so, use the lds to put it into SDRAM. Signed-off-by: Bo Shen voice.s

Re: [U-Boot] Regression in usb-storage in u-boot 2015.04 ???

2015-03-27 Thread Bo Shen
-Boot usb reset resetting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found U-Boot ---8--- Regards, Hans Best Regards, Bo Shen ___ U-Boot mailing list

[U-Boot] [PATCH v2 3/4] ARM: atmel: at91sam9x5ek: enable spl support

2015-03-27 Thread Bo Shen
Enable SPL support for at91sam9x5ek board. Now, it supports boot up from NAND flash and SPI flash. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - Remove the meaningless prefix +S: in configuration file. arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91

[U-Boot] [PATCH v2 0/4] ARM: atmel: boards: enable SPL support

2015-03-27 Thread Bo Shen
in v2: - Remove the meaningless prefix +S: in configuration file. Bo Shen (4): ARM: atmel: arm926ejs: fix clock configuration ARM: atmel: at91sam9m10g45ek: enable spl support ARM: atmel: at91sam9x5ek: enable spl support ARM: atmel: at91sam9n12ek: enable spl support arch/arm/mach-at91

Re: [U-Boot] [PATCH] ARM: at91: at91sam9n12ek: save the environment to a fat file in MMC card

2015-03-24 Thread Bo Shen
Hi Josh, On 03/24/2015 04:10 PM, Josh Wu wrote: Insteading in mmc's raw sectors, this patch will save the environment in a fat file (uboot.env) in mmc card's first FAT patition. Signed-off-by: Josh Wu josh...@atmel.com Thanks for your patch. Acked-by: Bo Shen voice.s...@atmel.com

Re: [U-Boot] [PATCH v2] ARM: at91: at91sam9n12ek: save the environment to a fat file in MMC card

2015-03-24 Thread Bo Shen
-by: Josh Wu josh...@atmel.com Thanks for your patch. I think this one is better than v1. Acked-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - not remove the code to save env in mmc's raw sectors. - we can define CONFIG_ENV_IS_IN_MMC to enable raw sectors saving. include/configs

Re: [U-Boot] question about software i2c multi instance

2015-03-23 Thread Bo Shen
Hi Heiko, On 03/20/2015 06:10 PM, Heiko Schocher wrote: Hello Bo, Am 20.03.2015 10:44, schrieb Bo Shen: Hi Heiko, After check the software i2c code, I found it can not support multi instances, although it has I2C_SOFT_DECLARATIONS2, I2C_SOFT_DECLARATIONS3, I2C_SOFT_DECLARATIONS4

Re: [U-Boot] question about software i2c multi instance

2015-03-23 Thread Bo Shen
patches, which Lukasz mentioned. Thanks for your information. I will try this method. Thanks again. Best regards, -- Przemyslaw Marczak Samsung RD Institute Poland Samsung Electronics p.marc...@samsung.com Best Regards, Bo shen ___ U-Boot mailing list

Re: [U-Boot] question about software i2c multi instance

2015-03-23 Thread Bo Shen
data |= I2C_READ; +#endif I2C_DELAY; } send_ack(ack); ---8--- Thanks again. Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] question about software i2c multi instance

2015-03-20 Thread Bo Shen
. So, if want to support multi instances, it needs to extend the GPIO configuration for SCL/SDA, am I right? Thanks. Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/4] ARM: atmel: arm926ejs: fix clock configuration

2015-03-17 Thread Bo Shen
Hi Heiko, On 03/17/2015 03:45 PM, Heiko Schocher wrote: Hello Bo, Am 13.03.2015 10:19, schrieb Bo Shen: Config MCKR according to the datasheet sequence, or else it will cause the MCKR configuration failed. Remove timeout checking for clock configuration, if configure the clock failed, let

[U-Boot] [PATCH 4/4] ARM: atmel: at91sam9n12ek: enable spl support

2015-03-13 Thread Bo Shen
Enable SPL support for at91sam9n12ek boards, now it supports boot up from NAND flash, serial flash. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91/Makefile| 1 + arch/arm/mach-at91/include/mach/at91_pmc.h

[U-Boot] [PATCH 2/4] ARM: atmel: at91sam9m10g45ek: enable spl support

2015-03-13 Thread Bo Shen
Supports boot up from NAND flash with software ECC eanbled. And supports boot up from SD/MMC card with FAT file system. As the boot from SD/MMC card with FAT file system, the BSS segment is too big to fit into SRAM, so, use the lds to put it into SDRAM. Signed-off-by: Bo Shen voice.s

[U-Boot] [PATCH 3/4] ARM: atmel: at91sam9x5ek: enable spl support

2015-03-13 Thread Bo Shen
Enable SPL support for at91sam9x5ek board. Now, it supports boot up from NAND flash and SPI flash. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/include/mach/at91_pmc.h

[U-Boot] [PATCH 1/4] ARM: atmel: arm926ejs: fix clock configuration

2015-03-13 Thread Bo Shen
Config MCKR according to the datasheet sequence, or else it will cause the MCKR configuration failed. Remove timeout checking for clock configuration, if configure the clock failed, let the system hang while not run in wrong clock configuration. Signed-off-by: Bo Shen voice.s...@atmel.com

[U-Boot] [PATCH 0/4] ARM: atmel: boards: enable SPL support

2015-03-13 Thread Bo Shen
This patch series enable SPL support for following boards: - at91sam9m10g45ek - NAND flash boot support - SD card boot support - at91sam9n12ek - NAND flash boot support - SPI flash boot support - at91sam9x5ek - NAND flash boot support - SPI flash boot support Bo

Re: [U-Boot] [PATCH 2/4] ARM: atmel: at91sam9m10g45ek: enable spl support

2015-03-13 Thread Bo Shen
Hi Masahiro, On 03/13/2015 05:34 PM, Masahiro Yamada wrote: Hi Bo, 2015-03-13 18:19 GMT+09:00 Bo Shen voice.s...@atmel.com: diff --git a/configs/at91sam9m10g45ek_mmc_defconfig b/configs/at91sam9m10g45ek_mmc_defconfig index 6949d3a..84d3133 100644 --- a/configs

[U-Boot] [RFC PATCH] PMIC: add act8865 series support

2015-03-12 Thread Bo Shen
Add Active-Semi act8865 series PMU support. Signed-off-by: Bo Shen voice.s...@atmel.com --- drivers/power/Makefile | 1 + drivers/power/act8865.c | 104 include/act8865.h | 54 + 3 files changed, 159 insertions

[U-Boot] [PATCH 2/2] ARM: atmel: armv7: move spl lds to armv7 directory

2015-03-03 Thread Bo Shen
As the u-boot-spl.lds is used only for armv7 SoCs (includes sama5d3 and sama5d4), so move it to armv7 directory. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/mach-at91/{ = armv7}/u-boot-spl.lds | 0 include/configs/sama5d3_xplained.h| 2 +- include/configs/sama5d3xek.h

[U-Boot] [PATCH 1/2] ARM: atmel: sama5d4 boards: fix spl lds location

2015-03-03 Thread Bo Shen
As the u-boot-spl.lds is moved to arch/arm/mach-at91 directory. So, correct the path for sama5d4 related boards. Signed-off-by: Bo Shen voice.s...@atmel.com --- include/configs/sama5d4_xplained.h | 2 +- include/configs/sama5d4ek.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions

[U-Boot] [PATCH] ARM: atmel: sama5d4: set non-secured for peripherals

2015-03-03 Thread Bo Shen
When access the programmable secure peripherals address space, it needs set them to non-secured. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/mach-at91/armv7/sama5d4_devices.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-at91/armv7/sama5d4_devices.c b

[U-Boot] [PATCH] Net: macb: reset GBE bit when fallback checking

2015-03-03 Thread Bo Shen
If the GBE bit is set, when do next time autonegotiation, if the result is not 1000Mbps, it will fallback to 100Mbps checking. So, we need to clear the GBE bit. Signed-off-by: Bo Shen voice.s...@atmel.com --- drivers/net/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH] ARM: atmel: sama5d4 xplained: enable mmc power

2015-02-12 Thread Bo Shen
Enable the power for MMC/SD port. Signed-off-by: Bo Shen voice.s...@atmel.com --- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/board/atmel/sama5d4_xplained/sama5d4_xplained.c index

Re: [U-Boot] [PATCH V2 02/13] lcd: split configuration_get_cmap

2015-02-08 Thread Bo Shen
Hi Nikita Kiryanov, On 02/08/2015 07:35 PM, Nikita Kiryanov wrote: Hi Bo, On 02/04/2015 09:25 AM, Bo Shen wrote: Hi Nikita Kiryanov, On 02/03/2015 07:32 PM, Nikita Kiryanov wrote: [..] #ifdef CONFIG_LCD_LOGO void bitmap_plot(int x, int y) diff --git a/drivers/video/atmel_hlcdfb.c b

Re: [U-Boot] [PATCH V2 02/13] lcd: split configuration_get_cmap

2015-02-04 Thread Bo Shen
Kiryanov nik...@compulab.co.il Reviewed-by: Simon Glass s...@chromium.org Cc: Bo Shen voice.s...@atmel.com Cc: Simon Glass s...@chromium.org Cc: Anatolij Gustschin ag...@denx.de --- Changes in V2: - Minor commit message update - ushort *configuration_get_cmap(void) prototype

Re: [U-Boot] [PATCH V2 01/13] lcd: move platform-specific structs to their own headers

2015-02-04 Thread Bo Shen
for the generic case (the #else for all the platform-specific cases) is retained in lcd.h as the default case. Signed-off-by: Nikita Kiryanov nik...@compulab.co.il Reviewed-by: Simon Glass s...@chromium.org Cc: Bo Shen voice.s...@atmel.com Cc: Simon Glass s...@chromium.org Cc: Anatolij Gustschin ag

Re: [U-Boot] [PATCH V2 03/13] lcd: atmel: move atmel-specific fb_put_word to atmel_lcdfb

2015-02-04 Thread Bo Shen
. Signed-off-by: Nikita Kiryanov nik...@compulab.co.il Reviewed-by: Simon Glass s...@chromium.org Cc: Bo Shen voice.s...@atmel.com Cc: Simon Glass s...@chromium.org Cc: Anatolij Gustschin ag...@denx.de Acked-by: Bo Shen voice.s...@atmel.com --- Changes in V2: - Minor commit message update

[U-Boot] [PATCH v2 1/2] ARM: atmel: arm9: switch to use common timer functions

2015-02-04 Thread Bo Shen
Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/arm926ejs/at91/timer.c | 59 arch/arm/include/asm/arch-at91/at91sam9260.h | 3 ++ arch/arm/include/asm/arch-at91/at91sam9261.h | 3 ++ arch/arm/include/asm/arch-at91

[U-Boot] [PATCH v2 2/2] ARM: atmel: armv7: switch to use common timer functions

2015-02-04 Thread Bo Shen
The commit 8dfafdd (Introduce common timer functions), add common timer functions, we can use them directly. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - correct the timer register for sama5d4. arch/arm/cpu/armv7/at91/timer.c | 61

Re: [U-Boot] [PATCH V2 00/13] common lcd refactor

2015-02-04 Thread Bo Shen
is updated to compile the new file/Raspberry Pi is updated to accommodate the changes/) - patch 2: define configuration_get_cmap() prototype only once. Cc: Bo Shen voice.s...@atmel.com Cc: Simon Glass s...@chromium.org Cc: Anatolij Gustschin ag...@denx.de Nikita Kiryanov (13): lcd: move platform

Re: [U-Boot] [PATCH] ARM: at91: at91sam9rlek: add hush parser to defconfig

2015-02-04 Thread Bo Shen
Hi Josh, On 02/03/2015 06:19 PM, Josh Wu wrote: HUSH parser will handle the variable easier. That will be helpful for write a complicated U-Boot commands or varaibles. You are on the way to Kconfig. :) Thanks. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com

Re: [U-Boot] [PATCH] ARM: at91: sama5d4: display the U-Boot version on LCD

2015-02-04 Thread Bo Shen
Hi Josh, On 02/04/2015 11:03 AM, Josh Wu wrote: This patch will display the U-Boot version on LCD. To be frankly, I have no idea what should be put on LCD to display. No objection for this patch. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com

Re: [U-Boot] [PATCH 0/2] ARM: at91: at91sam9rlek: add mmc config for at91sam9rlek

2015-02-02 Thread Bo Shen
-by: Bo Shen voice.s...@atmel.com arch/arm/cpu/arm926ejs/at91/at91sam9rl_devices.c | 17 ++ board/atmel/at91sam9rlek/at91sam9rlek.c | 10 configs/at91sam9rlek_mmc_defconfig | 3 +++ include/configs/at91sam9rlek.h | 29

Re: [U-Boot] [PATCH] ARM: at91: at91sam9rlek: update the default nand flash configs

2015-02-02 Thread Bo Shen
Hi Josh On 02/02/2015 05:31 PM, Josh Wu wrote: Update the nand flash offset mapping, default nand bootcmand and bootargs to align with linux4sam.org. Signed-off-by: Josh Wu josh...@atmel.com except the following concern: Acked-by: Bo Shen voice.s...@atmel.com --- include/configs

Re: [U-Boot] [PATCH] lcd: fix console address is not initialized

2015-01-29 Thread Bo Shen
Hi Anatolij, On 01/29/2015 04:51 PM, Anatolij Gustschin wrote: Hi, On Wed, 28 Jan 2015 09:13:22 +0800 Bo Shen voice.s...@atmel.com wrote: This commit 904672e (lcd: refactor lcd console stuff into its own file), which cause lcd console address is not initialized. This patch initialize

[U-Boot] [PATCH] lcd: fix console address is not initialized

2015-01-27 Thread Bo Shen
This commit 904672e (lcd: refactor lcd console stuff into its own file), which cause lcd console address is not initialized. This patch initialize the lcd console use the default value, will be update when splash screen is enabled. Signed-off-by: Bo Shen voice.s...@atmel.com --- Hi Tom

Re: [U-Boot] [PATCH] lcd: fix console address is not initialized

2015-01-27 Thread Bo Shen
it involves Atmel related changes. I need this kind of fix to be applied as soon as possible, or else, most Atmel related board are broken on u-boot master branch. Best Regards, Bo Shen -- Regards, Nikita Kiryanov Best Regards, Bo Shen ___ U-Boot

Re: [U-Boot] [PATCH] Makefile: clean boot.bin

2015-01-27 Thread Bo Shen
On 01/23/2015 03:44 PM, Masahiro Yamada wrote: On Fri, 23 Jan 2015 15:34:08 +0800 Bo Shen voice.s...@atmel.com wrote: + Tom, Masahiro, On 01/15/2015 10:03 AM, Bo Shen wrote: When build for Atmel related boards which support SPL, it will generate boot.bin, also clean when it when do make

Re: [U-Boot] [PATCH] lcd: fix console address is not initialized

2015-01-25 Thread Bo Shen
Hi Nikita Kiryanov, + Andreas, Tom On 01/23/2015 09:20 AM, Bo Shen wrote: Hi Nikita Kiryanov, On 01/22/2015 09:10 PM, Nikita Kiryanov wrote: Hi Bo, On 01/21/2015 06:37 AM, Bo Shen wrote: This commit 904672e (lcd: refactor lcd console stuff into its own file), which cause lcd console

Re: [U-Boot] [PATCH] lcd: fix console address is not initialized

2015-01-22 Thread Bo Shen
Hi Nikita Kiryanov, On 01/22/2015 09:10 PM, Nikita Kiryanov wrote: Hi Bo, On 01/21/2015 06:37 AM, Bo Shen wrote: This commit 904672e (lcd: refactor lcd console stuff into its own file), which cause lcd console address is not initialized. Based on your fix, I'm certain that the bug

Re: [U-Boot] [PATCH] Makefile: clean boot.bin

2015-01-22 Thread Bo Shen
+ Tom, Masahiro, On 01/15/2015 10:03 AM, Bo Shen wrote: When build for Atmel related boards which support SPL, it will generate boot.bin, also clean when it when do make clean operation. Signed-off-by: Bo Shen voice.s...@atmel.com --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH v2] ARM: atmel: at91sam9m10g45ek: enable SPL

2015-01-21 Thread Bo Shen
Hi Heiko, On 01/21/2015 07:01 PM, Heiko Schocher wrote: Hello Bo, Am 21.01.2015 10:45, schrieb Bo Shen: Supports boot up from NAND flash with software ECC eanbled. And supports boot up from SD/MMC card with FAT file system. As the boot from SD/MMC card with FAT file system, the BSS segment

Re: [U-Boot] [PATCH] arm, at91: add reset controller status register

2015-01-21 Thread Bo Shen
Hi Heiko, On 01/21/2015 03:42 PM, Heiko Schocher wrote: add reset controller status register Signed-off-by: Heiko Schocher h...@denx.de Acked-by: Bo Shen voice.s...@atmel.com --- arch/arm/include/asm/arch-at91/at91_rstc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v2] ARM: atmel: at91sam9m10g45ek: enable SPL

2015-01-21 Thread Bo Shen
Supports boot up from NAND flash with software ECC eanbled. And supports boot up from SD/MMC card with FAT file system. As the boot from SD/MMC card with FAT file system, the BSS segment is too big to fit into SRAM, so, use the lds to put it into SDRAM. Signed-off-by: Bo Shen voice.s

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Bo Shen
of Tom's SPL changes and this series: https://patchwork.ozlabs.org/patch/423785/ Signed-off-by: Simon Glass s...@chromium.org Tested-by: Bo Shen voice.s...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com --- arch/arm/lib/crt0.S | 13 ++--- common/spl/spl.c| 35

[U-Boot] [PATCH] lcd: fix console address is not initialized

2015-01-20 Thread Bo Shen
This commit 904672e (lcd: refactor lcd console stuff into its own file), which cause lcd console address is not initialized. This patch split lcd console address initialize and lcd logo display into two functions. Signed-off-by: Bo Shen voice.s...@atmel.com --- common/lcd.c | 11 --- 1

Re: [U-Boot] [PATCH] ARM: at91: mmc portA support is only for at91sam9g20ek_2mmc board

2015-01-19 Thread Bo Shen
CONFIG_CMD_MMC #endif #ifdef CONFIG_AT91SAM9G20EK Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 2/3] ARM: at91: sama5d3xek: save enviroment as a FAT file in MMC card

2015-01-19 Thread Bo Shen
Hi Josh, On 01/19/2015 03:06 PM, Josh Wu wrote: This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com Ackey-by: Bo Shen voice.s

Re: [U-Boot] [PATCH v2 1/3] ARM: at91: sama5d3_xplained: save environment in a FAT file in MMC card

2015-01-19 Thread Bo Shen
the duplicated definition. Acked-by: Bo Shen voice.s...@atmel.com --- include/configs/sama5d3_xplained.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/configs/sama5d3_xplained.h b/include/configs/sama5d3_xplained.h index d5588b1..a697035 100644

Re: [U-Boot] [PATCH v2 3/3] ARM: at91: at91sam9x5: save environment to a FAT file in MMC card

2015-01-19 Thread Bo Shen
Hi Josh, On 01/19/2015 03:06 PM, Josh Wu wrote: This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of saving it in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen

Re: [U-Boot] [PATCH] ARM: atmel: at91sam9m10g45ek: enable SPL

2015-01-18 Thread Bo Shen
Hi Andreas, On 01/16/2015 06:16 PM, Andreas Bießmann wrote: Hi Bo, On 01/16/2015 10:30 AM, Bo Shen wrote: On 01/16/2015 05:10 PM, Andreas Bießmann wrote: On 01/16/2015 03:53 AM, Bo Shen wrote: --- a/arch/arm/cpu/arm926ejs/at91/Makefile +++ b/arch/arm/cpu/arm926ejs/at91/Makefile @@ -25,5

Re: [U-Boot] [PATCH] ARM: atmel: at91sam9m10g45ek: enable SPL

2015-01-18 Thread Bo Shen
Hi Heiko, On 01/16/2015 07:35 PM, Heiko Schocher wrote: Hello Bo Am 16.01.2015 03:53, schrieb Bo Shen: Supports boot up from NAND flash with software ECC eanbled. And supports boot up from SD/MMC card with FAT file system. As the boot from SD/MMC card with FAT file system, the BSS segment

Re: [U-Boot] [PATCH] ARM: atmel: at91sam9m10g45ek: enable SPL

2015-01-16 Thread Bo Shen
Hi Andreas, On 01/16/2015 05:10 PM, Andreas Bießmann wrote: Hi Bo, just a short review, more will follow this weekend. On 01/16/2015 03:53 AM, Bo Shen wrote: Supports boot up from NAND flash with software ECC eanbled. And supports boot up from SD/MMC card with FAT file system. As the boot

[U-Boot] [PATCH] ARM: atmel: at91sam9m10g45ek: enable SPL

2015-01-15 Thread Bo Shen
) Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/Kconfig| 1 + arch/arm/cpu/arm926ejs/at91/Makefile| 4 ++ arch/arm/cpu/arm926ejs/at91/spl_lowlevel_init.S | 37 arch/arm/cpu/at91-common/spl_at91.c | 7 +-- arch/arm

[U-Boot] [PATCH] ARM: atmel: cleanup: remove at91cap9 related code

2015-01-15 Thread Bo Shen
As the at91cap9adk board is removed by commit: b5508344 (ARM: remove broken at91cap9adk board), so the at91cap9 code is not used anymore, and also the document for at91cap9 can not be found on www.atmel.com, so remove the at91cap9 related code. Signed-off-by: Bo Shen voice.s...@atmel.com

[U-Boot] [PATCH] ARM: atmel: switch to use common timer functions

2015-01-15 Thread Bo Shen
The commit 8dfafdd (Introduce common timer functions), add common timer functions, we can use them directly. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/cpu/armv7/at91/timer.c | 61 arch/arm/include/asm/arch-at91/sama5d3.h | 3 ++ arch/arm

Re: [U-Boot] [PATCH] mtd: atmel_nand: according to pmecc version to perform 0xff page correction

2015-01-15 Thread Bo Shen
-off-by: Josh Wu josh...@atmel.com except the nitpick. Acked-by: Bo Shen voice.s...@atmel.com --- drivers/mtd/nand/atmel_nand.c | 9 + drivers/mtd/nand/atmel_nand_ecc.h | 20 2 files changed, 29 insertions(+) diff --git a/drivers/mtd/nand/atmel_nand.c b

[U-Boot] [PATCH] Makefile: clean boot.bin

2015-01-14 Thread Bo Shen
When build for Atmel related boards which support SPL, it will generate boot.bin, also clean when it when do make clean operation. Signed-off-by: Bo Shen voice.s...@atmel.com --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 36a9a28

Re: [U-Boot] [PATCH v3 2/9] sf: Update Atmel flash params

2015-01-09 Thread Bo Shen
flash-erase_size = flash-sector_size; } Best Regards, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 2/3] ARM: atmel: sama5d4xek: fix the LCD parameters

2015-01-07 Thread Bo Shen
Remove unused vsync parameter, and correct the include file. Signed-off-by: Bo Shen voice.s...@atmel.com --- board/atmel/sama5d4ek/sama5d4ek.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c index

[U-Boot] [PATCH 3/3] ARM: atmel: sama5d3xek: fix the LCD parameters

2015-01-07 Thread Bo Shen
Remove unused vsync parameter, and correct the include file. Signed-off-by: Bo Shen voice.s...@atmel.com --- board/atmel/sama5d3xek/sama5d3xek.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c index

[U-Boot] [PATCH 1/3] ARM: atmel: sama5d4 xplained: fix the LCD parameters

2015-01-07 Thread Bo Shen
Correct the LCD pixel clock, remove unused vsync parameter, and also correct the include file. Signed-off-by: Bo Shen voice.s...@atmel.com --- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/board/atmel/sama5d4_xplained

Re: [U-Boot] [RFC PATCH] ARM: atmel: at91sam9m10g45ek: enable SPL

2015-01-05 Thread Bo Shen
, Bo Shen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [RFC PATCH] ARM: atmel: at91sam9m10g45ek: enable SPL

2014-12-28 Thread Bo Shen
as possible. Borrow the low level init code from arm/arm/cpu/armv7/lowlevel_init.S for this purpose. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/Kconfig| 1 + arch/arm/cpu/arm926ejs/at91/Makefile| 4 ++ arch/arm/cpu/arm926ejs/at91

Re: [U-Boot] [PATCH] ARM: remove redudant information from Kconfig files

2014-12-18 Thread Bo Shen
For sama5d4ek and sama5d4 xplained board. Acked-by: Bo Shen voice.s...@atmel.com --- board/atmel/sama5d4_xplained/Kconfig | 3 --- board/atmel/sama5d4ek/Kconfig| 3 --- board/nvidia/nyan-big/Kconfig| 12 board/samsung/smdk5420/Kconfig | 3 --- board/st

[U-Boot] [PATCH] USB: gadget: atmel_usba_udc: fix transfer hang issue

2014-12-15 Thread Bo Shen
() function return, this bit should not be cleared again, or else it will cause the accessing FIFO corrupt, which will make the data loss. Signed-off-by: Bo Shen voice.s...@atmel.com --- drivers/usb/gadget/atmel_usba_udc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget

[U-Boot] [PATCH v2 0/13] ARM: atmel: enable spl for sama5d4 related boards

2014-12-14 Thread Bo Shen
CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION to CONFIG_SYS_MMCSD_FS_BOOT_PARTITION - change CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION to CONFIG_SYS_MMCSD_FS_BOOT_PARTITION Bo Shen (13): ARM: atmel: clock: make it possible to configure HMX32 ARM: atmel: sama5: add bus matrix header file ARM: atmel: sama5: add

[U-Boot] [PATCH v2 01/13] ARM: atmel: clock: make it possible to configure HMX32

2014-12-14 Thread Bo Shen
Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/armv7/at91/clock.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/at91/clock.c b/arch/arm/cpu/armv7/at91/clock.c index 2cdddb2..0bf453e 100644 --- a/arch/arm/cpu/armv7/at91/clock.c

[U-Boot] [PATCH v2 02/13] ARM: atmel: sama5: add bus matrix header file

2014-12-14 Thread Bo Shen
This matrix header file can be shared between sama5d3 and sama5d4 soc. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/include/asm/arch-at91/sama5_matrix.h | 37 +++ 1 file changed, 37 insertions(+) create mode 100644 arch/arm/include/asm

[U-Boot] [PATCH v2 03/13] ARM: atmel: sama5: add sfr register header file

2014-12-14 Thread Bo Shen
The SFR (special function registers) can be shared bwteen sama5d3 and sama5d4 soc. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/include/asm/arch-at91/sama5_sfr.h | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 arch/arm

[U-Boot] [PATCH v2 04/13] ARM: atmel: spl: add weak bus matrix init function

2014-12-14 Thread Bo Shen
Some SoC need to configure the bus matrix, add an weak function to be replace by real function. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/at91-common/spl_atmel.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/cpu/at91-common

[U-Boot] [PATCH v2 07/13] ARM: atmel: sama5d4: add matrix1 base addr definition

2014-12-14 Thread Bo Shen
Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/include/asm/arch-at91/sama5d4.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-at91/sama5d4.h b/arch/arm/include/asm/arch-at91/sama5d4.h index d851568..f30cb5f 100644 --- a/arch/arm

[U-Boot] [PATCH v2 06/13] ARM: atmel: spl: can not disable osc for sama5d4

2014-12-14 Thread Bo Shen
The SAMA5D4 SoC on chip rc oscillator can not be disabled. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/at91-common/spl_atmel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/at91-common/spl_atmel.c b/arch/arm/cpu/at91-common/spl_atmel.c

[U-Boot] [PATCH v2 10/13] ARM: atmel: sama5d4: can access DDR in interleave mode

2014-12-14 Thread Bo Shen
The SAMAA5D4 SoC can access DDR in interleave mode. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/at91-common/mpddrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/at91-common/mpddrc.c b/arch/arm/cpu/at91-common/mpddrc.c

[U-Boot] [PATCH v2 08/13] ARM: atmel: sama5d4: add bus matrix init function

2014-12-14 Thread Bo Shen
Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/armv7/at91/sama5d4_devices.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/cpu/armv7/at91/sama5d4_devices.c b/arch/arm/cpu/armv7/at91/sama5d4_devices.c index 7469825

[U-Boot] [PATCH v2 05/13] ARM: atmel: spl: add saic to aic redirect function

2014-12-14 Thread Bo Shen
Some SoC need to redirect the saic to aic to make the interrupt to work, here add a weak function to be replaced by real function. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/at91-common/spl_atmel.c | 7 +++ arch/arm/include/asm/arch-at91

  1   2   3   4   5   6   >