[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 --- arch/arm/mach-stm32/stm32f7/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

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

2017-09-29 Thread Bo Shen
will be more clear. 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-28 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-28 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 STM32F4 serial IP is similar to F7 and H7, but registers are not located at the same offset

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

2017-09-28 Thread Bo Shen
GENMASK(15, 4) In stm32f7, according to the datasheet, there is no fraction and mantissa. Would you please confirm that? At the same time, it makes me thinking the BRR is calculated differently between stm32f7 and stm32f4, would you please check it also in the driver cod

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

2017-08-19 Thread Bo Shen
gurable. 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
disco_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 N

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

2015-10-28 Thread Bo Shen
code. Maybe we will improve it 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

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

2015-10-28 Thread Bo Shen
is compliant with the SD Host Controller Standard V3.0 specification. Signed-off-by: Wenyou Yang Reviewed-by: Bo Shen 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
PLLA_CLK. Signed-off-by: Wenyou Yang --- 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 one more comment. P

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

2015-10-27 Thread Bo Shen
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 + +#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 v3] mmc: atmel: Add atmel sdhci support

2015-10-27 Thread Bo Shen
;version = sdhci_readw(host, SDHCI_HOST_VERSION); + max_clk = at91_get_periph_generated_clk(id); + if (!max_clk) { + printf("%s: Failed to get the proper clock\n", __func__); + free(host); + return -ENODEV; + } + + add_sdh

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 v2] arm: atmel: Add SAMA5D2 Xplained board

2015-10-26 Thread Bo Shen
GO +#define CONFIG_LCD_INFO +#define CONFIG_LCD_INFO_BELOW_LOGO +#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

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] ARM: at91: sama5: change the environment address to 0x6000

2015-10-25 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] mmc: atmel: Add support fo atmel sdhci

2015-09-16 Thread Bo Shen
t, 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: 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 Reviewed-by: Bo Shen Best Regards, Bo

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

2015-09-11 Thread Bo Shen
eet for this. According to the code, the clock is for the peripheral which want to use the generated clock. So, it only affect this peripheral while not whole system, am I right? 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
/armv7/clock.c b/arch/arm/mach-at91/armv7/clock.c index 0bf453e..84418a3 100644 --- a/arch/arm/mach-at91/armv7/clock.c +++ b/arch/arm/mach-at91/armv7/clock.c @@ -5,6 +5,7 @@ * Copyright (C) 2005 Ivan Kokshaysky * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD * Copyright (C) 2013 Bo Shen

Re: [U-Boot] Fastboot is not detected

2015-09-09 Thread Bo Shen
e 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] Regression in usb-storage in u-boot 2015.04 ???

2015-03-26 Thread Bo Shen
nning usb for storage devices... 1 Storage Device(s) found U-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

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

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

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

2015-03-26 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 Tested-by: Heiko Schocher

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

2015-03-26 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 --- Changes in v2

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

2015-03-26 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 --- Changes in v2: - Remove the meaningless prefix "+S:" in configuration file. arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at9

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

2015-03-26 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

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

2015-03-24 Thread Bo Shen
Signed-off-by: Josh Wu Thanks for your patch. I think this one is better than v1. Acked-by: Bo Shen --- 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/at91sam9n12ek.h | 15

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 Thanks for your patch. Acked-by: Bo Shen --- include/configs/at91sam9n1

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

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

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

2015-03-23 Thread Bo Shen
t_i2c_read_sda(); +#else 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

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

2015-03-22 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

