summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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/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>
* | Merge branch 'for-next/misc'Sascha Hauer2013-12-063-1/+4
|\ \ | | | | | | | | | | | | Conflicts: scripts/Makefile
| * | scripts: bareboxcrc32 as host and target userspacetoolMichael Grzeschik2013-12-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds the crc32 command to be build as host and optionally as target tool. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: mxs: support overwriting the device name via platform dataUwe Kleine-König2013-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of the bootloader specification depends on the hardware name and the name of the device in /dev to match. As the default hardware name is mciX and the device name is diskY the bootloader spec cannot be used as is. This patch implements a way to overwrite the device name similar to what is possible for the imx-esdhc driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | treewide: Add missing includesSascha Hauer2013-11-081-0/+1
| |/ | | | | | | | | | | | | | | A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mips'Sascha Hauer2013-12-061-0/+15
|\ \
| * | MIPS: add asm-offsets.h generationAntony Pavlov2013-12-041-0/+15
| |/ | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2013-12-061-3/+3
|\ \
| * | of: gpio: Add Kconfig variable to depend onSascha Hauer2013-11-251-3/+3
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/gpio'Sascha Hauer2013-12-061-0/+43
|\ \
| * | gpiolib: import gpio_request_array() from linux 3.7Antony Pavlov2013-11-221-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also import related functions gpio_request_one() and gpio_free_array(). This commit imports code from linux 3.7 as the more recent linux kernel versions use gpiolib descriptors, see this commit for details: commit 372e722ea4dd4ca11c3d04845e11cbc15f32144c Author: Alexandre Courbot <acourbot@nvidia.com> Date: Sun Feb 3 01:29:29 2013 +0900 gpiolib: use descriptors internally Make sure gpiolib works internally with descriptors and (chip, offset) pairs instead of using the global integer namespace. This prepares the ground for the removal of the global gpio_desc[] array and the introduction of the descriptor-based GPIO API. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpio: unify gpio direction macros names with Linux kernelAntony Pavlov2013-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | See linux.git/include/linux/gpio.h and linux.git/Documentation/gpio.txt for details. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpiolib: add get_direction callbackSebastian Hesselbarth2013-11-111-0/+4
| |/ | | | | | | | | | | | | | | | | At least for debugging purposes it is helpful to determine the current direction for a given GPIO. Add a callback to gpiochip, to allow to get it. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: add of_clk_init and CLK_OF_DECLARE macroSebastian Hesselbarth2013-11-111-0/+14
| | | | | | | | | | | | | | | | | | | | This add barebox versions of of_clk_init for parsing and registering clock providers from DT. Also, a macro CLK_OF_DECLARE is added, that allows to put init callbacks into its own section that can be linked in the binary. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | asm-generic: add macro for BAREBOX_CLK_TABLESebastian Hesselbarth2013-11-111-1/+8
|/ | | | | | | | This adds a macro for linker scripts to place DT clock provider table. While at it, also add ALIGN(8) to DTB macro and fix a whitespace issue. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/spi'Sascha Hauer2013-11-071-2/+0
|\
| * spi: Call spi_of_register_slaves from coreSascha Hauer2013-10-311-2/+0
| | | | | | | | | | | | Makes individual handling of OF spi slaves unnecessary in the bus drivers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rpi'Sascha Hauer2013-11-073-1/+20
|\ \
| * | video: set up the kernel's simple framebuffer driverAndre Heider2013-11-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add support to configure the active framebuffer for the kernel through device tree. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: Add a context pointer to fixup functionsSascha Hauer2013-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | 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>
| * | fb: add a line_length value to struct fb_infoAndre Heider2013-11-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for framebuffers with noncontiguous horizontal lines. Video drivers can set this value if the hardware requires it. In case a driver does not set it, the current value of xres * (bpp / 8) is used instead. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | common: add a macro to align an array on the stackAndre Heider2013-10-221-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The macro can be used for temporary stack buffers which need to meet a minimum alignment requirement. This will be used by bcm2835 mailbox users, where all buffers need to be aligned. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/of'Sascha Hauer2013-11-071-1/+0
|\ \ \
| * | | of: simplify phandle lookupSascha Hauer2013-10-221-1/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Instead of populating an extra list containing all phandles just iterate over the whole tree. This is done as preparation for more dynamic devicetrees where parts are loaded at runtime. Here we don't want to keep the list of phandles in sync. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/net'Sascha Hauer2013-11-071-0/+1
|\ \ \
| * | | net: phy: Add micrel KSZ8031Markus Pargmann2013-10-261-0/+1
| |/ / | | | | | | | | | | | | | | | | | | KSZ8031 is similar to KSZ8021. It can use the same functions. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mtd'Sascha Hauer2013-11-071-1/+1
|\ \ \