summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* environment: Add function to load envfs from bufferSascha Hauer2014-02-201-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* environment: constify argumentsSascha Hauer2014-02-201-2/+2
| | | | | | | The directory arguments to envfs_load and envfs_save can be const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: Add detection for barebox environmentSascha Hauer2014-02-201-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Fix version handlingSascha Hauer2014-02-141-9/+9
| | | | | | | | | | | | Currently the version defines reflect the digits in the version number. MMC_VERSION_4_41 is defined as 0x441 and MMC_VERSION_4_5 is defined as 0x405. This results in MMC_VERSION_4_5 < MMC_VERSION_4_41 becoming true which was surely not intended. Fix this by redefining the versions as 0x<major><minor><micro>. This makes the string generation more complicated but makes versions comparable again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tegra'Sascha Hauer2014-02-033-0/+230
|\
| * dt-bindings: add Tegra CARLucas Stach2014-01-291-0/+158
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * dt-bindings: add Tegra GPIOLucas Stach2014-01-291-0/+50
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * dt-bindings: add ARM GICLucas Stach2014-01-292-0/+41
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/pxa'Sascha Hauer2014-02-031-2/+8
|\ \
| * | reset_source: add reset_source_getSascha Hauer2014-01-291-0/+6
| | | | | | | | | | | | | | | | | | To get reset_source from C code, not only from shell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | reset_source: rename set_reset_source to reset_source_setSascha Hauer2014-01-291-2/+2
| |/ | | | | | | | | | | | | To get all reset source related functions into the same function namespace. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2014-02-033-5/+28
|\ \
| * | env: make path arguments to envfs_load/save constSascha Hauer2014-01-271-2/+2
| | | | | | | | | | | | | | | | | | | | | These functions have no business changing the path argument, so make the argument const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: Add static inline wrapper for phy_register_fixup_for_uidSascha Hauer2014-01-271-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | Boards register a fixup for a phy without checking if phy support is enabled. To fix compilation without phy support add a static inline wrapper for phy_register_fixup_for_uid. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | environment: Use accessor functions for default environment pathSascha Hauer2014-01-271-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | default_environment_path only exists when CONFIG_ENV_HANDLING is enabled. Boards would have to #ifdef this if they wanted to use default_environment_path. Use accessor functions instead which can be ifdeffed on a single place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | console: Set Linux console parameter automaticallySascha Hauer2014-01-221-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux specifies the linux,stdout-path property in the /chosen node in the devicetree. Unfortunately this is ignored in most cases. For cases in which barebox uses this property for its own use we translate this into a Linux boot arg with: - the console name provided by the serial driver - the the instance from the 'serial' alias - the baudrate from the actual baudrate. So with this it's for devicetee enabled boards no longer necessary to manually assign a console= parameter. Should a user not want to use the automatically assigned parameter it should do: global.linux.bootargs.console= in the environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mci'Sascha Hauer2014-02-031-8/+16
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/tqma53/board.c
| * | mci: add DSR supportMarkus Niebel2014-01-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The eMMC and the SD-Card specifications describe the optional SET_DSR command. During measurements at our lab we found that some cards implementing this feature having really strong driver strengts per default. This can lead to voltage peaks above the specification of the host on signal edges for data sent from a card to the host. Since availability of a given card type may be shorter than the time a certain hardware will be produced it is useful to have support for this command (Alternative would be changing termination resistors and adapting the driver strength of the host to the used card.) Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: Support the correct version for eMMCMarkus Niebel2014-01-101-8/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eMMC is available up to version 4.5 but the correct version is not decoded. Change version definitions to support more minor verions, add missing versions and parse the minor versions from ext_csd. After this, card detection code and devinfo reports correct versions. Handling is inspired by u-boot code. Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2014-02-033-0/+747
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/dmo-mx6-realq7/lowlevel.c
| * | dt-bindings: import input.hLucas Stach2014-01-231-0/+525
| | | | | | | | | | | | | | | | | | | | | Straight copy from the Linux kernel. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX51: Sync DT files with kernelAlexander Shiyan2014-01-102-0/+222
| |/ | | | | | | | | | | | | | | This patch includes update i.MX51 template and porting some barebox DTS files to use new template. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/clps711x'Sascha Hauer2014-02-031-0/+8
|\ \
| * | mfd: syscon: Introduce syscon_base_lookup_by_phandle() functionAlexander Shiyan2014-01-241-0/+8
| |/ | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | bootm: introduce bootm_load_devicetree helperSascha Hauer2014-01-141-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | bootm: introduce bootm_load_initrd helperSascha Hauer2014-01-141-0/+1
| | | | | | | | | | | | | | Make the bootm handlers simpler by factoring out an initrd load function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | bootm: introduce bootm_load_os helperSascha Hauer2014-01-101-0/+2
| | | | | | | | | | | | | | | | | | | | The common bootm code used to load uImage contents to SDRAM before calling into the handlers if possible. This makes the handlers complicated since they have to handle many cases. Instead, introduce a helper to load the os after the handlers have figured out a good load address. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | list: add list_first_entry_or_null()Sascha Hauer2014-01-101-0/+11
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/video'Sascha Hauer2014-01-071-0/+1
|\
| * video: Add screen_size fieldSascha Hauer2013-12-201-0/+1
| | | | | | | | | | | | | | | | | | barebox does not need the screen size directly, but we pass the framebuffer to Linux via simnplefb it is desirable to pass the full size of the framebuffer. Default to calculated values from the screen resolution. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/usb-chipidea'Sascha Hauer2014-01-071-1/+0
|\ \
| * | usb: chipidea i.MX: remove unused pdata->init hookSascha Hauer2014-01-071-1/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/poller'Sascha Hauer2014-01-071-1/+13
|\ \ \
| * | | poller: Allow to call functions asynchronouslySascha Hauer2013-12-181-1/+13
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Sometimes execution of a function has to be delayed, for example when a backlight can only be turned on when the picture has stabilized. To help in such situations add a convenience function around the poller stuff to call a function after a delay. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2014-01-071-1/+0
|\ \ \
| * | | lib: fix whitespace, drop blank lines at EOFAntony Pavlov2014-01-061-1/+0
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/miiphy'Sascha Hauer2014-01-071-0/+12
|\ \ \ \ | |_|_|/ |/| | |
| * | | miitool: change behaviour closer to linux' mii-toolAntony Pavlov2014-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | miitool without arguments will try to show status for all phys. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: implement detect callback for miibus devicesSascha Hauer2013-12-111-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: Track mii buses on a listSascha Hauer2013-12-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | To be able to iterate over registered mii buses Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: track registered state of a phy deviceSascha Hauer2013-12-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this phy_device_connect only registers a phy device if it wasn't registered already. This allows us to register phy devices outside of ethernet drivers. phy_device_connect will now pick up an already registered phy given that it's not attached to another ethernet device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: bail out early in phy_device_connectSascha Hauer2013-12-111-1/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | If an ethernet device already has a phy in phy_device_connect all we have to do is to start autonegotiation. Do this early and bail out so that for the rest of the code it's clear that we have to search for a phy device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / / mtd: Add subpagesize to mtd_info_userSascha Hauer2013-12-201-0/+1
|/ / | | | | | | | | | | | | | | | | ubiformat needs the subpagesize to work correctly. The kernel uses sysfs to pass the subpagesize, but in barebox we have the possibility to extend struct mtd_info_user. Add a corresponding field and use it in ubiformat. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap-drivers'Sascha Hauer2013-12-064-0/+24
|\ \
| * | device: Add functions to add resourcesSascha Hauer2013-11-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | We currently have functions to add a device based on function parameters. This adds the corresponding functions to add resources to a device without registering the device itself. This is useful to manipulate devices before registering them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | string: Add (x)memdupSascha Hauer2013-11-272-0/+3
| | | | | | | | | | | | | | | | | | It's a common task to duplicate some memory. Add (x)memdup functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: Add functions to select pinctrl from device_nodeSascha Hauer2013-11-271-0/+12
| |/ | | | | | | | | | | | | | | | | | | | | | | Instead of requiring a device pointer, add a functions to select the pinctrl state based on a device node. The AM33xx cpsw devicetree description has several subdevices with pinctrl information attached to them. In barebox we do not handle the subdevices as distinct devices, so the pinctrl is never configured correctly and the mdio bus subdevice stops working. This patch makes it possible to configure the pinctrl without having a device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap-devicetree-prepare'Sascha Hauer2013-12-063-0/+110
|\ \
| * | dt-bindings: Add omap/am33xx pinctrl header fileSascha Hauer2013-11-222-0/+95
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | dt-bindings: Add gpio header fileSascha Hauer2013-11-221-0/+15
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>