summaryrefslogtreecommitdiffstats
path: root/arch/ppc
Commit message (Collapse)AuthorAgeFilesLines
* ppc 85xx: Fix whitespacesSascha Hauer2012-05-241-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>
* Removed duplicate definition for DEVFS_PARTITION_xxxAlexander Shiyan2012-05-131-2/+2
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc reloc.S: use a common trap relocation functionRenaud Barbier2012-05-113-14/+48
| | | | | | | | | The trap relocation function trap_reloc can be used across several PPC platforms and is added to the ppc library. Accordingly, the definition of trap_reloc is removed from mach-mpc5xxx/start.S Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc io.h: update following MMIO primitives fixRenaud Barbier2012-05-111-0/+28
| | | | | | | | Following the MMIO primitives fix, the definitions of __raw_* function is sourced from Linux and added. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Preparation stage to support multiple PPC architecturesRenaud Barbier2012-05-0214-265/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arch/ppc/Kconfig is reworked to make the configuration environment architecture neutral. All MPC5200 configuration is moved to the MPC5200 architecture specific configuration file. These modifications are reflected in the PCM030 board support. arch/ppc/Makefile compilation directives are updated in preparation for the introduction of future cpus/machines. lib/time.c is moved to the architecture specific directory and the building instructions updated in the Make files. The file is cleaned up of unused code. The definition of L1_CACHE_... is updated and CACHELINE_SIZE is defined in ppc/include/asm/cache.h for future use by the mpc85xx. The file mach-mpc5xxx/pci_mpc5200.c and mach-mpc5xxx/start.S are updated accordingly. The declaration of search_exception_table is moved in include/asm/common.h because it is used across architectures. mach-mpc5xxx/traps.c is also updated to reflect this change. The definition of exception in asm/ppc_asm.tmpl is updated for future use by the mpc85xx. The file starts.S in mach-mpc5xxx is updated accordingly. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc mmu.h: update for future mpc85xx supportSascha Hauer2012-05-021-8/+27
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc processor.h: Update for future mpc85xx supportSascha Hauer2012-05-021-0/+44
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: add clr/setbits operationsSascha Hauer2012-05-021-0/+20
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: Add fls, fls64, __ilog2_u64 and ffs64 bitopsSascha Hauer2012-05-021-0/+42
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'work/dns' into nextSascha Hauer2012-04-161-4/+4
|\
| * Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-161-4/+4
| | | | | | | | | | | | | | We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: remove unused bd_tSascha Hauer2012-04-131-103/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: remove unused init_board_data functionSascha Hauer2012-04-134-63/+0
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'work/uimage' into nextSascha Hauer2011-12-171-9/+7
|\ | | | | | | | | | | | | | | | | Conflicts: arch/ppc/lib/ppclinux.c commands/bootm.c include/boot.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: use new uimage codeSascha Hauer2011-12-151-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the bootm code to the new uimage code. Also bootm can now handle other types of images than uImages. Currently the only architecture making use of this is arm which allows to boot zImages, raw images and barebox images. I intended to make a more bisectable series from this but I failed becuase there are many dependencies and no matter how I tried the patches grew bigger and and bigger. So I decided to put this all in a single patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * remove old ft_build supportSascha Hauer2011-12-141-9/+0
| | | | | | | | | | | | | | This is unused now as its only user (ppc) is switched to libfdt based oftree support" Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: switch to libfdt based oftree implementationSascha Hauer2011-12-142-248/+25
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc pcm030: Move memory registration to mem_initcallSascha Hauer2011-12-141-4/+12
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * pcm030: update defconfigSascha Hauer2011-12-141-6/+21
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc pcm030: Fix device resource sizesSascha Hauer2011-12-141-3/+3
| | | | | | | | | | | | | | The device resources are much smaller, the resource mechanism revealed this because of overlapping devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu/ppc-oftree' into nextSascha Hauer2011-12-154-270/+61
|\ \
| * | remove old ft_build supportSascha Hauer2011-12-151-9/+0
| | | | | | | | | | | | | | | | | | | | | This is unused now as its only user (ppc) is switched to libfdt based oftree support" Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: switch to libfdt based oftree implementationSascha Hauer2011-12-152-248/+25
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc pcm030: Move memory registration to mem_initcallSascha Hauer2011-12-151-4/+12
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pcm030: update defconfigSascha Hauer2011-12-151-6/+21
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc pcm030: Fix device resource sizesSascha Hauer2011-12-151-3/+3
| |/ | | | | | | | | | | | | The device resources are much smaller, the resource mechanism revealed this because of overlapping devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / remove unused watchdog headerSascha Hauer2011-12-153-3/+0
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-12-078-504/+5
|\
| * fix malloc space sizesSascha Hauer2011-12-031-1/+1
| | | | | | | | | | | | end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: push relocate_image up to the generic commandSascha Hauer2011-11-291-3/+0
| | | | | | | | | | | | | | | | | | All handlers used to just relocate the image without any checks, so we are doomed if we write outside of SDRAM or will overwrite ourselves. Move the relocation up to the generic part where we have a chance of catching these issues. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'work/magicvars' into nextSascha Hauer2011-11-291-0/+4
| |\
| | * add magicvar commandSascha Hauer2011-11-291-0/+4
| | | | | | | | | | | | | | | | | | | | | The magicvar command gives an overview about all environment variables with a special meaning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | remove irq support fragmentsSascha Hauer2011-11-286-500/+0
| |/ | | | | | | | | | | | | | | We never had interrupt support in barebox and we have no plans to add interrupt support. Even if we do I doubt the current fragments of irq support are helpful, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ppc mpc5200: remove unused variableSascha Hauer2011-12-071-2/+0
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2011-10-231-1/+1
|\
| * Only pass -P to cpp when generating ld scriptsLoïc Minier2011-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building sandbox with ccache, one would hit warnings such as: warning: 'struct mmsghdr' declared inside parameter list on random files; a way to reproduce this issue is to build a simple file doing just: #include <sys/socket.h> int main(void) { return 0; } gcc -Wall -P -c -o foo foo.c But actually the -P flag is only useful when generating non-C files, such as linker scripts in the case of barebox. Removing the -P flag from all the gcc invocations, except when generating .lds files makes the warning go away. It turns out that this is what linux/scripts/Makefile.build also does nowadays. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | move digest to crypto/Jean-Christophe PLAGNIOL-VILLARD2011-10-121-0/+1
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc common.h: remove unused function declarationsSascha Hauer2011-09-271-6/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc mpc5200: remove various board specific register setup from generic codeSascha Hauer2011-09-272-23/+0
| | | | | | The boards can do this themselves, no need for ifdef orgies. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc mpc5200: remove cs setup from cpu_initSascha Hauer2011-09-271-87/+0
| | | | | | If a board wishes to setup a chipselect, it can use mpc5200_setup_cs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pcm030: cleanup config.hSascha Hauer2011-09-271-64/+2
| | | | | | Remove several now unnecessary defines. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>