summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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/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
|\ \ \
| * | | mtd: Pass device_id to add_mtd_deviceSascha Hauer2013-10-291-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Right now we do not support persistent names for mtd devices. The base name can be passed to add_mtd_device, but this is always appended with a dynamic number. With this patch add_mtd_device takes a device_id argument which can be used to create a mtd device with an exact name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mci'Sascha Hauer2013-11-072-0/+43
|\ \ \
| * | | add: mmci driversJean-Christophe PLAGNIOL-VILLARD2013-10-221-0/+42
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mci: add max_req_size supportJean-Christophe PLAGNIOL-VILLARD2013-10-221-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | Some controller such as the ARM AMBA pl181 can not handle more than 16bits data length request. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | blspec: make cdev optionalSascha Hauer2013-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | the cdev for a given directory can be determined by get_cdev_by_mountpath(). Use this function and remove the cdev argument from blspec_scan_directory(). Also, export the function to make code possible which boots the bootloader spec entries found in directories. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | fs: Add function to get cdev by mountpathSascha Hauer2013-11-051-0/+2
| | | | | | | | | | | | | | | | | | This is useful to know for the bootloader spec implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | blspec: Let scan functions return the number of entries foundSascha Hauer2013-11-051-1/+1
| | | | | | | | | | | | | | | | | | So that callers can detect whether entries are found or not. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | blspec: rename _hwdevice functions to _devicenameSascha Hauer2013-11-051-2/+2
| | | | | | | | | | | | | | | | | | | | | Since it's not necessarily the hardware device this seems to be a more appropriate name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | blspec: Fix crash with menu disabledSascha Hauer2013-10-301-1/+2
|/ / | | | | | | | | | | | | blspec->menu is only valid when menu support is enabled. Check for it before dereferencing the pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / fs: bpkfs: add missing includeJean-Christophe PLAGNIOL-VILLARD2013-10-211-0/+68
|/ | | | | | | was not include when applying bpkfs patch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Implement bootloader spec support for bareboxSascha Hauer2013-10-141-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Bootloader Specification describes a way how kernels can be installed on devices and how they can be started by the bootloader. The bootloader spec is currently supported by (x86) gummiboot and by systemd which provides a kernel-install script. With the bootloader spec it's possible for the Operating system to install a new kernel without knowing about the bootloader and for the bootloader it's possible to discover and start Operating Systems on a media without being configured. For more details about the spec see: http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/ This patch adds barebox support for the spec. It enhances the 'boot' command so that not only boot script names can be given, but also devices containing bootloader spec entries. With this it's possible to call the 'boot' command like: 'boot sd emmc net'. It would then first look for bootloader spec entries on the (removable) sd card, then, is nothing is found, on the internal emmc and if still unsuccessful would call the 'net' bootscript. The bootloader Spec currently doesn't specify which entry should be default if multiple entries are found on a single device. Therefore barebox currently has two extensions of the spec. The $BOOT diretory can contain a file named 'default'. If present, the content of the file is treated as a filename under $BOOT/loader/entries/ which is used as default. Similarly if a file named 'once' is present, the entry is started once and the file is removed afterwards. This is useful for testing if a newly installed kernel works before making it the default. As on ARM and other Architectures a devicetree has to be specified for the kernel, the 'devicetree' property is used to specify a devicetree. Like 'kernel' and 'initrd' this also contains a pth relative to $BOOT. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cdev: store dos partition type in struct cdevSascha Hauer2013-10-141-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add function to read single line filesSascha Hauer2013-10-141-0/+2
| | | | | | | Often small files are used to store the value od a variable. This adds a function to easily read such a variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/socfpga'Sascha Hauer2013-10-071-0/+1
|\ | | | | | | | | Conflicts: scripts/Makefile
| * bootstrap: Add missing includeSascha Hauer2013-09-261-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * clk: of: introduce of_clk_src_simple_getSascha Hauer2013-09-231-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rs485'Sascha Hauer2013-10-072-0/+9
|\ \ | | | | | | | | | | | | Conflicts: common/console_common.c
| * | console: introduce new callback set_modeJean-Christophe PLAGNIOL-VILLARD2013-09-241-0/+6
| | | | | | | | | | | | | | | | | | | | | so we can set the port in rs485 mode Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | console: introduce console_get_by_devJean-Christophe PLAGNIOL-VILLARD2013-09-241-0/+2
| | | | | | | | | | | | | | | | | | | | | so we can get console by it's device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | shutdown: add board call backJean-Christophe PLAGNIOL-VILLARD2013-09-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | so if we need to do something switch in the board we can fill this function pointer (as example on Animeo IP shutdown some rs232 & rs485) 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 Hauer2013-10-071-0/+1
|\ \ \
| * | | i2c-omap: Update driverJan Weitzel2013-09-271-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The driver didn't work well with at24 driver. NACKS are lost. Errors are lost in isr due to the local variable err. Also we didn't wait for bus free in omap_i2c_xfer_msg. Fix issues and get other improvements from linux kernel Tested on OMAP4 and AM335x Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/net'Sascha Hauer2013-10-073-0/+57
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/animeo_ip/init.c
| * | | introduce helper to generate mac address with OUIJean-Christophe PLAGNIOL-VILLARD2013-09-221-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | use random mac address with fixed OUI provided Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | smc91111: add fixup for qemu phy supportJean-Christophe PLAGNIOL-VILLARD2013-09-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as today qemu does not support phy, it will return always 0x0 to any read on the mii bus. So the phy_id is 0 and the link is donw. To have the norwork running on versatilpb & other qenu board for the link up at 100Mbps. Only enable if qemu_fixup is set. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: designware: Add decvicetree supportSascha Hauer2013-09-091-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mount'Sascha Hauer2013-10-072-1/+12
|\ \ \ \
| * | | | fs: add cdev mount helpersSascha Hauer2013-09-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce helpers to iterate over cdevs and mount them to a known path. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | block: Collect block devices on listSascha Hauer2013-09-301-0/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | mount: implement -v option to print available filesystemsSascha Hauer2013-09-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's useful to know which filesystems a barebox binary supports. Add a -v option to the mount command to find it out. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: remove unused field 'name' from struct fs_driver_dSascha Hauer2013-09-291-1/+0
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: cleanup backingstore handlingSascha Hauer2013-09-291-0/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All filesystem drivers which need a backingstore device do the same ignoring of '/dev/' in the backingstore followed by a cdev_open. Add a helper function for it and let the core handle the cdev. As a side effect this makes sure that fsdev->cdev is also set when a device is mounted without the leading '/dev/' which was previously ignored by the mount code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/misc'Sascha Hauer2013-10-072-0/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: commands/Makefile
| * | | | usb: make usb devices children of the corresponding hostSascha Hauer2013-09-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to find usb devices in the hardware tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | process_escape_sequence: add support to \$?Jean-Christophe PLAGNIOL-VILLARD2013-09-181-0/+12
| | |/ / | |/| | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mci'Sascha Hauer2013-10-071-0/+9
|\ \ \ \ | | |_|/ | |/| |
| * | | mci: add designware mmc controller supportSascha Hauer2013-09-111-0/+9
| |/ / | | | | | | | | | | | | | | | Based on the U-Boot driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>