[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

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 : diff --git a/configs/at91sam9m10g45ek_mmc_defconfig b/configs/at91sam9m10g45ek_mmc_defconfig index 6949d3a..84d3133 100644 --- a/configs/at91sam9m10g45ek_mmc_defconfig +++ b/configs

[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 --- arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91/Makefile| 1 + arch/arm/mach-at91/include/mach/at91_pmc.h | 4 +- arch/arm/mach

[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 --- arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/include/mach/at91_pmc.h | 6 ++- arch

[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 --- arch/arm/mach-at91

[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

[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 --- arch/arm

[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 --- drivers/power/Makefile | 1 + drivers/power/act8865.c | 104 include/act8865.h | 54 + 3 files changed, 159 insertions(+) create mode

[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 --- 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/arch/arm/mach-at91

[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 --- drivers/net/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/macb.c

[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 --- 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 directory. So, correct the path for sama5d4 related boards. Signed-off-by: Bo Shen --- include/configs/sama5d4_xplained.h | 2 +- include/configs/sama5d4ek.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs

[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 --- 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 bc2aa38..e7f225a 100644

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

[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 --- Changes in v2: - correct the timer register for sama5d4. arch/arm/cpu/armv7/at91/timer.c | 61 arch/arm/include

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

2015-02-04 Thread Bo Shen
ig file 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 Cc: Simon Glass Cc: Anatolij Gustschin Nikita Kiryanov (13): lcd: move platform-specific structs to their own headers

[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 --- 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/at91sam9263.h | 3 ++ arch

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 Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin Acked-by: Bo Shen --- Changes in V2: - Minor commit message update common/lcd.c| 11 +-- drivers/video/atmel_lcdfb.c | 9 + 2 files

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

2015-02-04 Thread Bo Shen
Kiryanov Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin --- Changes in V2: - Minor commit message update - ushort *configuration_get_cmap(void) prototype is defined only once instead of for each #ifdef CONFIG_* common/lcd.c

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

2015-02-04 Thread Bo Shen
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 Reviewed-by: Simon Glass Cc: Bo Shen Cc: Simon Glass Cc: Anatolij Gustschin For Atmel part, tested ok on at91sam9g35ek. Tested-by: Bo Shen --- Changes

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 Acked-by: Bo Shen --- board/atmel/sama5d4_xplained

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 Acked-by: Bo Shen --- configs

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

2015-02-02 Thread Bo Shen
-by: Bo Shen 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 +++- 4 files

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 except the following concern: Acked-by: Bo Shen --- include/configs/at91sam9rlek.h | 16 +--- 1

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 wrote: 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

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 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 clean"

[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 --- Hi Tom, If no objection of this

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

2015-01-27 Thread Bo Shen
since 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 ___

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] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion

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 bu

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: spl: Allow board_init_r() to run with a larger stack

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

[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 --- Changes in v2

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 Acked-by: Bo Shen --- arch/arm/include/asm/arch-at91/at91_rstc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-at91/at91_rstc.h

[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 --- common/lcd.c | 11 --- 1 file changed, 8

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

2015-01-19 Thread Bo Shen
e 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 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 Acked-by: Bo Shen --- include

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 Ackey-by: Bo Shen --- include/configs

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
definition. Acked-by: Bo Shen --- 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 --- a/include/configs/sama5d3_xplained.h +++ b

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 is

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

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

2015-01-15 Thread Bo Shen
igned-off-by: Josh Wu except the nitpick. Acked-by: Bo Shen --- 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/drivers/mtd/nand/atmel_nand.c

[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 --- arch/arm/cpu/armv7/at91/timer.c | 61 arch/arm/include/asm/arch-at91/sama5d3.h | 3 ++ arch/arm/include/asm/arch

[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 --- ar

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

2015-01-15 Thread Bo Shen
as possible. Borrow the low level init code from for this purpose. As there is a little change, which need lowlevel init, so also change taurus board based on at91sam9260, corvus board based on at91sam9g45. (CONFIG_SPL_STACK is replaced by CONFIG_SYS_INIT_SP_ADDR) Signed-off-by: Bo Shen

[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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 36a9a28..ea5ae8f 10

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

2015-01-09 Thread Bo Shen
sh->erase_size = 32768 << flash->shift; } else { +#ifdef CONFIG_SPI_FLASH_ATMEL + flash->erase_cmd = CMD_ATMEL_BLK_ERASE; +#else flash->erase_cmd = CMD_ERASE_64K; +#endif 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 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 --- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b

[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 --- 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 ca4f79d..cf6ed8b

[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 --- 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 f8394f5..d3039c0 100644

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

2015-01-05 Thread Bo Shen
if you can prepare such a patch I can test it on the corvus, taurus and axm boards ... If the upper method for low level initialize code is chosen, I will prepare such patch for the boards you mentioned. bye, Heiko Best Regards, Bo Shen ___ U

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

2014-12-28 Thread Bo Shen
as possible. Borrow the low level init code from for this purpose. Signed-off-by: Bo Shen --- 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

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

2014-12-18 Thread Bo Shen
by: Masahiro Yamada For sama5d4ek and sama5d4 xplained board. Acked-by: Bo Shen --- board/atmel/sama5d4_xplained/Kconfig | 3 --- board/atmel/sama5d4ek/Kconfig| 3 --- board/nvidia/nyan-big/Kconfig| 12 board/samsung/smdk5420/Kconfig | 3 --- b

[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 --- drivers/usb/gadget/atmel_usba_udc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb

[U-Boot] [PATCH v2 09/13] ARM: atmel: sama5d4: add interrupt redirec function

2014-12-14 Thread Bo Shen
Signed-off-by: Bo Shen --- Changes in v2: None arch/arm/cpu/armv7/at91/sama5d4_devices.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/cpu/armv7/at91/sama5d4_devices.c b/arch/arm/cpu/armv7/at91/sama5d4_devices.c index 9c63e99..ef39cb7 100644 --- a/arch/arm/cpu

[U-Boot] [PATCH v2 12/13] ARM: atmel: sama5d4ek: enable SPL support

2014-12-14 Thread Bo Shen
The sama5d4ek support boot up from NAND flash, SD/MMC card and also the SPI flash. Signed-off-by: Bo Shen --- Changes in v2: - change CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION to CONFIG_SYS_MMCSD_FS_BOOT_PARTITION arch/arm/Kconfig | 1 + board/atmel/sama5d4ek/sama5d4ek.c

[U-Boot] [PATCH v2 13/13] ARM: atmel: sama5d4_xplained: enable spl support

2014-12-14 Thread Bo Shen
Signed-off-by: Bo Shen --- Changes in v2: - change CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION to CONFIG_SYS_MMCSD_FS_BOOT_PARTITION arch/arm/Kconfig| 1 + board/atmel/sama5d4_xplained/sama5d4_xplained.c | 85 + configs

[U-Boot] [PATCH v2 11/13] ARM: atmel: sama5d4: build related file when enable SPL

2014-12-14 Thread Bo Shen
Signed-off-by: Bo Shen --- Changes in v2: None arch/arm/cpu/at91-common/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/at91-common/Makefile b/arch/arm/cpu/at91-common/Makefile index 89e1577..03614d4 100644 --- a/arch/arm/cpu/at91-common/Makefile +++ b/arch/arm/cpu

[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 --- 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..9c63e99 100644

[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 --- Changes in v2: None arch/arm/cpu/at91-common/spl_atmel.c | 7 +++ arch/arm/include/asm/arch-at91/at91_common.h | 1 + 2

[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 --- 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 index fdea466

[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 --- 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 index 44798e6

[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 --- 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/include/asm/arch-at91

[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 --- Changes in v2: None arch/arm/include/asm/arch-at91/sama5_sfr.h | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 arch/arm/include/asm/arch-at91

  1   2   3   4   5   6   >