summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ARM: Disable MMU feature in PBLSascha Hauer2012-10-031-1/+5
| | | | | | | remap_cache currently does not work, so enabling the MMU in the PBL currently does not make sense. Disable it for now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add gitignore filevicencb@gmail.com2012-10-021-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mmc_omap: improve error messagevicencb@gmail.com2012-10-021-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: set rev instead of returning itvicencb@gmail.com2012-10-021-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX pca100: Fix nand bootSascha Hauer2012-10-022-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The following missed to add a jump to board_init_lowlevel_return for the phycard pca100 board: | commit 244198ea8bdf592799ebfd430fe9ab165284e480 | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Sun Jul 8 18:30:42 2012 +0200 | | ARM boards: Use _text rather than TEXT_BASE | | With compressed image support TEXT_BASE will become the base | address of the uncompressed image. What the boards want instead | is the base address of the decompressor code or, if not compressed, | the base address of the uncompressed image. Use _text which is | the correct one for both cases. | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> This fixes it by adding the jump. Also imx_nand_load_image is directly called from lowlevel_init.S which fixes compilation with pbl support enabled. Tested with both compression enabled and disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci imx-esdhc: increase write timeoutSascha Hauer2012-09-291-1/+1
| | | | | | | | | | The timeout for wating for the bus to be idle is too short when the card does internal garbage collection. This was triggered with filling an SD card under Linux with /dev/urandom, then doing a saveenv under barebox afterwards. Linux has timeouts here up to 300ms. Use a second to be safe. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: cfa10036: Add proper resource lengthMaxime Ripard2012-09-281-2/+3
| | | | | | | | | | | The cfa10036 board file were missing the length parameter when adding devices. This made barebox crash early in the boot, in the mxs-mci driver. Provide the resources lengths in a consistent format. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kconfig: remove autogenerated fileSascha Hauer2012-09-281-2420/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX51 babbage: update defconfigSascha Hauer2012-09-211-1/+1
| | | | | | Reenable DEFAULT_ENVIRONMENT_GENERIC_NEW which got lost somewhere. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd mtdraw: fix fixing partial page readSascha Hauer2012-09-201-1/+1
| | | | | | | | | | | | | | | toread is unitialized. We have to use count instead. | commit 992c291e9561381cf86d4a7fc9271c2b60fea0c1 | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Sat Sep 15 16:54:47 2012 +0200 | | mtd mtdraw: Fix partial page read | | When reading parts of a page we have to limit the maximum bytes copied | to the remaining bytes of a page. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net/tap: use xzalloc to allocate dataJean-Christophe PLAGNIOL-VILLARD2012-09-201-2/+2
| | | | | | | this will ensure the data are set to 0 (list as example) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: do not register device before barebox is startedJean-Christophe PLAGNIOL-VILLARD2012-09-205-3/+55
| | | | | | | This will crash when use registered bus with device registered to it. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: check only image option in the second getoptJean-Christophe PLAGNIOL-VILLARD2012-09-201-11/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: accept defconfig with '-' in itJean-Christophe PLAGNIOL-VILLARD2012-09-191-2/+4
| | | | | | | replace '-' with '_' for the configuration option Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nios2: Fix DMA functions when CPU has no dcacheFranck Jullien2012-09-191-1/+13
| | | | | Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM mmu: use xmemalignSascha Hauer2012-09-161-1/+1
| | | | | | So we do not silently fail. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make: Fix if_changed when command contains backslashesSascha Hauer2012-09-161-1/+1
| | | | | | | | | | | | | | | | | | | The call if_changed mechanism does not work when the command contains backslashes. This basically is an issue with lzo and bzip2 compressed kernels. The compressed binaries do not contain the uncompressed image size, so these use size_append to append the size. This results in backslashes in the executed command. With this if_changed always detects a change in the command and rebuilds the compressed image even if nothing has changed. Fix this by escaping backslashes in make-cmd This was worked out together with Jan Lübbe. The same patch has recently been accepted to the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
* mtd mtdraw: Fix partial page readSascha Hauer2012-09-161-1/+2
| | | | | | | | When reading parts of a page we have to limit the maximum bytes copied to the remaining bytes of a page. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
* ARM i.MX6: fix usb_ehci warnings for sabreliteSteffen Trumtrar2012-09-161-0/+1
| | | | | | | | | | | This fixes the following warnings: arch/arm/boards/freescale-mx6-sabrelite/board.c: In function 'sabrelite_ehci_init': arch/arm/boards/freescale-mx6-sabrelite/board.c:265:2: warning: implicit declaration of function 'imx6_usb_phy1_disable_oc' [-Wimplicit-function-declaration] arch/arm/boards/freescale-mx6-sabrelite/board.c:266:2: warning: implicit declaration of function 'imx6_usb_phy1_enable' [-Wimplicit-function-declaration] Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: add usb function prototypesSteffen Trumtrar2012-09-161-0/+3
| | | | | | | Add missing prototypes to mach/usb.h Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mips: remove undefined local_irq_save/local_irq_restoreSascha Hauer2012-09-161-4/+0
| | | | | | | | mips currently uses local_irq_save and local_irq_restore which are not defined. Drop them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Antony Pavlov <antonynpavlov@gmail.com>
* net: tftp: timeout only after a proper amount of timeWolfram Sang2012-09-141-1/+2
| | | | | | | | | Currently, the timeout when waiting for packages is smaller than the timeout communicated to the TFTP server for retransmitting. Make sure we wait at least for two retransmissions before giving up. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX21: Add missing includeSascha Hauer2012-09-141-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* miidev: fix 1G wrong detectionEric Bénard2012-09-141-24/+9
| | | | | | | | | | since 99e72c8bbdbdc690025a5868d831f1fe79ad56fc on an i.MX51 based board, I get : "phy0: Link is up - 1000/Full". It seems miidev tries to probe the PHY to early and gets 0x3ffff which leads to the wrong capabilities setting. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tap: fix missing parent setting on eth_deviceJean-Christophe PLAGNIOL-VILLARD2012-09-121-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: armlinux: get the architecture before shutdown bareboxJean-Christophe PLAGNIOL-VILLARD2012-09-121-2/+1
| | | | | | | As we may try to get it from the env. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fsl TSEC: register map boundaryRenaud Barbier2012-09-111-3/+3
| | | | | | | | The end boundary of each registers set may overlap with the start of the next register set. Subtract 1 to the end boundary. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: mxs: add proper resource lengthWolfram Sang2012-09-112-11/+11
| | | | | | | | | | | For some reason, the mxs-boards missed some length parameters when adding devices. This made reading from ocotp crash in the current version. Provide missing lengths, use a consistent format and fix the length for the LCDIF. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: fs.c fix castAlexander Aring2012-09-111-2/+6
| | | | | | | Fix casting on min argument, to avoid warnings on 64bit build. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* smsc911x: Check platformdata pointerJan Weitzel2012-09-101-2/+2
| | | | | | | | If pdata is NULL smc911x_probe will crash. Checking the zero initialized priv->shift results in default configuration if pdata is not set. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* uncompress: drop wrong BUG(uncompress_size)Jean-Christophe PLAGNIOL-VILLARD2012-09-101-2/+0
| | | | | | | | As uncompress_size is a static and will set if call uncompress_size multiple time. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* smc911x: fix typo pn check if the device is ready before using itJean-Christophe PLAGNIOL-VILLARD2012-09-101-1/+1
| | | | | | | the check need to be inverted Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd/mtdraw: fix format specifier for ssize_tJan Luebbe2012-09-071-1/+1
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: use correct format specifierJan Luebbe2012-09-071-2/+2
| | | | | | | | | For the size_t type the format specifier %zu or %zx must be used. See Documentation/printk-formats.txt in the kernel for details. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51: unbreak FEC iomuxEric Bénard2012-09-071-7/+7
| | | | | | | | | | | | in commit 2bdc9f57a86dff41cfc1f87b644a2e53fdcce2b6 the iomux was synced with the kernel but this leads to some changes in the PAD_CTRL of some FEC pins leading to a non working FEC on our cpuimx51 board. This patch set back the PAD_CTRL of the missing pins to the initial value. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs/nfs: fix read when size < 1024Jean-Christophe PLAGNIOL-VILLARD2012-09-071-1/+5
| | | | | | | Currently we always request 1024. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM049: nand_bootstrap add shebangJan Weitzel2012-09-061-1/+1
| | | | | Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Atmel sam9x boards: enable the pblJean-Christophe PLAGNIOL-VILLARD2012-09-067-0/+7
| | | | | | | so we are smaller than the 256KiB reserved for barebox Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Calao boards: enable the pblJean-Christophe PLAGNIOL-VILLARD2012-09-0610-0/+10
| | | | | | | so we are smaller than the 256KiB reserved for barebox Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/usb'Sascha Hauer2012-09-051-1/+2
|\
| * usb: use ep-specific pwrgood delaySteffen Trumtrar2012-08-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | In usb_hub_configure the hub is asked for its descriptor and among other things its bPwrOn2PwrGood time. In the actual hub_power_on function this information was not used and a hardcoded value was used instead. For some hubs this delay is to short. So, use the delay the hub wants. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/smc911x'Sascha Hauer2012-09-055-397/+565
|\ \
| * | smc911x: check if the device is ready before using itJean-Christophe PLAGNIOL-VILLARD2012-09-031-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | poll the READY bit in PMT_CTRL. Any other access to the device is forbidden while this bit isn't set. Try for 100ms Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | smc911x: update chip detectionJean-Christophe PLAGNIOL-VILLARD2012-09-032-39/+34
| | | | | | | | | | | | | | | | | | | | | Use linux kernel chip detection from 3.5 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | smc911x: improve detection handleJean-Christophe PLAGNIOL-VILLARD2012-09-032-1/+22
| | | | | | | | | | | | | | | | | | | | | detect if the bus is swapped and report a 32bit drivers is used on a 16bit bus Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | smc911x: add support to pass the shift via platform dataJean-Christophe PLAGNIOL-VILLARD2012-09-035-43/+109
| | | | | | | | | | | | | | | | | | | | | switch ipe337: to it at the same time to do not brake it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | smc911x: add 16bit bus width supportJean-Christophe PLAGNIOL-VILLARD2012-09-031-5/+29
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | smc911x: introduce read/write opsJean-Christophe PLAGNIOL-VILLARD2012-09-031-38/+63
| | | | | | | | | | | | | | | | | | | | | | | | This will allow to replace them depending on the platform data. So we can specify shift and reg io witdh (16bit/32bit) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | smc911x: move register define to smc911x.hJean-Christophe PLAGNIOL-VILLARD2012-09-032-327/+354
| | | | | | | | | | | | | | | | | | | | | this make the driver more readable Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/sandbox'Sascha Hauer2012-09-053-32/+64
|\ \ \