summaryrefslogtreecommitdiffstats
path: root/arch/ppc
Commit message (Collapse)AuthorAgeFilesLines
* arch/MPC5xxx: fix linker script for MPC5200Juergen Borleis2014-10-091-11/+15
| | | | | | | | | | | | | | | | | | | Without this change the barebox.bin ends up with: 00000000 79 ba 8f 79 00 00 00 00 75 39 6e d1 74 27 00 00 |y..y....u9n.t'..| 00000010 01 00 00 00 00 00 00 00 28 80 ad db 8d c7 a8 67 |........(......g| 00000020 4e 07 00 00 10 00 00 00 2f 63 6f 6e 66 69 67 00 |N......./config.| 00000030 8d c7 a8 68 ff 01 00 00 23 21 2f 62 69 6e 2f 73 |...h....#!/bin/s| 00000040 68 0a 0a 68 6f 73 74 6e 61 6d 65 3d 46 49 58 4d |h..hostname=FIXM| 00000050 45 0a 69 66 20 5b 20 2d 7a 20 22 24 75 73 65 72 |E.if [ -z "$user| 00000060 22 20 5d 3b 20 74 68 65 6e 0a 23 09 75 73 65 72 |" ]; then.#.user| 00000070 3d 0a 66 69 0a 0a 23 20 45 6e 74 65 72 20 4d 41 |=.fi..# Enter MA| [...] which means it starts with the default environment instead of the reset vector area. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add some .gitignore filesSascha Hauer2014-09-121-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ppc'Sascha Hauer2014-08-0723-58/+1108
|\
| * ppc: DA923RC: 16-bit Product Data EEPROM read accessRenaud Barbier2014-08-011-1/+17
| | | | | | | | | | | | | | | | Change Product Data validity checking to ensure that support can be provided for 8-bit and 16-bit EEPROM devices. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: minimal Freescale P1010RDB board supportRenaud Barbier2014-07-2810-0/+487
| | | | | | | | | | | | | | | | | | | | | | This is a limited board support for the Freescale P1010RDB. The board boots from NOR and output the prompt to the serial port at 115200 bauds. All 3 Ethernet ports are supported by the gianfar driver. I2C devices are accessible on both bus and the memory is initialised by the 85xx DDR driver. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: Freescale P1010 SoC supportRenaud Barbier2014-07-286-34/+209
| | | | | | | | | | | | | | | | | | | | Add support for the Freescale P1010 including errata for this CPU, SoC frequency calculation and GPIO settings. The mpc85xx configuration options file is re-ordered to facilitate board option selection. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: Freescale P1010 headersRenaud Barbier2014-07-285-3/+290
| | | | | | | | | | | | | | | | Add a minimal Integrated Flash Controller header file and new definitions to support the P1010 SOC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: 85xx: CCSRBAR mapping moved to start-up code.Renaud Barbier2014-07-282-26/+111
| | | | | | | | | | | | | | | | | | | | Move the configuration, control and status register base address (CCSRBAR) relocation to the start-up processing. This addresses TLB faults found during testing on the Freescale P1010RDB and also matches the current U-Boot functionality. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | sandbox: allow "make ARCH=sandbox allyesconfig"Holger Schurig2014-07-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Compiling the tree with allyesconfig is helpful because different compilers (gcc, clang) or static checkers (e.g. clang's scan-build) can then process and check more code. This patch introduces two new configuration symbols that Kconfig files can depend on. That way, code that is only working where a cache or DMA implementation exists can be opted out. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: Use generic find_*_bit functionsSascha Hauer2014-07-172-43/+7
|/ | | | | | | | The ppc implementation is identical to the generic implementation, so use the generic one instead. Also add the missing __ffs function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2014-07-041-2/+2
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/boards/chumby_falconwing/falconwing.c arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c arch/x86/mach-x86.dox scripts/setupmbr/setupmbr.c
| * sdma.h: Typo, "interupt" -> "interrupt"Robert P. J. Day2014-06-301-2/+2
| | | | | | | | | | | | | | Fix only two "interupt" misspellings in entire barebox codebase. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Documentation: remove doxygen documentationSascha Hauer2014-06-262-17/+0
|/ | | | | | | The doxygen documentation is long outdated. Remove it. It will be replaced with sphinx based documentation later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: remove address of the Free Software FoundationAntony Pavlov2014-06-112-9/+0
| | | | | | | | | | | | | | | | | | The FSF address has changed; The FSF site says that address is Free Software Foundation 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA (see http://www.fsf.org/about/contact/) Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PPC: FSL DDR: Fix compiler warningSascha Hauer2014-06-051-1/+1
| | | | | | | | | Fixes: arch/ppc/boards/freescale-p1022ds/ddr.c: In function 'fsl_ddr_board_info': arch/ppc/boards/freescale-p1022ds/ddr.c:39:21: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: NET_DHCP -> CMD_DHCPHolger Schurig2014-05-141-1/+1
| | | | | | | | | | | * this compile option actually turns on a command, so name it accordingly * also move the Kconfig definition into commands/Kconfig, thus placing getopt into the "Network commands" section * while at it, improve Kconfig documention Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: NET_PING -> CMD_PINGHolger Schurig2014-05-144-4/+4
| | | | | | | | | | | * this compile option actually turns on a command, so name it accordingly * also move the Kconfig definition into commands/Kconfig, thus placing getopt into the "Network commands" section * while at it, improve Kconfig documention Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: HUSH_GETOPT -> CMD_GETOPTHolger Schurig2014-05-141-1/+1
| | | | | | | | | | | * this compile option actually turns on a command, so name it accordingly * also move the Kconfig definition into commands/Kconfig, thus placing getopt into the "Shell scripting commands" section * while at it, improve Kconfig documention Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: ns16550: Rework driver to allow for x86 I/O spaceMichel Stam2014-04-093-3/+5
| | | | | | | | | | | | The current implementation fakes a memory-mapped I/O device at 0x3f8 and 0x2f8, then uses platform read/write functions to do the actual reading and writing. These platform functions only exist for the x86 platform; better to move the I/O routines into the driver and have the driver request I/O ports using request_ioport_region. Signed-off-by: Michel Stam <michel@reverze.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: io: Add _IO_BASE defineSascha Hauer2014-04-091-0/+1
| | | | | | To make inb/outb and friends work. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: P2020RDB: add environment partition supportRenaud Barbier2014-04-034-5/+29
| | | | | | | | Add an environment partition and support commands so that the system configuration can be permanent. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: P1022DS: update Kconfig and MakefileRenaud Barbier2014-03-192-9/+25
| | | | | | | | Kconfig and make files are updated to build the Freescale P1022DS image. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: mpc85xx: add stashing supportRenaud Barbier2014-03-191-0/+8
| | | | | | | | | | The eTSEC 2.0 devices found on the 85xx family of SoCs support stashing buffer descriptors in the L2 cache. This updates the device tree fixup for these devices to ensure that the stashing related properties used by Linux are initialised correctly. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: add Freescale P1022DS board supportRenaud Barbier2014-03-1915-4/+575
| | | | | | | | | | | | | | | | | | | | | | | Add support for the Freescale P1022DS. Driver support is limited to: - I2C - Ethernet - Serial - NOR flash - PIXIS FPGA System clock configuration is read from the FPGA but has only been tested using a 133MHz system clock and 100MHz DDR clock. Boot arguments are defined in the environment to boot over NFS with a console configured at 115200 bauds. Enabling branch prediction is moved from board support to the platform support for all boards as it is a CPU feature. Some the code is from U-Boot version git-be937b5. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: mpc8xxx: add DDR3 supportRenaud Barbier2014-03-1912-100/+811
| | | | | | | | | | | | | | | | Add DDR3 support into the MPC8xxx DDR driver. To avoid confusion, the function set_ddr_sdram_mode is renamed set_ddr2_sdram_mode. Checking for errors is simplified in the DDR2 DIMM parameters computation to be consistent with DDR3. This code is derived from the files found in directory drivers/ddr/fsl from U-Boot version git-be937b5. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common: DDR3 SPD verification supportRenaud Barbier2014-03-181-0/+1
| | | | | | | | | Add DDR3 SPD verification support for use by the PPC 8xxx DDR driver. This is based on the equivalent files from U-Boot version git-be937b5. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: add SoC support for Freescale P1022Renaud Barbier2014-03-185-3/+45
| | | | | | | CPU, DDR, and LBC definitions are added to support the Freescale P1022. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ppc'Sascha Hauer2014-03-0716-14/+127
|\
| * ppc: P2020RDB and DA923RC configurationRenaud Barbier2014-03-033-0/+7
| | | | | | | | | | | | | | Enable memtest, MMU and iomem support on the P2020RDB and DA923RC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: add support for memtest with cache disabledRenaud Barbier2014-03-035-1/+82
| | | | | | | | | | | | | | | | | | Add support to enable caching on a memory region during the memory test. Tested on P2020RDB and DA923RC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MPC85xx: fix memory layout to prevent corruption during memtestRenaud Barbier2014-03-036-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | Memory regions on MPC85xx boards are incorrectly defined leading to corruption when running memory tests. This patch updates the memory layout of MPC85xx boards so that critical memory regions can be correctly reserved during the memory test. Tested on the P2020RDB and DA923RC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * DA923RC: increase malloc sizeRenaud Barbier2014-02-041-1/+1
| | | | | | | | | | | | | | Increase the malloc size so that larger debug Linux image can be loaded. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * DA923RC: add boot scriptRenaud Barbier2014-02-042-0/+19
| | | | | | | | | | | | | | | | A boot script is added to load DTB and Linux images for booting. The init script starts the boot script after a 5s timeout window. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: mpc85xx: fix memory size calculationRenaud Barbier2014-02-141-2/+2
|/ | | | | | | | | Fix the chip select configuration register offset increment and summing of bank size so that, for chip select index greater than 0, barebox can determine the total memory size from enabled banks. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ppc'Sascha Hauer2014-02-0314-321/+359
|\
| * cpu-85xx: start.S: clean up imported codeRenaud Barbier2014-01-161-11/+11
| | | | | | | | | | | | | | | | Correct double spaces, indentation and vocabulary in the imported start-up code. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: cpu-85xx: import U-Boot start-up codeRenaud Barbier2014-01-165-129/+277
| | | | | | | | | | | | | | | | | | Import U-Boot start-up code from version git-9407c3fc to include the latest CPUs errata and make future U-Boot code inclusion easier. The code import is limited to the currently supported CPUs P2020/MPC8544. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: mpc85xx: change bss relocationRenaud Barbier2014-01-162-24/+19
| | | | | | | | | | | | | | | | | | The linker script and start up code are updated so that the bss section is located above the barebox binary in memory. This removes the reliance on a hard-coded value. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: mpc85xx: use common linker scriptRenaud Barbier2014-01-167-143/+14
| | | | | | | | | | | | | | | | Updates to use a common linker script for all mpc85xx boards, avoiding duplication. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: cpu-85xx: upgrade MMU support to v2 pages sizesRenaud Barbier2014-01-164-25/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | TLB support for the 85xx CPUs has been upgraded to support the MMUv2 page size definitions. This has been imported from U-Boot version git-9407c3fc. This allows for future CPUs to make use of the new MMU support. Also the definition of MAX_MEM_MAPPED has been changed to avoid type casting with "min" macro. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mtd'Sascha Hauer2014-02-036-45/+42
|\ \
| * | DA923RC: enable UBI/UBIFS configurationRenaud Barbier2014-01-302-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | The UBI/UBIFS support is enabled and a script is added to attach the UBI device and mount the UBIFS partition. This allows the loading of firmware images from the NOR flash. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: remove bit operation headers file conflictRenaud Barbier2014-01-304-45/+24
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Removed the ppc bit operation functions and definitions in the ppc file asm/bitops.h since these are already defined in the asm-generic header files. Moved ffs64 definition to the mpc85xx header files because the function requires the inclusion of linux/log2.h which also includes asm/bitops.h. The conflict was noted when UBIFS was enabled in barebox. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/bootm'Sascha Hauer2014-02-031-2/+4
|\ \
| * | bootm: introduce bootm_load_os helperSascha Hauer2014-01-101-2/+4
| |/ | | | | | | | | | | | | | | | | | | The common bootm code used to load uImage contents to SDRAM before calling into the handlers if possible. This makes the handlers complicated since they have to handle many cases. Instead, introduce a helper to load the os after the handlers have figured out a good load address. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ppc 8xxx: Fix logicAlexander Shiyan2014-01-291-1/+1
|/ | | | | | | | Expression (pdimm->data_width >= 32) || (pdimm->data_width <= 40) always evaluates to true, so probably we need to use "&&" here. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ppc'Sascha Hauer2013-12-063-2/+10
|\
| * ppc: DA923RC: update board initialisationRenaud Barbier2013-11-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | Pull the board device reset GPIO pin high as this prevents PCI bus probing. The function da923rc_board_init_r is called at the postcore initcall level so that the udelay function can take advantage of the core initialisation. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: mpc85xx: add fsl,mpic node frequency propertyRenaud Barbier2013-11-182-0/+8
| | | | | | | | | | | | | | | | | | The clock frequency property of the device tree node fsl,mpic is added as it is needed by the PCI driver to function in newer Linux version. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Cleanup Kconfig filesAlexander Shiyan2013-11-111-4/+4
|/ | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>