summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* fix another brown paper bag bug introduced with compile time loglevelSascha Hauer2013-03-061-4/+1
| | | | | | | | | | __pr_printk is a define which uses a local variable 'ret'. This means that whenever someone does a pr_*("ret: %d\n", ret); ret will be 0. Fix this by writing this without a local variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/vexpress'Sascha Hauer2013-03-043-0/+90
|\
| * sp804: introduce amba_is_arm_sp804 to detect if the sp804 is present at the ↵Jean-Christophe PLAGNIOL-VILLARD2013-02-121-0/+30
| | | | | | | | | | | | | | address Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * amba: introduce amba_device_get_pid/cidJean-Christophe PLAGNIOL-VILLARD2013-02-121-0/+28
| | | | | | | | | | | | | | so we can use it on vexpress to detect the hardware mapping Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: add vexpress board supportJean-Christophe PLAGNIOL-VILLARD2013-02-121-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | detect the cpu model to dynamise the periphs mapping currently only tested on qemu but should work on real hardware Cortex-A9 if you use 1GiB of ram you can run the same barebox on Cortex-A15 or Cortex-A9 otherwise use vexpress_ca9_defconfig where the TEXT_BASE is at 0x63f00000 when we will add the relocation support this defconfig will be drop qemu/arm-softmmu/qemu-system-arm -M vexpress-a9 -m 1024 -smp 1 -kernel build/vexpress/barebox -pflash build/vexpress/flash0 -nographic Cortex-A15 qemu/arm-softmmu/qemu-system-arm -M vexpress-a15 -m 1024 -smp 1 -kernel build/vexpress/barebox -pflash build/vexpress/flash0 -nographic 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 Hauer2013-03-043-0/+14
|\ \
| * | USB i.MX: Add chipidea gadget supportSascha Hauer2013-02-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | This adds USB gadget support to the i.MX chipidea driver. Basically we have to add a register function to the fsl udc driver and call this from the chipidea driver if device mode is selected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB i.MX chipidea: implement post init supportSascha Hauer2013-02-141-0/+2
| | | | | | | | | | | | | | | | | | | | | Some controllers need an init hook after the USB controller is started, so implement the post init hook for i.MX. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB ehci: Add platform specific init callsSascha Hauer2013-02-141-0/+5
| | | | | | | | | | | | | | | | | | | | | Some USB cores need a platform specific init hook, add it to the ehci driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB chipidea i.MX: Fix PTS mask for HSICSascha Hauer2013-02-141-0/+1
| |/ | | | | | | | | | | bit25 is part of the PTS bits, so mask it out before rewriting it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mxs'Sascha Hauer2013-03-041-0/+2
|\ \
| * | env: add register_persistent_environmentEric Bénard2013-02-211-0/+2
| |/ | | | | | | | | | | | | | | - heavily copied from register_persistant_environment which was Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mtd'Sascha Hauer2013-03-042-4/+13
|\ \ | | | | | | | | | | | | | | | Conflicts: arch/arm/configs/eukrea_cpuimx27_defconfig drivers/mtd/core.c
| * | mtd: implement mtd_lock and mtd_unlockSascha Hauer2013-02-141-0/+2
| | | | | | | | | | | | | | | | | | Needed for NOR flashes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: Add mtd_* functionsSascha Hauer2013-02-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | The Kernel has mtd_read, mtd_write, mtd_erase and mtd_block_markbad. Add these functions to barebox aswell to make future mtd synchronizations with the kernel easier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | libmtd: rename functions from mtd_* to libmtd_*Sascha Hauer2013-02-141-4/+4
| |/ | | | | | | | | | | | | | | | | | | The kernel nowadays has mtd_read/write and other functions. In barebox we also have these functions, but with a different prototype, namely they correspond to the libmtd userspace functions. Rename these functions to libmtd_* to avoid name clashes with future mtd updates. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-03-0410-15/+54
|\ \
| * | usb: fix build for big-endian platformAntony Pavlov2013-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was introduced in commit 51885a7d7321c3e6395c36bc4fe8dde7e78cf562 Author: Sascha Hauer <s.hauer@pengutronix.de> Date: Thu Jun 28 09:56:23 2012 +0200 Change byte order detection mechanism to kernel style Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | log2: Fix declaration of __roundup_pow_of_twoMaxime Ripard2013-02-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The roundup_pow_of_two function is making use of __roundup_pow_of_two when the call to __builtin_constant_p fails, which is not implemented in barebox. Copied the code from Linux log2.h header. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | fs: add pread and pwrite functionsAlexander Aring2013-02-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add pread and pwrite functions. Split read and write functions to save some space. The functions pread and pwrite saves and sets the file position to a given offset and restore them afterwards. This also makes the nandtest command use these function which is necessary to not break compilation for the nandtest command. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | fs: fix return type of readAlexander Aring2013-02-181-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Make "dev_get_resource" publicly availableAlexander Shiyan2013-02-181-0/+4
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mfd: Using MFD_xx prefix for symbolsAlexander Shiyan2013-02-184-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | This patch provides rename MFD-related symbols for using MFD-prefix. Additionally, sorting mfd/Kconfig and mfd/Makefile records. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Add missing SZ_xx definesAlexander Shiyan2013-02-151-0/+12
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Introduce device_platform_driver() macroAlexander Shiyan2013-02-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | device_platform_driver() - Helper macro for drivers that don't do anything special in module registration. This eliminates a lot of boilerplate. Driver registration will called on device_initcall. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | getopt: change optstring to const char*Alexander Aring2013-02-111-1/+1
| |/ | | | | | | | | | | | | | | | | Change getopt optstring parameter type to const char *. Also change type to const char * of tmp variable which pointed to optstring. This will only handle readonly. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/highbank'Sascha Hauer2013-03-041-0/+12
|\ \
| * | of: add do_fixup_by_compatible with u32 and string versionJean-Christophe PLAGNIOL-VILLARD2013-03-031-0/+6
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: make of_add_memory available for other boardJean-Christophe PLAGNIOL-VILLARD2013-02-141-0/+6
| |/ | | | | | | | | | | | | | | | | | | | | so when the first stage booloader of firmware provide the dtb we can use it to probe the memory also allow to print what we probe Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/gpt'Sascha Hauer2013-03-043-0/+561
|\ \
| * | disk: partitions: add EFI GUID Partition TableJean-Christophe PLAGNIOL-VILLARD2013-02-181-0/+547
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | form linux 3.8 so you can have part by num or name not by GUID as this is a non human reading name `---- ffe08000.sata `---- 0x00000000-0x3fffffff: /dev/ata0 `---- 0x00100000-0x063fffff: /dev/ata0.0 `---- 0x00100000-0x063fffff: /dev/ata0.boot `---- 0x06400000-0x3fefffff: /dev/ata0.1 `---- 0x06400000-0x3fefffff: /dev/ata0.linux Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | filetype: add GPT supportJean-Christophe PLAGNIOL-VILLARD2013-02-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | GPT need to be check before MBR Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | linux/types: import __aligned_x64 from the kernelJean-Christophe PLAGNIOL-VILLARD2013-02-161-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | need it by upcoming EFI GPT support Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/dt'Sascha Hauer2013-03-041-0/+8
|\ \ \
| * | | DeviceTree: add support for initrd in the DTVicente Bergas2013-02-121-0/+8
| | |/ | |/| | | | | | | | | | | | | | | | Add the initrd start and end address to the DT, code comes from u-boot. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | phy: fix force modeJean-Christophe PLAGNIOL-VILLARD2013-02-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | do not try to read the status in force mode the link is up Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | mtd: nand: do not write empty pagesSascha Hauer2013-02-211-0/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not write pages which only contain 0xff. UBI expects pages which seem empty to be writable. This got lost with: | commit 3139c3e9a61e70846be8c4f95bb9cffd4465d88a | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Thu Nov 29 11:16:40 2012 +0100 | | mtd core: call driver write function with complete buffer | | 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. Introduce mtd_all_ff as a global function since UBI currently has its own implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fix brown paper bag bug introduced with compile time loglevelSascha Hauer2013-02-151-4/+1
|/ | | | | | | | | | __dev_printf is a define which uses a local variable 'ret'. This means that whenever someone does a dev_*(dev, "ret: %d\n", ret); ret will be 0. Fix this by writing this without a local variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* generic memory layout: fix deps for [MALLOC|STACK]_BASESascha Hauer2013-02-041-4/+2
| | | | | | | | Defining STACK_BASE and MALLOC_BASE only makes sense when either CONFIG_MEMORY_LAYOUT_DEFAULT or CONFIG_MEMORY_LAYOUT_FIXED is set, so use separate #ifdefs instead ot #if/#else Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pbl'Sascha Hauer2013-02-041-0/+15
|\
| * pbl: factorise decompressorJean-Christophe PLAGNIOL-VILLARD2013-01-301-0/+15
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/oftree'Sascha Hauer2013-02-042-3/+18
|\ \ | | | | | | | | | | | | Conflicts: drivers/of/base.c
| * | Add write_file functionSascha Hauer2013-01-191-0/+5
| | | | | | | | | | | | | | | | | | | | | write_file() will write a buffer to a file. The file is created if necessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: rename new_device_node to of_new_node and export itSascha Hauer2013-01-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | of_new_node now takes the parent node and the name as argument and creates a new node. This simplifies the caller and also makes the function useful for others, so export it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: add of_delete_propertySascha Hauer2013-01-191-0/+3
| | | | | | | | | | | | | | | | | | | | | This adds a function to delete a property from the currently loaded devicetree. Also export new_property as of_new_property. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: remove unused barebox_fdtSascha Hauer2013-01-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | barebox_fdt should once become the pointer to the barebox internal devicetree. Since barebox has its own internal devicetree format this was never used. remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: Add support for converting the unflattened tree back to a dtbSascha Hauer2013-01-191-0/+6
| | | | | | | | | | | | | | | | | | | | | We already have support for unflattening the devicetree. This patch adds support for converting it back to a dtb. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: rename of_parse_dtb to of_unflatten_dtbSascha Hauer2013-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | The process of unflatten the device tree is known from the kernel, so rename the function, because that's what it does. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: of_free fixesSascha Hauer2013-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add missing prototype for of_free() - When root node is freed set root_node to NULL - (re)scan aliases after freeing a node. This is necessary because the freed node may be an alias or point to an alias Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: make of_get_fixed_tree more universally usableSascha Hauer2013-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the bootm code uses of_fix_tree to apply the fixups to the devicetree given on the command line. This function assumes that there is enough space for the fixups available. Also on ARM we have to make sure the tree does not cross 1Mib boundaries. This patch moves the space allocation and alignment ensurance to of_get_fixed_tree and uses it in bootm. This is the first step for making of_get_fixed_tree the single point of devicetree handling in barebox. of_get_fixed_tree now takes an argument of the input fdt. If it is given, this one is used, otherwise an internal oftree is used which will be created in subsequent patches. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>