summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* hostcc tools: include "compiler.h", fix included headersDirk Hörner2012-06-053-1/+5
| | | | | | | | | When barebox headers get included from HOSTCC tools they should not include other architecture specific headers as barebox might get cross-compiled. Instead, the tool itself should include "compiler.h". Signed-off-by: Dirk Hörner <dirker@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kbuild: Use Elfnn_Half as replacement for Elfnn_SectionSam Ravnborg2012-06-051-2/+2
| | | | | | | | | The Elfnn_Section is not available on all platforms, noteworthy are cygwin. Use the safe replacement _Half. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: XBurst: suitable solution for per-board debug_llAntony Pavlov2012-06-052-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the commit 40492a0c1305835c996e15eb1cce2406473ae76d (MIPS: add common header file for DEBUG_LL via NS16550) introduced common DEBUG_LL via NS16550 for MIPS (see file arch/mips/include/debug_ll_ns16550.h). In the commit 1cbe2b2c00de0efca503a983d0d008833f186f33 (MIPS: XBurst: add Ritmix RZX-50 board support) the file debug_ll_ns16550.h used in the file arch/mips/mach-xburst/include/mach/debug_ll.h. Usage looks like this: ------------------------------------------------ +#ifdef CONFIG_BOARD_RZX50 +#include <mach/debug_ll_jz4755.h> +#endif + +#include <debug_ll_ns16550.h> ------------------------------------------------ So after adding another board (e.g. A320) we will have something like this: ------------------------------------------------ #ifdef CONFIG_BOARD_RZX50 #include <mach/debug_ll_jz4755.h> #endif +#ifdef CONFIG_BOARD_A320 +#include <mach/debug_ll_jz4740.h> +#endif #include <debug_ll_ns16550.h> ------------------------------------------------ This approach has disadvantage: * the files mach/debug_ll_jz4740.h and mach/debug_ll_jz4755.h (they go to arch/mips/arch-xburst) are __BOARD-SPECIFIC__ (not SOC- or mach-specific!); The file mach-xburst/include/mach/debug_ll.h is outside board directory, but it contains some board related information. This commit introduce a more suitable solution. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: make possible board-specific header filesAntony Pavlov2012-06-051-0/+2
| | | | | | | | | | | This patch makes possible to put a board-specific header file (e. g. foobar.h) to arch/mips/boards/*/include/board/. Header file usage: #include <board/foobar.h> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb ehci: Add resource sizesSascha Hauer2012-05-311-0/+2
| | | | | | add_usb_ehci_device registers resources with size 0. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* block: Fix printf warningAlexander Shiyan2012-05-311-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51 clock: Added USB clock to dump_clocks command.Alexander Shiyan2012-05-311-0/+23
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51 clock: Added lp_apm clock support for frequency calculations.Alexander Shiyan2012-05-311-9/+18
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* block: do not BUG() on failed block_getSascha Hauer2012-05-301-1/+1
| | | | | | | It does not necessarily means a bug when block_get fails here, this can also be a failure on the underlying device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* block: propagate error code from block_getSascha Hauer2012-05-301-13/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* toshiba_ac100: add defconfigAntony Pavlov2012-05-291-0/+39
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* toshiba_ac100: add USB host supportAntony Pavlov2012-05-291-0/+15
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: set MAXINTERFACES = 16Antony Pavlov2012-05-291-1/+1
| | | | | | | Tegra2 needs MAXINTERFACES > 8, so increase the macro's value. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Tegra: add Toshiba AC100 supportAntony Pavlov2012-05-299-0/+144
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: initial Tegra supportAntony Pavlov2012-05-298-0/+454
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51: Raise frequency for SDHC by switch to PLL2 sourceAlexander Shiyan2012-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Currently, both SDHC clock source is PLL3. We can raise clock for SDHC driver by change source from PLL3 to PLL2. Below, is debug ouputs with old and new settings. Detection (PLL3): set clock: wanted: 400000 got: 375000 Operation (PLL3): set clock: wanted: 25000000 got: 18000000 Operation SD4.0 (PLL3): set clock: wanted: 52000000 got: 27000000 Detection (PLL2): set clock: wanted: 400000 got: 399639 Operation (PLL2): set clock: wanted: 25000000 got: 23750000 Operation SD4.0 (PLL2): set clock: wanted: 52000000 got: 41562500 Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM samsung: disable board selectionSascha Hauer2012-05-241-6/+6
| | | | | | | | | | fixes arch/arm/mach-samsung/Kconfig:95:warning: config symbol defined without type Until we actually have board support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc 85xx: Fix whitespacesSascha Hauer2012-05-241-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/hush' into nextSascha Hauer2012-05-241-5/+11
|\
| * hush: do not convert to return code too earlySascha Hauer2012-05-231-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parse_stream_outer used to convert a exit value to a return code, but parse_stream_outer maybe inside a recursion. This means that the exit status is lost in this case. Test case: if [ 0 = 0 ]; then false exit $? fi echo "shouldn't be here" Without this patch "shouldn't be here" will be printed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu/cache' into nextSascha Hauer2012-05-245-10/+3
|\ \
| * | ARM startup: Do call __mmu_cache_flush during startupSascha Hauer2012-05-235-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Traditionally we call __mmu_cache_flush in early startup. There is a problem with armv7 and hierarchical caches though, on these systems __mmu_cache_flush uses the stack. Appearantly this was seldomly a problem, because most of these systems have a ROM bootloader which sets up some stack, but on a special i.MX6 system this failed badly. We should not have to flush caches here. Every sane system should pass control to the bootloader without stale entries in the caches *), so it should be a safe assumption that the cache flush can be removed. Since __mmu_cache_flush is not called from early code anymore we can also move it to the regular text section. Be brave and give it a try. *) omap3 seems to be a exception to this, but this has a cache flush in arch_init_lowlevel already Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM startup: invalidate I-cache before jumping to relocated binarySascha Hauer2012-04-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | barebox can startup with I-cache enabled, so to be on the safe side we should invalidate the I-cache before jumping to a binary we just copied in place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | usb ehci: Use zalloc to allocate ehci structureSascha Hauer2012-05-231-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | usb storage: fix driver nameSascha Hauer2012-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We have to set the name in struct usb_driver, not the one in struct driver_d which gets overwritten with usb_driver->name during registration. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'pu/defenv-2' into nextSascha Hauer2012-05-236-57/+31
|\ \ \
| * | | defaultenv-2: automount script: run mount only when ifup succeedsSascha Hauer2012-05-231-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM Freescale i.MX51 babbage: switch to new default envSascha Hauer2012-05-215-53/+27
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | PCM970: Added support for CompactFlashAlexander Shiyan2012-05-232-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support for CompactFlash cards for PCM970 development board via PCMCIA window. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | MIPS: cpuinfo: import CPU message from Linux 3.4Antony Pavlov2012-05-231-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | MIPS: import CPU and cache detection code from Linux 3.4Antony Pavlov2012-05-238-1/+722
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | MIPS: introduce C architecture-specific low-level initAntony Pavlov2012-05-233-12/+46
| |_|/ |/| | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'pu/hush' into nextSascha Hauer2012-05-231-4/+6
|\ \ \
| * | | run_shell: run again on ctrl-cSascha Hauer2012-05-211-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can start a new interactive shell now using the 'sh' command on the command line. This shell exits on ctrl-c though. Add a loop around it to continue instead of exiting. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | README: change path to sandbox environmentAlan Ott2012-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The path to the sandbox environment is now arch/sandbox/board/env . Signed-off-by: Alan Ott <alan@signal11.us> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | common: Make MENU depend on PROCESS_ESCAPE_SEQUENCEAlan Ott2012-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | print_menu_entry() in common/menu.c depeneds on process_escape_sequence(). Signed-off-by: Alan Ott <alan@signal11.us> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | S5P lowlevel clock initAlexey Galakhov2012-05-213-0/+66
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | S5P boot header and image generatorAlexey Galakhov2012-05-215-1/+151
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Add support for Samsung S5P architecture (S5PV210)Alexey Galakhov2012-05-2111-0/+1161
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Split S3C generic and S3C24xx specific codeAlexey Galakhov2012-05-2110-180/+258
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Make S3C24xx config options available for all S3CsAlexey Galakhov2012-05-2118-41/+41
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | panda: update defconfig for i2c and led supportAnand Gadiyar2012-05-211-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable I2C and LED support in defconfig. Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | panda: add LED supportAnand Gadiyar2012-05-211-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Register GPIO7 as heartbeat LED, same as in the linux kernel. Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | panda: add i2c and twlcore to pandaAnand Gadiyar2012-05-211-0/+13
| |/ / |/| | | | | | | | | | | | | | | | | | | | Add i2c-omap and twlcore driver to panda board. (Based on similar patch for pcm049). Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'pu/defenv-2' into nextSascha Hauer2012-05-2143-76/+670
|\ \ \
| * | | ARM pcm038: Switch to new environmentSascha Hauer2012-05-188-59/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the pcm038 board to the new environment template and does the necessary defaultconfig adjustments. Additionally it disables UBI support as the pcm038 image is getting bigger and bigger and UBI seems to be the most unused big (in size) feature. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add next generation default environment templateSascha Hauer2012-05-1833-3/+561
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new environment template which aims to be more flexible and configurable. Instead of having mainly two scripts (a config script and a boot script) this template uses initscripts which control the startup behaviour and configuration. Also we have boot scripts in /env/boot which configure a single boot configuration. Additional boot entries can be added by board specific entries or during runtime by copying and editing a template entry. Some more helpers handle for example network interfaces which can now be brought up with 'ifup'. We use the automount feature to configure mountpoints together with the commands to bring up the devices behind these mountpoints. Optionally menu support is available which hides many details behind a nice looking interface. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | bootm: Add default images variablesSascha Hauer2012-05-182-14/+53
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out useful to be able to configure bootm before its usage. This allows us to overwrite bootm settings on an individual base. This patch adds global variables to configure the kernel image, the initrd image and the devicetree image. These values will be used unless overwritten explicitely with command line switches. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'ppc' into nextSascha Hauer2012-05-2136-0/+3404
|\ \ \ | |/ / |/| |
| * | Minimal P2020RDB platform support and configuration fileRenaud Barbier2012-05-178-0/+593
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is limited board support for the Freescale P2020RDB in single CPU mode. The DDR is configured for a memory bus running at 667Mhz. The system boots from NOR flash and provides the console at 115200 bauds, no other drivers are included. Finally, the PPC Kconfig and make file make the building of the P2020RDB platform firmware possible. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>