summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boards
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>
* 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-289-0/+432
| | | | | | | | | | | 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>
* Documentation: remove doxygen documentationSascha Hauer2014-06-261-8/+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>
* 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: P2020RDB: add environment partition supportRenaud Barbier2014-04-033-4/+9
| | | | | | | | 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: add Freescale P1022DS board supportRenaud Barbier2014-03-1912-3/+517
| | | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* Merge branch 'for-next/ppc'Sascha Hauer2014-02-034-298/+0
|\
| * ppc: mpc85xx: use common linker scriptRenaud Barbier2014-01-164-298/+0
| | | | | | | | | | | | | | | | 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>
* | DA923RC: enable UBI/UBIFS configurationRenaud Barbier2014-01-301-0/+12
|/ | | | | | | | | 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: 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: DA923RC: add board supportRenaud Barbier2013-11-0612-0/+920
| | | | | | | Add the GEIP DA923RC board support. This includes core files as well as defconfig and make files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Set model and hostname at boardlevelSascha Hauer2013-08-162-0/+6
| | | | | | | | | | | | With multiboard support the compiletime generated BOARDINFO string gets more and more meaningless. This removes it from Kconfig and replaces it with a variable that can be set at boardlevel. Also many boards have a standard setting for the hostname in the environment. This patch also moves the standard to C code by calling barebox_set_hostname(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* P2020RDB: map boot flash.Renaud Barbier2013-08-052-4/+4
| | | | | | | | | The chip select 0 (boot flash) registers are updated by the board specific code as it is not done by the cpu early initialisation any more. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: gianfar MDIO busesRenaud Barbier2013-06-251-3/+10
| | | | | | | | | | This commit creates MDIO bus devices to separate the MDIO bus abstraction from the Ethernet device initialisation. It also updates the configuration of the P2020RDB ports. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: boards: add barebox.lds to .gitignoreAntony Pavlov2013-05-131-0/+1
| | | | | | | | | | | | | | Without this patch after compiling barebox for a PowerPC board we have 'git status' output looking like this: # Untracked files: # (use "git add <file>..." to include in what will be committed) # # arch/ppc/boards/pcm030/barebox.lds Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fec: use standard phy type definesSascha Hauer2013-03-091-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* barebox-data: add barebox-data sectionsAlexander Aring2013-01-182-0/+2
| | | | | | | | Add barebox-data section in arm branch to get complete barebox regions in sdram regions tree. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-039-36/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-179-36/+0
| | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net fec_mpc5200: Use same platform_data as i.MX fec driverSascha Hauer2012-09-231-3/+2
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ppc'Sascha Hauer2012-09-051-0/+13
|\ | | | | | | | | | | | | Conflicts: arch/ppc/boards/freescale-p2020rdb/p2020rdb.c arch/ppc/configs/p2020rdb_defconfig arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
| * ppc: P2020RDB Ethernet configurationRenaud Barbier2012-08-101-0/+14
| | | | | | | | | | | | | | | | Minimal support of the Ethernet interface on the P2020RDB board. Only the eTSEC3 interface is supported. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/i2c'Sascha Hauer2012-09-051-1/+12
|\ \
| * | ppc: p2020rdb i2c supportRenaud Barbier2012-09-041-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Support for both i2c busses on the p2020rdb board is added and the configuration file is updated to add the I2C driver and commands. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mpc85xx: header updateRenaud Barbier2012-09-041-1/+1
| |/ | | | | | | | | | | | | | | In order to use the IMX i2c driver on the mpc85xx SOC, the file mach/clocks.h is renamed mach/clock.h. Files using this header are updated accordingly. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / devices: fix missing conversion to DEVICE_ID_DYNAMICJean-Christophe PLAGNIOL-VILLARD2012-08-121-2/+2
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Minimal P2020RDB platform support and configuration fileRenaud Barbier2012-05-176-0/+569
| | | | | | | | | | | | | 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>
* 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>
* 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>
* 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 pcm030: Move memory registration to mem_initcallSascha Hauer2011-12-151-4/+12
| | | | 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>
* 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>
* ppc mpc5200: remove various board specific register setup from generic codeSascha Hauer2011-09-271-2/+0
| | | | | | The boards can do this themselves, no need for ifdef orgies. 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>
* pcm030: fix /dev/self0 and /dev/env0Sascha Hauer2011-09-271-3/+11
| | | | | | | | /dev/self0 and /dev/env0 are in the last MB of nor flash. The offset depends on the size of the flash, so detect this at runtime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pcm030: use new functionalitySascha Hauer2011-09-271-31/+24
| | | | | | | | | | We introduced several new functions to ease our life on ppc, use themn on the pcm030: - setup iomux and bus clocks in board code - add sdram memory according to detected size Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove EARLY_INIT and EARLY_CONSOLE supportSascha Hauer2011-09-272-15/+2
| | | | | | Bitrotted over time and nearly unused, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename include/mem_malloc.h to include/memory.hSascha Hauer2011-09-231-1/+1
| | | | | | | Which is a better name and also better to collect other things. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc pcm030: remove puts in early initSascha Hauer2011-09-231-2/+1
| | | | | | puts does not work at this stage, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pcm030: switch to resourcesJean-Christophe PLAGNIOL-VILLARD2011-07-301-24/+6
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* resource: introduce add_cfi_device to register simple cfi deviceJean-Christophe PLAGNIOL-VILLARD2011-07-231-8/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* add a add_mem_device functionSascha Hauer2011-07-181-14/+2
| | | | | | | | | | | Add a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of map_base and struct memory_platform_data. And switch all of the memory to it Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLEJean-Christophe PLAGNIOL-VILLARD2011-07-181-1/+1
| | | | | | | we keep struct memory_platform_data for now on we will switch off the memories resources to struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ppc pcm030: provide _stext, _text and __bss_stop in linker scriptSascha Hauer2011-01-171-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: use id as -1 for auto assigned idJean-Christophe PLAGNIOL-VILLARD2010-09-201-0/+5
| | | | | | | | before if you specify id = 0 the next available id will be taken otherwise fail if already registered now as in linux we use -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move boards to arch/<architecure>/boardsJean-Christophe PLAGNIOL-VILLARD2010-07-236-0/+540
this will allow each arch to handle the boards more simply and depending on there need the env var BOARD will refer to the current board dirent for sandbox as we have only one board the board dirent is arch/sandbox/board Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>