summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* sandbox: fix 64bit buildSascha Hauer2012-06-251-0/+7
| | | | | | | | On x86_64 we need CONFIG_PHYS_ADDR_T_64BIT to make the resource sizes 64bit. The kernel has this as a Kconfig variable, but on barebox sandbox will build with whatever compiler we find, so we can't put it into Kconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* openrisc: fix build due to redefined phys_size_tSascha Hauer2012-06-211-2/+0
| | | | | | | | | | | | | | | | | | | | We already have a phys_size_t since: commit 2f05b6925676e5f3263e0d51ed2f0a92201400d8 Author: Renaud Barbier <renaud.barbier@ge.com> Date: Fri May 11 11:58:13 2012 +0100 linux/types.h: define phys_size_t Add this definition in preparation for the introduction of the mpc85xx support. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Fix build due to redefinition of this type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blackfin: Fix build due to missing __raw_* io accessorsSascha Hauer2012-06-211-0/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM qil-a9260: Fix PARTITION_FIXED compilationSascha Hauer2012-06-071-4/+4
| | | | | | is now DEVFS_PARTITION_FIXED Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-06-06221-784/+8006
|\
| * 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>
| * 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>
| * 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>
| * ARM: Tegra: add Toshiba AC100 supportAntony Pavlov2012-05-298-0/+143
| | | | | | | | | | 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/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>
| * | Merge branch 'pu/defenv-2' into nextSascha Hauer2012-05-235-53/+27
| |\ \
| | * | 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>
| * | | 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-211-0/+7
| | | | | | | | | | | | | | | | | | | | 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-2117-36/+36
| | | | | | | | | | | | | | | | | | | | 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-218-59/+56
| |\ \
| | * | 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>
| * | | 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>
| | * | 85xx core support build filesRenaud Barbier2012-05-172-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kconfig and Makefile allow to include the 85xx cpu support in the compilation process. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | Set _text_base to the firmware relocation addressRenaud Barbier2012-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _text_base assignment has been removed earlier from lib/board.c for the mpc5xxx. For the 85xx, _text_base is set to where the firmware relocates in memory as passed by the function input variable. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | MPC85xx start-up support codeRenaud Barbier2012-05-175-0/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds initialization functions used by the e500v2 start-up code and board specific code (L2 cache initialization). Other functions help identify the CPU or return the programmed memory size. Finally, the Makefile and Kconfig file are added. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | 85xx clocking supportRenaud Barbier2012-05-172-0/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch contains functions that returns information on the CPU and buses frequency (LBC, DDR, system). It also includes the clock source driver. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | 85xx: LAW and LBC initializationRenaud Barbier2012-05-172-0/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch includes functions to initialize LAW registers and the chip select 0 of the CPU. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | e500v2 traps and TLB support codeRenaud Barbier2012-05-174-0/+512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch defines functions to set interrupt vector registers and functions to handle hardware exceptions. It also defines support functions to set and search TLBs. Finally, the Makefile is added. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | Initial e500v2 start up codeRenaud Barbier2012-05-173-0/+1089
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first part of the start-up code. The source code origin is U-boot and is slightly modified to have e500v2 CPU support in 32-bit mode only. It includes the power-up entry point, CPU initialization code and exports definition for D-cache flush and I-cache invalidate. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | Initial Freescale 85xx Headers.Renaud Barbier2012-05-1710-0/+528
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These header files are added to provide a minimal support to the Freescale 85xx cpu to boot on a P2020RDB platform. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | eukrea_cpuimx35: fix PHY address and clean codeEric Bénard2012-05-181-45/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this patch also cleans the source by putting in device_init the code which is actually in console_init and has nothing to see with the console. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | eukrea_cpuimx25: fix PHY addressEric Bénard2012-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | eukrea_cpuimx25&35: use switch action to launch usbserial or dfuEric Bénard2012-05-184-2/+57
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | eukrea_cpuimx25/35/51: update defconfigEric Bénard2012-05-183-12/+43
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | eukrea_cpuimx51: updated envEric Bénard2012-05-181-7/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>