summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* exitcall: Add exitcall infrastructureHerve Codina2015-07-132-0/+24
| | | | | | | | exitcall infrastructure is based on initcall infrastructure. It allows to have and use exit call hooks on barebox shutdown. Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/blspec'Sascha Hauer2015-07-064-0/+27
|\
| * fs: ubifs: Implement Linux rootargSascha Hauer2015-06-181-0/+1
| | | | | | | | | | | | | | | | Add the parameter to boot from ubifs fileystems. This assumes that there will be only one UBI device registered in the kernel, otherwise there is no way to predict the ubi number. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * fs: Add device parameter for Linux root= optionSascha Hauer2015-06-181-0/+4
| | | | | | | | | | | | | | | | | | | | When registering a filesystem device add a device parameter suitable for the Linux root= option to boot from exactly this filesystem. Currently the fs layer sets this parameter to the root=PARTUUID= mechanism if a partuuid is available. Other filesystems like NFS and UBIFS which do not have a PARTUUID can overwrite this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cdev: Add partuuid string to struct cdevSascha Hauer2015-06-181-0/+3
| | | | | | | | | | | | | | | | This adds the partuuid string to struct cdev in order to have this available for constructing a suitable Linux root=PARTUUID= option for booting Linux. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add globalvar_add_simple_string functionSascha Hauer2015-06-181-0/+19
| | | | | | | | | | | | | | | | This adds a globalvar string function to pass a pointer to a string. With this we can directly access the string to get the variable and don't have to getenv() the string first. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/state'Sascha Hauer2015-07-031-0/+1
|\ \
| * | xfuncs: import xstrndup() from busyboxMarc Kleine-Budde2015-06-181-0/+1
| |/ | | | | | | | | | | | | | | This function is needed for the fixed length string feature in the state framework. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/pwm'Sascha Hauer2015-07-032-0/+22
|\ \
| * | PWM: Allow multiple PWMs per device nodeSascha Hauer2015-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | Matching a device node is enough since a device node may have multiple PWMs. Check for a id aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: Add backlight supportSascha Hauer2015-06-121-0/+20
| | | | | | | | | | | | | | | | | | | | | This adds a small backlight layer. It provides a backlight device on which the brightness parameter can be used to adjust the brightness. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/omap'Sascha Hauer2015-07-031-0/+2
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/beagle/board.c
| * | | of: export of_platform_device_createSascha Hauer2015-07-021-0/+2
| | |/ | |/| | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2015-07-034-4/+17
|\ \ \
| * | | treewide: replace __inline__ with inlineSascha Hauer2015-07-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | inline is preferred over __inline__ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: Make devname argument to add_mtd_device constSascha Hauer2015-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | add_mtd_device duplicates the string where necessary, so make it const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: eth: Do not rely on CONFIG_PARAMETER to be enabledSascha Hauer2015-06-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | register_preset_mac_address only works when CONFIG_PARAMETER is enabled because otherwise dev_set_param is a no-op. Add a function to set the MAC address explicitly without the need of CONFIG_PARAMETER and use it where appropriate. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: Make set_ethaddr argument constSascha Hauer2015-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The set_ethaddr callback should not modify the MAC address passed to it, so make it const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | crypto: digest: provide static inline no-ops if digest is disabledMarc Kleine-Budde2015-06-171-0/+11
| |/ / | | | | | | | | | | | | | | | Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx-bbu-nand-fcb'Sascha Hauer2015-07-032-0/+15
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: common/Kconfig
| * | | imx-bbu-nand-fcb: make available for i.MX28 aswellSascha Hauer2015-06-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code can be used with slight modifications on i.MX28 aswell. Add a i.MX28 registration function and move the differences to function callbacks. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX6: bbu nand: Move to common placeSascha Hauer2015-06-121-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | The code can be used on i.MX28 aswell, so move it to a common place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | filetype: Add filetype for MXS bootstreamSascha Hauer2015-06-121-0/+1
| | |/ | |/| | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/cfi-flash'Sascha Hauer2015-07-031-0/+34
|\ \ \
| * | | mtd: Add mtd concat supportSascha Hauer2015-06-231-0/+34
| | |/ | |/| | | | | | | | | | | | | | | | | | | The mtd concat layer supports concatenating several MTD devices into a single one. This is nearly as-is from the corresponding Kernel code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/blspec'Sascha Hauer2015-07-031-0/+1
|\ \ \
| * | | blspec: Add missing prototype for blspec_scan_deviceSascha Hauer2015-06-171-0/+1
| |/ / | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / / bbu: Add a standard file-to-device-copy handlerSascha Hauer2015-07-011-0/+9
|/ / | | | | | | | | | | | | | | The most standard update handler will simply copy a file to a device. This can be shared across several users, so add a standard handler for this operation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: of: fix clk_of_table generationSascha Hauer2015-06-112-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to collect all sections beginning with __clk_of_table_ in a single section in the linker using KEEP(*(.__clk_of_table_*)). That the sentinel entry ended up as the last entry was pure luck, but not always the case. Instead of putting all entries in different sections we now put all entries in the same section. Only the sentinel entry gets its own section and is collected by the linker separately. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reported-by: Andreas Willig <andreas.willig@rafi.de> Tested-by: Andreas Willig <andreas.willig@rafi.de>
* | Merge branch 'for-next/state'Sascha Hauer2015-06-093-5/+7
|\ \
| * | habv4: habv4_get_status(): fix warning with no-op static inline functionMarc Kleine-Budde2015-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the following warning: CC arch/arm/boards/foo/board.o In file included from arch/arm/boards/foo/board.c:22:0: include/habv4.h:24:19: warning: function declaration isn't a prototype [-Wstrict-prototypes] static inline int habv4_get_status() ^ Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: add a function to remove an of_fixupUwe Kleine-König2015-05-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This function is needed when a device that already registered a fixup in the probe routine fails later to probe completely. Without unregistering the fixup the function might later be called with invalid data. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | state: backend: support phandle and of_path referencesMarc Kleine-Budde2015-05-151-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch improves the backend property, it can be either a phandle or a of_path. During probe() of the state driver the backend property is dereferenced and the resulting of_path is saved in the state context. In a later patch it will be used to generate a phandle reference to the backend during DT fixup. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | state: make state_release() non staticMarc Kleine-Budde2015-05-151-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | state: state_new_from_fdt(): remove unused functionMarc Kleine-Budde2015-05-151-1/+0
| | | | | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/spi-nor'Sascha Hauer2015-06-093-0/+220
|\ \ \
| * | | mtd: spi-nor: add cadence quadspi driverSteffen Trumtrar2015-05-291-0/+9
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: spi-nor: add SPI-NOR frameworkSteffen Trumtrar2015-05-292-0/+211
| | |/ | |/| | | | | | | | | | | | | | | | | | | Import the SPI-NOR framework from linux kernel v3.19. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/posix_types'Sascha Hauer2015-06-094-24/+98
|\ \ \
| * | | remove unused nlink_tSascha Hauer2015-06-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nlink_t type is unused in barebox, so drop it. This prevents compile failures when architectures use the generic posix_types.h which no longer has __kernel_nlink_t defined. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | introduce generic posix_types.hSascha Hauer2015-06-031-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most types defined in posix_types.h are architecture independent, so instead of repeating this for each architecture add a generic file that can be used by architecture code. To use it an architecture must define BITS_PER_LONG properly in asm/bitsperlong.h. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | drop __BITS_PER_LONGSascha Hauer2015-05-222-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kernel has __BITS_PER_LONG and BITS_PER_LONG. The formaer is needed for architectures which support 32bit userspace on a 64bit kernel. This is not relevant for barebox, so drop __BITS_PER_LONG and use BITS_PER_LONG only. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | dma: Use generic place for dma_addr_t typedefSascha Hauer2015-05-221-0/+7
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Instead of letting all architectures define their own dma_addr_t use a common place in include/linux/types.h and use a Kconfig symbol that architectures can select to define the width of dma_addr_t. The same is done in the Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2015-06-096-15/+28
|\ \ \
| * | | crc16: Make buffer argument constSascha Hauer2015-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The buffer is not modified by crc16, so make the argument const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | crypto: digest: mark signature argument as constMarc Kleine-Budde2015-05-261-5/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Abolish cpu_read* and cpu_write* accessorsMasahiro Yamada2015-05-201-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 2e6a88f2101d (add cpu native ordered io accessors) introduced these macros and then commit be57f20cdd7d (Fix big endian MMIO primitives) figured out they are equivalent to __raw_{read,write}*. They turned out unnecessary after all. Anyway, most source files use __raw_read* and __raw_write*. Let's replace a few remaining references and abolish them. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | startup: introduce postenvironment_initcallSascha Hauer2015-05-152-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To allow init code that depends on the environment being loaded. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | watchdog: add static inline no-ops if WD is disabledMarc Kleine-Budde2015-05-151-0/+17
| |/ / | | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mem64'Sascha Hauer2015-06-091-1/+2
|\ \ \