summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2013.10.0v2013.10.0Sascha Hauer2013-10-071-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* beaglebone: use most recent timings for white variantJan Luebbe2013-10-061-7/+7
| | | | | | | These values come from the U-Boot source code. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: omap: am33xx_generic: fix DDR setup for DDR2Jan Luebbe2013-10-061-1/+1
| | | | | | | | | | | | | For DDR2 RAMs, regs->zq_config is not used, which causes the AM33XX_EMIF4_0_REG(SDRAM_CONFIG) register to be left unconfigured, resulting in boot failure. It seems that the DDR2 case was missed during the consolidation in commit 9f122f8bf023a12ad5f84b61d1d74d3ff06104dd. The actual call for the Bone was removed in 88659d9c4a87a730f6efe4f38c011e8e0214a67b. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: mmu: be more verbose if ttb setup failsJan Luebbe2013-10-061-1/+1
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* am33xx_generic: convert from switch to if/elseJan Luebbe2013-10-061-20/+11
| | | | | | | | | | The function am33xx_get_cpu_rev may be called before barebox_arm_entry(), so we need to avoid switch statements. One example is the BeagleBone, where we use this function to differenciate between the white and black variants. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: omap: Fix default value of mci.f_maxTeresa Gámez2013-10-021-3/+1
| | | | | | | | | | | With commit c2ef47887 mci.f_max default value is only set when pdata is available. Fix this with always setting the mci.f_max default value and overrite it when pdata available. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* images: correctly linebreak built images outputLucas Stach2013-10-021-1/+2
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mips: bcm47xx: Fix compiler warningSascha Hauer2013-10-021-2/+4
| | | | | | | | | | Fixes: arch/mips/mach-bcm47xx/include/mach/debug_ll.h: In function 'PUTC_LL': arch/mips/mach-bcm47xx/include/mach/debug_ll.h:33: warning: passing argument 1 of '__raw_readb' makes pointer from integer without a cast arch/mips/mach-bcm47xx/include/mach/debug_ll.h:34: warning: passing argument 2 of '__raw_writeb' makes pointer from integer without a cast Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: vexpress: Fix compiler warningSascha Hauer2013-10-021-1/+1
| | | | | | | | | Fixes: arch/arm/boards/vexpress/init.c: In function 'vexpress_core_init': arch/arm/boards/vexpress/init.c:139:22: warning: 'hostname' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Ka-Ro TX28: Fix result checking of devfs_add_partitionSascha Hauer2013-09-301-1/+5
| | | | | | | devfs_add_partition was changed to return the cdev. Fix the result checking accordingly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx23-evk: Fix result checking of devfs_add_partitionSascha Hauer2013-09-301-1/+5
| | | | | | | devfs_add_partition was changed to return the cdev. Fix the result checking accordingly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: friendlyarm-tiny210: remove unused variableSascha Hauer2013-09-301-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: edb93xx: Add missing includeSascha Hauer2013-09-301-0/+1
| | | | | | | | | Fixes: arch/arm/boards/edb93xx/edb93xx.c: In function 'edb93xx_console_init': arch/arm/boards/edb93xx/edb93xx.c:123:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* copy_file: Add missing O_TRUNCSascha Hauer2013-09-291-1/+1
| | | | | | | Without it, when copying a smaller file over a larger file the resulting file still has the remaining space from the larger file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lib: Fix copy_file when filesize is FILESIZE_MAXTeresa Gámez2013-09-272-4/+9
| | | | | | | | | | Using tftp command does not work proper when files have FILESIZE_MAX, as copy_file and show_progress can not handle it. Check the file size for FILESIZE_MAX and handle it as file size = 0. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ata: ide-sff: Add missing wait for ready in write functionSascha Hauer2013-09-271-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* detect command: Add missing help text for -a optionSascha Hauer2013-09-271-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pfla02: Fix compiler warningSascha Hauer2013-09-271-1/+1
| | | | | | PUTC_LL no longer exists. Use putc_ll instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pwm: sanity check values before passing them to the driversSascha Hauer2013-09-271-0/+7
| | | | | | | | | Check for valid period size before calling ops->config. This fixes the pxa driver which otherwise does a division by zero. While at it, also check for duty_ns being smaller or equal to period_ns. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Robert Jarzmik <robert.jarzmik@free.fr>
* ARM: dts: i.MX6q: cpus/cpu nodes dts updatesSascha Hauer2013-09-271-0/+4
| | | | | | | Add device_type = "cpu", otherwise a v3.10 kernel boots with only one CPU enabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootstrap: Add missing includeSascha Hauer2013-09-231-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: invalidate caches thoroughlySascha Hauer2013-09-214-14/+8
| | | | | | | | | | | | The data caches should be invalided once during startup. This should also be done when we do not have the MMU enabled in barebox because the Kernel does not invalidate the caches during start. To make this sure this patch enables the arm_early_mmu_cache_invalidate function even if MMU support is disabled. Additionally this patch adds calls to arm_early_mmu_cache_invalidate in start.c and uncompress.c. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER optionDmitry Smagin2013-09-181-0/+1
| | | | | | | | | | This patch fixes linker error: barebox.c:(.text.environment_probe+0x48): undefined reference to `default_environment_path` Which appears when compiling env-less boards with enabled devicetree. Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* animeo_ip: fix macb pin mux and set phy interface as MIIJean-Christophe PLAGNIOL-VILLARD2013-09-181-0/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix lseek on fat filesystems.Fargier Sylvain2013-09-181-0/+1
| | | | | | | | FILE object was not updated properly when seeking. Signed-off-by: Fargier Sylvain <sylvain.fargier@somfy.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: add irq fixupJean-Christophe PLAGNIOL-VILLARD2013-09-188-1/+91
| | | | | | | | | | Some of the irq can still be on after a reset or power on as the IP are powered by the backup power. This could lead to an interrupt dead lock when the kernel boot. So disable them before booting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb-imx28: fix enableEric Bénard2013-09-101-2/+3
| | | | | | | we need to power on the PLL when enabling the USB clock. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX28: unbreak ethernetEric Bénard2013-09-101-2/+3
| | | | | | | | | | | | | | | | | | | | | since the switch to common clock, ethernet driver doesn't works and and access to the network leads to : eth0: Read MDIO failed... unable to handle NULL pointer dereference at address 0x000000c7 The problem is that bit 31 (SLEEP) of register HW_CLKCTRL_ENET is kept to its default value (1) which means : "put Ethernet block in sleep mode. CLK_H_MAC0(1), CLK_H_MAC0(1)_S, and CLK_ENET0(1)_TX are gated off. Ethernet can be wakeup remotely in sleep mode" In that case the FEC don't get its clock. This patch fix the problem by toggling this bit when FEC's clock is enabled. Tested on i.MX28EVK. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video/stm: enable clock to get the display workingEric Bénard2013-09-101-0/+1
| | | | | | | | | | | | | | else the clock is not enabled : ref_pix (rate 270000000, disabled) lcdif_sel (rate 270000000, disabled) lcdif_div (rate 33750000, disabled) lcdif (rate 33750000, disabled) lcdif_comp (rate 33750000, disabled) tested on i.MX28EVK. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video/stm: don't fail when the pixel clock is properly setEric Bénard2013-09-101-1/+1
| | | | | | | | the check is wrong as when the clock rate is correctly set the function will return 0. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand_mxs: fix on i.MX28Eric Bénard2013-09-101-0/+1
| | | | | | | | | | when the bootmode is different than NAND (USB for example), the GPMI clock is not enabled thus we can't probe a NAND flash. Tested on an i.MX28 Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mxs_spi: unbreak driverEric Bénard2013-09-101-0/+1
| | | | | | | | | | | | since the switch to common clock, SPI driver reports : MXS: Timeout resetting block via register 0x80014000 mxs_spi mxs_spi2: MXS SPI: Timeout waiting for start The reason is that the clock is not enabled anywhere in the driver. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfa10036: fix warningEric Bénard2013-09-101-1/+1
| | | | | | | | | this fix : arch/arm/boards/crystalfontz-cfa10036/cfa10036.c: In function 'cfa10036_devices_init': arch/arm/boards/crystalfontz-cfa10036/cfa10036.c:123:3: warning: implicit declaration of function 'imx_gpio_mode' [-Wimplicit-function-declaration]cfa10036: fix warning Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial_auart: fix compile errorEric Bénard2013-09-101-1/+1
| | | | | | | | | | | | | this fix : drivers/serial/serial_auart.c:49:22: fatal error: mach/mxs.h: No such file or directory and drivers/serial/serial_auart.c: In function 'auart_serial_init_port': drivers/serial/serial_auart.c:174:2: warning: implicit declaration of function 'stmp_reset_block' [-Wimplicit-function-declaration] only compile tested ATM Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mxs_spi: fix compile errorEric Bénard2013-09-101-2/+1
| | | | | | | | | | | | | | this fix : drivers/spi/mxs_spi.c:29:22: fatal error: mach/mxs.h: No such file or directory and drivers/spi/mxs_spi.c: In function 'mxs_spi_setup': drivers/spi/mxs_spi.c:102:2: error: too few arguments to function 'stmp_reset_block' include/stmp-device.h:21:12: note: declared here only compile tested ATM Signed-off-by: Eric Bénard <eric@eukrea.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-054-10/+160
|\
| * 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>
| * net, of: fixup MAC address by aliasRenaud Barbier2013-09-051-10/+12
| | | | | | | | | | | | | | | | | | If a network device has not been registered from the devicetree, we may still find it by its alias in the devicetree. This way also platform based network devices can obtain a valid MAC address in the devicetree. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2013-09-0552-507/+920
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/pcm051/env/config
| * | PCM051: Fixup DDRPLLTeresa Gámez2013-09-052-1/+2
| | | | | | | | | | | | | | | | | | | | | The correct DDRPLL for PCM051 is 303MHz. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: beaglebone: update defconfigSascha Hauer2013-09-051-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - compile in thumb2 mode for a smaller binary - increase TEXT_BASE to get more memory space - set malloc size to zero for autodetection - enable some more commands - disable MCI_STARTUP, it's no longer needed and saves some time during boot Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: beaglebone: update mlo_small defconfigSascha Hauer2013-09-051-4/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: beaglebone: register sd/emmc with persistent nameSascha Hauer2013-09-051-2/+18
| | | | | | | | | | | | | | | | | | | | | To get persistent names for the sd/emmc cards register them with a name in platform_data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: beaglebone: add support for beaglebone black with DDR3 RAMJan Luebbe2013-09-053-6/+105
| | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: beaglebone: Initialize UART for lowlevel debuggingSascha Hauer2013-09-051-0/+4
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | rework debug_llSascha Hauer2013-09-056-27/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert to static inline functions and use lower case letters for function names. Also, include mach/debug_ll.h when an architecture provides support for debug_ll, not only when it's actually enabled. This allows architecures to put some UART initialization code into mach/debug_ll.h which is compiled out when debug_ll is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: am33xx: make DDR PLL frequency configurableSascha Hauer2013-08-274-9/+11
| | | | | | | | | | | | | | | | | | Needed for 400MHz DDR3. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: am33xx: Add mmc1 registration helperSascha Hauer2013-08-271-0/+6
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: am33xx: beaglebone: configure I2C EEPROMJan Luebbe2013-08-271-0/+9
| | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>