summaryrefslogtreecommitdiffstats
path: root/arch/ppc
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Merge branch 'for-next/rpi'Sascha Hauer2013-11-072-4/+4
|\
| * of: Add a context pointer to fixup functionsSascha Hauer2013-11-062-4/+4
| | | | | | | | | | | | | | If drivers want to fixup their specific instance they need some context to know which instance they have to fixup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: mpc85xx: build directivesRenaud Barbier2013-11-063-7/+28
| | | | | | | | | | | | | | | | Add the Kconfig and Makefile directives to build barebox for the GEIP DA923RC board. 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-0613-0/+977
| | | | | | | | | | | | | | 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>
* | ppc: mpc85xx: enable DDR driverRenaud Barbier2013-11-065-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | The use of the DDR driver as well as early I2C support is enabled for board initialising their memory through SPD EEPROM data. A SOC specific function returning the DDR bus frequency is added for the DDR driver to translate DDR timings to register values. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: mpc85xx: define Ethernet port countRenaud Barbier2013-11-062-1/+3
| | | | | | | | | | | | | | | | | | | | Because the port count is different between the MPC8544 and existing CPU support, the Ethernet port count is defined on a per CPU basis. Accordingly, the TBI PHY initialisation code is updated. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: mpc85xx: mpc8544 supportRenaud Barbier2013-11-068-0/+117
|/ | | | | | | | | | | | Definitions are added to support the mpc8544 sOC. The function returning the I2C bus frequency is updated to take into account the mpc8544 specific clock ratio. A mininal GPIO API is added to enable and set the GPIO out pins. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: factorise function to get the first enabled consoleJean-Christophe PLAGNIOL-VILLARD2013-10-061-3/+1
| | | | | | | rename it to console_get_first_active Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: bootm: relocate fdt to valid boot memoryRenaud Barbier2013-09-092-1/+51
| | | | | | | | | | | | | | For the MPC85xx family of SOCs Linux expects any boot firmware information to be passed in the first 64MiB of memory. This adds support to ensure that the device tree is relocated to a valid location if it is outside that address range. For the other SOC family currently present in the ppc architecture, the default is not to relocate as at Linux startup the virtual address equals the physical address. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/powerpc'Sascha Hauer2013-09-053-0/+148
|\
| * ppc: add and update device tree fixup functionsRenaud Barbier2013-09-053-0/+148
| | | | | | | | | | | | | | | | | | | | | | This adds support for populating derived properties of the mpc85xx SOC which are not typically included in the dtb directly. This update is based on U-Boot code from common/fdt_support.c and arch/powerpc/cpu/mpc85xx/fdt.c - version git-2b26201. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Set model and hostname at boardlevelSascha Hauer2013-08-164-6/+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>
* mpc85xx: remove local bus initialisationRenaud Barbier2013-08-055-23/+3
| | | | | | | | | | | | | The early initialisation of chip select 0 (boot flash) is removed from cpu initialisation. This removes the dependency on board base address definition. Consequently, cpu_init_f is not called in the start-up code but added to the init call list as cpu_init_r. Also the file arch/ppc/mach-mpc85xx/fsl_lbc.c is deleted. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc ddr-8xxx: misplaced parenthesisRenaud Barbier2013-07-221-1/+1
| | | | | Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next-manual/oftree-linux-sync'Sascha Hauer2013-07-022-4/+2
|\
| * OF: base: sync of_find_node_by_path with linux OF APISebastian Hesselbarth2013-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Barebox of_find_node_by_path requires a node to be passed as start node to start searching. Linux OF API does not pass this node and no current user of it in barebox is passing anything else than the root node. Therefore, we rename current function to of_find_node_by_path_from and introduce a Linux OF API compatible of_find_node_by_path that always passes the current root_node. Also, all current users of that function are updated to reflect the API change. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: remove strcasecmp/strncasecmp prototypesSascha Hauer2013-06-201-2/+0
| | | | | | | | | | | | | | ppc does not implement these, so remove the prototypes and use the ones from include/linux/string.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc 85xx: early I2C supportRenaud Barbier2013-06-272-0/+270
| | | | | | | | | | | | | | | | | | | | | | Early I2C support is introduced to read SPD data from memory modules prior to the loading of the I2C driver. This code is based on the equivalent file fsl_i2c.c in directory drivers/i2c from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc 8xxx: core DDR driver functionsRenaud Barbier2013-06-272-0/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | These files are the driver interface to handle the memory initialisation from reading the SPD data to writing the memory controller registers. This code is based on the equivalent files main.c in directory arch/powerpc/cpu/mpc8xxx/ddr and ddr-gen2.c in directory arch/powerpc/cpu/mpc85xx. Both are from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppx 8xxx: DDR registers value calculationRenaud Barbier2013-06-271-0/+425
| | | | | | | | | | | | | | | | | | | | | | The functions in this file calculate and store the value for each register of the memory controller. This code is based on the equivalent file in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc 8xxx: DDR utility and memory optionsRenaud Barbier2013-06-272-0/+211
| | | | | | | | | | | | | | | | | | | | | | This commit adds functions to calculate clock cycles, configure the LAW registers and populate board memory options. This code is based on the equivalent files in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc 8xxx: DIMM parameters calculationRenaud Barbier2013-06-272-0/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code calculates the DIMM characteritics i.e DIMM organization parameters and timings for DDR2 memory based on SPD data. It also provides a function to find out the lowest common DIMM parameters to be used for all DIMMs. This code is based on the equivalent files in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc 8xxx: DDR headersRenaud Barbier2013-06-272-0/+149
| | | | | | | | | | | | | | | | | | | | | | Structures are defined to record the common DIMM parameters and memory options on a per DIMM basis. This code is based on the equivalent files in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc asm: DDR headersRenaud Barbier2013-06-272-4/+187
| | | | | | | | | | | | | | | | | | | | | | Definitions and structures have been added to record DIMM parameters and configure memory options. The code is based on the equivalent files in the directory arch/powerpc/include/asm from U-boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | P2020RDB: update build configurationRenaud Barbier2013-06-251-1/+3
| | | | | | | | | | | | | | | | Update the P2020RDB build configuration to enable useful development commands. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ppc: gianfar MDIO busesRenaud Barbier2013-06-253-19/+42
|/ | | | | | | | | | 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>
* Merge branch 'for-next/ppc'Sascha Hauer2013-06-021-34/+37
|\
| * ppc: update I/O accessorsRenaud Barbier2013-05-311-29/+32
| | | | | | | | | | | | | | | | | | | | | | The I/O accessors in_bexx, out_bexx, in_lexx and out_lexx are updated to the latest Linux version. The patch is tested on a MPC8544 based board and solved I/O access issues on I2C devices. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc io.h: fix indentationRenaud Barbier2013-05-311-24/+24
| | | | | | | | | | | | | | | | To prepare for an update of the I/O functions to the latest Linux version, the indentation is fixed. 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>
* Merge branch 'for-next/oftree'Sascha Hauer2013-04-043-8/+27
|\
| * bootm: Pass unflattened devicetree to handlersSascha Hauer2013-03-062-0/+9
| | | | | | | | | | | | | | | | | | This makes it possible to modify the tree in the handlers. This is necessary because the initrd addresses are only known inside the handlers, but not to the generic bootm code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: fixup unflattened devicetreeSascha Hauer2013-03-061-8/+18
| | | | | | | | 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>
* nor flash: integrate into mtdSascha Hauer2013-02-141-0/+1
| | | | | | | | CFI Flash is currently handled outside the mtd layer which makes it a special case. Integrate it into mtd so that we get rid of this special status. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2013-02-043-0/+20
|\
| * 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>
| * remap_range: make function 'remap_range' globalAlexander Aring2013-01-181-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | Change function remap_range in arm architecture to make it global accessable. For example command 'memtest' can change pte flags to enable or disable cache. Add dummy function for others architectures that doesn't have mmu or pte support. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | treewide: fix format specifiersSascha Hauer2013-01-271-2/+2
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove bad Kconfig reference to HAS_CFIAlexander Shiyan2012-12-081-1/+0
| | | | | | | Barebox not contain symbol HAS_CFI, so remove all references to it. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup Kconfig filesAlexander Shiyan2012-12-082-1/+3
| | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format, removing extraneous lines and spaces. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tftp'Sascha Hauer2012-10-031-1/+2
|\
| * defconfig: Switch all defconfig to new tftp commandSascha Hauer2012-09-281-1/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-0342-168/+0
|\ \ | | | | | | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * | Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-1742-168/+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>