[U-Boot] Does FDI-LPC3250-UART 6 and 7 Init in UBOOT or Not ?

2013-10-26 Thread Pradeep
Hi, I am using FDI-LPC 3250 custom board ported with kernel 2.6.34 and Uboot 2009.03.In this we have 7 UARTS. UART 1,2,7 are High speed and UART 3,4,5,6 are standard UARTS.In my project we need use all UARTS.For this i enable all UARTS in kernel configuration. But in Uboot i have changed serial

[U-Boot] [PATCH v4 0/8] Provide a mechanism to avoid using #ifdef everywhere

2013-10-26 Thread Simon Glass
Many parts of the U-Boot code base are sprinkled with #ifdefs. This makes different boards compile different versions of the source code, meaning that we must build all boards to check for failures. It is easy to misspell an #ifdef and there is not as much checking of this by the compiler.

[U-Boot] [PATCH v4 1/8] Implement autoconf header file

2013-10-26 Thread Simon Glass
Add support for generating an autoconf.h header file that can be used in the source instead of #ifdef. For example, instead of: #ifdef CONFIG_VERSION_VARIABLE setenv(ver, version_string); /* set version variable */ #endif you can do: if (autoconf_version_variable())

[U-Boot] [PATCH v4 3/8] main: Remove CONFIG #ifdefs from the abortboot() code

2013-10-26 Thread Simon Glass
Move this code over to using autoconf. We can add the autoconf values to the delaykey[] array, and move the code that checks for autoconf values into the loop. Also change to using ARRAY_SIZE on delaykey[]. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger

[U-Boot] [PATCH v4 2/8] main: Use autoconf for boot retry feature

2013-10-26 Thread Simon Glass
Change this feature to use autoconf instead of #ifdef. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v4: - Rebase on current master - Tidy up code style nits with new checkpatch Changes in v3: - Fix missing in if() statement -

[U-Boot] [PATCH v4 7/8] main: Use autoconf in command line reading

2013-10-26 Thread Simon Glass
Remove #ifdefs in favour of autoconf for this code. This involves removing a few unnecessary #ifdefs in headers also. We have two versions of the code - one that handles command line editing and one that is just a simple implementation. Create a new function called readline_into_buffer() which

[U-Boot] [PATCH v4 4/8] main: Use autoconf to remove #ifdefs around process_boot_delay()

2013-10-26 Thread Simon Glass
Use autoconf to make process_boot_delay() be compiled always, and adjust the caller and related functions as needed. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v4: - Split out new patch to remove #ifdefs around process_boot_delay() Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 6/8] main: Use autoconf for parser selection

2013-10-26 Thread Simon Glass
Allow parser selection to make use of autoconf instead of #ifdefs. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v4: - Rebase on current master Changes in v3: None Changes in v2: None common/main.c | 87 +++--- include/hush.h |

[U-Boot] [PATCH v4 8/8] main: Use autoconf in main_loop()

2013-10-26 Thread Simon Glass
Convert main_loop() over to use autoconf, and add a required prototype to common.h. The do_mdm_init variable is now always defined, but this seems like an acceptable compromise. In fdt_support.h the #ifdef used is CONFIG_OF_LIBFDT. However, even if this is not defined we want to make the

[U-Boot] [PATCH v4 5/8] main: Use autoconf for boot_delay code

2013-10-26 Thread Simon Glass
Convert this function and its children to use autoconf instead of #ifdef. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v4: - Rebase on current master Changes in v3: - Simplify code for finding out bootdelay from config or environment Changes in v2: None common/main.c | 74

Re: [U-Boot] [PATCH v3 0/5] env: Add support for environment files

2013-10-26 Thread Otavio Salvador
Hello Simon, On Sat, Oct 26, 2013 at 2:59 AM, Simon Glass s...@chromium.org wrote: (Note that Wolfgang is looking at a way of adjusting the environment within a U-Boot binary - this series could fit with that but aims to improve the creation of the initial default environment). I really

Re: [U-Boot] Can a standalone application send data via Ethernet in U-Boot?

2013-10-26 Thread Wolfgang Denk
Dear rvijay435, In message 1382594959198-166076.p...@n7.nabble.com you wrote: Can I use tsec_miiphy_write () function which is defined in drivers/net/tsec.c for sending the data from standalone application via You can use everything you like, if you accept the resuting consequences on the

Re: [U-Boot] [PATCH v3 0/5] env: Add support for environment files

2013-10-26 Thread Wolfgang Denk
Dear Simon, In message 1382763563-1483-1-git-send-email-...@chromium.org you wrote: (Note that Wolfgang is looking at a way of adjusting the environment within a U-Boot binary - this series could fit with that but aims to improve the creation of the initial default environment). At present

Re: [U-Boot] [PATCH v3 3/5] Allow U-Boot scripts to be placed in a .env file

2013-10-26 Thread Wolfgang Denk
Dear Simon, In message 1382763695-2849-4-git-send-email-...@chromium.org you wrote: +For example, for snapper9260 you would create a text file called +board/bluewater/env/snapper9260.env containing the environment text. + + +bootcmd= + if [ -z ${tftpserverip} ]; then +