summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2013.01.0v2013.01.0Sascha Hauer2013-01-091-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* stringlist: fix cpp macro in headerSteffen Trumtrar2013-01-091-3/+3
| | | | | | | | | | | Both include/string.h and include/stringlist.h define the c preprocessor macro __STRING_H. This leads to a compile time error, in case both files are (indirectly) included. Rename the macro to __STRINGLIST_H in stringlist.h. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MFD MC34708: Add dependence on SPIWjatscheslaw Stoljarski (Slawa)2012-12-213-4/+4
| | | | | | | | MC34708 depend on I2C or SPI, so let driver depend on SPI too and rename config option name to MFD_MC34708. Signed-off-by: Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM OMAP: add help text for OMAP_BUILD_IFTJan Luebbe2012-12-191-1/+5
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: mxs: NO_SUBPAGE_WRITE flag was overwrittenWolfram Sang2012-12-191-3/+9
| | | | | | | | | It is not the chip, but this controller which cannot do subpage writes. So, make sure we add the flag at the proper place, so it doesn't get overwritten by flash detection anymore. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: flash: add missing newlines to error messagesWolfram Sang2012-12-141-2/+2
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/net-link'Sascha Hauer2012-12-133-2/+9
|\
| * net phylib: force to wait for linkSascha Hauer2012-12-123-2/+9
| | | | | | | | | | | | | | | | When starting a network device wait until the link is up. Otherwise autobooting does not work with little timeout and several attempts have to be made until the network is finally up. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu/devchild'Sascha Hauer2012-12-1312-51/+23
|\ \
| * | drivers/base: fix corrupt device treeSascha Hauer2012-12-1212-47/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dev_add_child is a very unsafe function. If called multiple times it allows setting the same device to different parents thus corrupting the siblings list. This happens regularly since: | commit c2e568d19c5c34a05a1002d25280bf113b72b752 | Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | Date: Sat Nov 3 16:11:05 2012 +0100 | | bus: add bus device | | automatically add it as parent of any bus device if none already specified | | we have now a nice output per bus If for example a FATfs is mounted this nice output per bus often ends with: > `---- fat0 > `---- 0 > `---- 0x86f0000087020031-0x86f000410df27124: /dev/<NULL> > `---- sram00 > `---- 0x00000000-0xffffffffffffffff: /dev/<NULL> > `---- 0x00000000-0xffffffffffffffff: /dev/<NULL> > unable to handle NULL pointer dereference at address 0x0000000c > pc : [<87f08a20>] lr : [<87f08a04>] > sp : 86eff8c0 ip : 87f3fbde fp : ffffffff > r10: ffffffff r9 : 00000000 r8 : 00000003 > r7 : 86f075b8 r6 : 00000002 r5 : ffffffec r4 : 86f07544 > r3 : 00000000 r2 : 43f900b4 r1 : 00000020 r0 : 00000005 > Flags: Nzcv IRQs off FIQs off Mode SVC_32 > [<87f08a20>] (do_devinfo_subtree+0x90/0x130) from [<87f08a90>] (do_devinfo_subtree+0x100/0x130) > > [<87f3e070>] (unwind_backtrace+0x0/0x90) from [<87f28514>] (panic+0x28/0x3c) > [<87f28514>] (panic+0x28/0x3c) from [<87f3e4b8>] (do_exception+0x10/0x14) > [<87f3e4b8>] (do_exception+0x10/0x14) from [<87f3e544>] (do_data_abort+0x2c/0x38) > [<87f3e544>] (do_data_abort+0x2c/0x38) from [<87f3e268>] (data_abort+0x48/0x60) This patch fixes this by adding a device to its parents children list in register_device so that dev_add_child is no longer needed. This function is removed from the tree. Now callers of register_device have to clearly set the parent *before* registering a device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reported-by: Jan Lübbe <jlu@pengutronix.de>
| * | fs: move dev_add_child before device_registerSascha Hauer2012-12-121-5/+5
| | | | | | | | | | | | | | | | | | Biology tells us that the parent is known before the child is born. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM i.MX31 pcm037: remove unused definesSascha Hauer2012-12-121-12/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM i.MX31 pcm037: make board bootable againSascha Hauer2012-12-121-0/+2
| | | | | | | | | | | | | | | | | | | | | This enables the di in the IPU_CONF register. Otherwise the board refuses to start. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM i.MX31 pcm037: Force internal phySascha Hauer2012-12-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | The smsc911x has a bootstrap pin for detecting an external phy. Unfortunately this is pulled into the wrong direction on the pcm037 board, so force internal phy with platform data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM i.MX31: Fix gpio device namesSascha Hauer2012-12-121-3/+3
| |/ |/| | | | | | | | | Has to be imx31-gpio, not imx-gpio. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | esdctl: fix reset default bug on i.MX27/31Sascha Hauer2012-12-121-2/+23
|/ | | | | | | | | | The i.MX27/31 have the second chip select enabled by reset default. This can be considered as a hardware bug, because even boards which need this settings cannot work out of reset because of the missing initialization sequence. Detect this reset default setting and disable this chipselect then to be able to properly detect the SDRAM size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net phylib: Call phy_update_status when no link is presentSascha Hauer2012-12-081-1/+2
| | | | | | | | | | | | We call phy_update_status only once in 5 seconds. This makes sure we do not have great overhead when using ethernet devices. However, if phylib tells us the link is down anyway, there won't be ethernet transfers, so it doesn't hurt to call phy_update_status in this case. This makes sure we can use the ethernet device when the link comes up and do not have an additional 5 second penalty in this case. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net phylib: Clear BMCR_PDOWN bitSascha Hauer2012-12-081-0/+3
| | | | | | | | Some phys come up with this bit set, clear it so that these phys can work. This has been observed with a ASIX compatible USB ethernet adapter. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap3: Call common_resetSascha Hauer2012-12-081-0/+1
| | | | | | | omap3 has a soc specific reset function, make sure it calls common_reset so that the proper CPU flags are set. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM startup: Ensure CR_A flag is cleared on architectures >= ARMv6Sascha Hauer2012-12-081-0/+2
| | | | | | | We allow unaligned accesses on ARMv6 onwards, make sure the CR_A flag is cleared so that unaligned accesses do not trap. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'kconfig'Sascha Hauer2012-12-0848-149/+136
|\
| * Fix wrong Kconfig reference to ARCH_IMX31Alexander Shiyan2012-12-081-2/+2
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Remove bad Kconfig reference to MTD_NANDAlexander Shiyan2012-12-081-1/+0
| | | | | | | | | | | | | | Barebox not contain symbol MTD_NAND, so remove all references to it. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Remove bad Kconfig reference to HAS_PCIAlexander Shiyan2012-12-081-1/+0
| | | | | | | | | | | | | | Barebox not contain symbol HAS_PCI, so remove all references to it. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Remove bad Kconfig reference to DISK_DRIVEAlexander Shiyan2012-12-081-1/+0
| | | | | | | | | | | | | | Barebox not contain symbol DISK_DRIVE, so remove all references to it. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Remove bad Kconfig reference to HAVE_CLKAlexander Shiyan2012-12-081-1/+0
| | | | | | | | | | | | | | Barebox not contain symbol HAVE_CLK, so remove all references to it. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Remove bad Kconfig reference to HAVE_MMUAlexander Shiyan2012-12-081-1/+0
| | | | | | | | | | | | | | Barebox not contain symbol HAVE_MMU, so remove all references to it. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Remove bad Kconfig reference to HAS_CFIAlexander Shiyan2012-12-083-3/+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-0846-142/+138
| | | | | | | | | | | | | | | | | | 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>
* | let kbuild build foo/bar.o correctly张忠山2012-12-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | When obj-y has foo/bar.o, kbuild can't generate foo/bar.o according foo/bar.c. Fix this this patch based on linux kernel commit 521cb40b0c44418a4fd36dc633f575813d59a43d Signed-off-by: 张忠山 <zzs213@126.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/tftp'Sascha Hauer2012-12-071-24/+0
|\ \
| * | uimage: fix misunderstanding in common/uimage.cVicente Bergas2012-11-261-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The option of reading the file at once was discarded because the option of increasing the buffer size provided almost the same benefit. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/phylib'Sascha Hauer2012-12-0729-84/+422
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: drivers/net/phy/phy.c
| * | | net: phy: micrel: fix typo in driver nameJan Luebbe2012-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | phylib: add micrel supportJean-Christophe PLAGNIOL-VILLARD2012-11-204-0/+210
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | phylib: add fixup supportJean-Christophe PLAGNIOL-VILLARD2012-11-203-8/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if board need specific phy fixup they can register it and then the code will executed only if needed Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mdio_bus: fix matchJean-Christophe PLAGNIOL-VILLARD2012-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | on barebox we have the weird way the return 0 true on bus match Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | phylib: fix generic phy driver probeJean-Christophe PLAGNIOL-VILLARD2012-11-204-45/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the generic phy driver is used if no driver are found Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | driver: introduce device_probe to manully probe a deviceJean-Christophe PLAGNIOL-VILLARD2012-11-202-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will expect a driver to be specified This is needed by the phylib the probe the generic phy if not driver found Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | macb/ether: split flags for drivers and phylibJean-Christophe PLAGNIOL-VILLARD2012-11-1919-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as in the kernel use is_rmii flags for pinctrl phy_flags for phylib flags Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | phylib: introduction of forced 100MbpsJean-Christophe PLAGNIOL-VILLARD2012-11-192-1/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | phylib: export phy_id via paramJean-Christophe PLAGNIOL-VILLARD2012-11-191-0/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/omap'Sascha Hauer2012-12-074-13/+28
|\ \ \ \
| * | | | Define and use OMAP4 GPIO macros rather than magic constants.Robert P. J. Day2012-12-052-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add and use meaningful macro names for OMAP4 GPIO addresses, and add a comment to explain the 0x100 offset for OMAP4. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | OMAP3: Replace magic GPIO numbers in omap3_generic.c with macros.Robert P. J. Day2012-12-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on following lines in omap3-silicon.h: #define OMAP_L4_WKUP_BASE 0x48300000 #define OMAP_L4_PER_BASE 0x49000000 ... snip ... #define OMAP_GPIO1_BASE (OMAP_L4_WKUP_BASE + 0x10000) #define OMAP_GPIO2_BASE (OMAP_L4_PER_BASE + 0x50000) #define OMAP_GPIO3_BASE (OMAP_L4_PER_BASE + 0x52000) #define OMAP_GPIO4_BASE (OMAP_L4_PER_BASE + 0x54000) #define OMAP_GPIO5_BASE (OMAP_L4_PER_BASE + 0x56000) #define OMAP_GPIO6_BASE (OMAP_L4_PER_BASE + 0x58000) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | OMAP4: removed __packed__ annotation from pad_conf_entryEnrico Scholz2012-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | structure is used within barebox only and there is no need to pack it. As this option has a negative performance impact, remove it. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/mtd'Sascha Hauer2012-12-073-60/+6
|\ \ \ \ \
| * | | | | mtd core: call driver write function with complete bufferSascha Hauer2012-12-071-53/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtd->write is supposed to loop around pages internally, no need to do this in mtd_write. This fixes a huge write performance drop with the m25p80 driver when it was converted to a mtd driver recently. Since mtd->writesize is 1 for this driver mtd_write ended up doing single byte writes on the flash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | mtd nand: allow partial page writesSascha Hauer2012-12-071-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nand layer handles partial page writes just fine. If the start or end of the data is not page aligned, the nand layer will copy the data to a temporary page buffer. Remove the check which disallows partial page writes since this is what we want to do on barebox when for example an image is written to nand which is not padded to page size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | mtd oob: do not register oob device for devices without oobSascha Hauer2012-11-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>