summaryrefslogtreecommitdiff
path: root/include/linux/barebox-wrapper.h
Commit message (Collapse)AuthorAgeFilesLines
* net: dsa: add Realtek (rtl8365mb/rtl8366rb) switch supportAhmad Fatoum2023-01-231-0/+1
| | | | | | | | | This imports the Linux v6.1 state of the driver into barebox. This has been tested with the RTL8365MB in (bitbanged) SMI mode. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230116134501.2006391-10-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* barebox-wrapper: define MODULE_DEVICE_TABLEAhmad Fatoum2023-01-101-0/+1
| | | | | | | | | We may elect to act on this in the future, but for now, define the macro, so it can be left in when porting kernel code. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230109151152.2052493-8-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: add dedicated header for printf/printkAhmad Fatoum2021-11-011-14/+1
| | | | | | | | | | | | Including <stdio.h> for printf is a bit problematic, because it pulls in other headers for <console.h>, which includes quite a few more headers as well. To make it easier to share code between barebox and host tools make <printk.h> the new minimal header for printf and move the extra logging stuff into <linux/printk.h>. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211030141739.2207431-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: include: remove unused <asm/processor.h>Ahmad Fatoum2020-04-151-0/+2
| | | | | | | | | | | | | File has been in source tree for 17 years and is unused. Drop it. The only definition we might want out of the file is cpu_relax(), which we already open code as barrier() with a comment in a couple of places. Move the definition to <linux/barebox-wrapper.h> and drop the file altogether. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add linux/slab.hSascha Hauer2018-10-081-12/+1
| | | | | | | | | Move stuff we already have in include/linux/barebox-wrapper.h that really belongs to include/linux/slab.h to there. Also add kmem_cache_* functions. UBIFS uses them in there own implementation, so we have to remove it there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* barebox-wrapper: Add kcalloc and __vmallocAlexander Stein2016-04-081-0/+2
| | | | | | | They call xzalloc and malloc respectively. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* barebox-wrapper: Implement kfree and vfree as static inline functionsAlexander Stein2016-04-081-2/+9
| | | | | | | | | If kfree/vfree is called where free is a already variable name, code will not compile. Also both take a const* in Linux kernel code. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Move GFP_NOFS to barebox-wrapperAlexander Stein2016-04-081-1/+2
| | | | | | | This will also be used by upcoming UBIFS update. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce include/linux/rwsem.hYegor Yefremov2016-02-031-8/+0
| | | | | | | Move semaphore related definitions to its original place. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce include/linux/wait.hYegor Yefremov2016-02-031-4/+0
| | | | | | | Move Linux wait queue related definitions to its original place. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce include/linux/mutex.hYegor Yefremov2016-02-031-5/+0
| | | | | | | Move mutex related defines to its original place. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce include/linux/spinlock.hYegor Yefremov2016-02-011-7/+0
| | | | | | | Move spinlock related definitions to its original place. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce include/linux/sched.hYegor Yefremov2016-02-011-2/+0
| | | | | | | | Move cond_resched() from barebox-wrapper.h to its original place. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* linux/barebox-wrapper: Silence gcc5 warningSascha Hauer2015-12-101-2/+2
| | | | | | | | | | | gcc5 warns about using flags uninitialized in spin_lock_irqsave, although it could look into the static inline spin_lock_irqsave implementation and see it's not used at all. An empty define instead of the static inline wrapper would lead to a "unused variable" warning. Let's create a macro and fake some usage of the flags variable. This probably helps until gcc6 is out. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* CLK: Add helper defines to barebox-wrapper.h for easier porting of drivers ↵Andrey Panov2015-03-051-0/+6
| | | | | | | from Linux kernel Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB: MUSB: Add barebox specific changesSascha Hauer2014-09-261-0/+7
| | | | | | | | | | | This changes the MUSB support from the original Kernel state to be usable with barebox. Tested on a custom board and the Beaglebone Black. The host port on the Beaglebone works, the OTG port works in device mode, but not yet in host mode. Based on the initial MUSB port from Rolf Evers Fischer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* extend barebox wrapper headerSascha Hauer2013-08-071-0/+32
| | | | | | | Add empty definitions for mutexes, spinlocks and other stuff from the kernel to make it easier to reuse code from the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* UBI: reimport UBI from Linux v3.10Sascha Hauer2013-07-251-0/+6
| | | | | | | | | | | This is a fresh UBI import from Linux v3.10 This is done mainly to get fastmap support. This was tested with the i.MX nand driver, the MXS nand driver and on CFI NOR flash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pr_warn() must be pr_warning()Dirk Behme2011-06-011-0/+2
| | | | | | | | | | | | | Fix the warning/error: drivers/mci/mci-core.c: In function 'mci_card_probe': drivers/mci/mci-core.c:1195: warning: implicit declaration of function 'pr_warn' ... drivers/built-in.o: In function `mci_card_probe': mc13892.c:(.text.mci_card_probe+0x68): undefined reference to `pr_warn' Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-151-0/+29
This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>