summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | ARM: start.c: Add some debugging messagesSascha Hauer2015-01-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pr_debug can now be used right after setup_c(), so add some debug messages to the early startup code to make it a bit more clear what is happening there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | console: Make sure xzalloc is only used when it's availableSascha Hauer2015-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make it possible to call the pr_* functions very early before malloc is initialized test if malloc is available before using it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | malloc: Add a function to detect if malloc pool is already initializedSascha Hauer2015-01-052-0/+10
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add PBL console supportSascha Hauer2015-01-057-14/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds simple console support to the PBL which makes it possible to print more complex messages in the PBL than just strings or hex numbers. For now puts_ll is used to print the messages, so it depends on CONFIG_DEBUG_LL which makes it more a debugging option. However, this could be extended later to get regular output from the PBL if desired. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | printf: use local isdigit/isalnum implementationSascha Hauer2015-01-051-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To be independent of the _ctype array. This makes it possible to add printf support to the PBL without adding _ctype aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | printf: move simple_strto*() functions to separate fileSascha Hauer2015-01-053-66/+69
| | | | | | | | | | | | | | | | | | | | | | | | These are not needed in the PBL, so move them to a separate file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | printf: move panic() to common/misc.cSascha Hauer2015-01-052-21/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | panic() is not really a printf like function, so move it to common/misc.c. This is done because we want to have printf support in the PBL, but PBL has it's own panic() implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | PBL: Add strnlen, needed for printf supportSascha Hauer2015-01-051-0/+14
| |/ / | | | | | | | | | | | | | | | | | | vsprintf needs strnlen, so in oder to add console support to the PBL we need a strnlen implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2015-01-09241-357/+289
|\ \ \
| * | | sizes.h: sync with Linux 3.19-rc3Masahiro Yamada2015-01-081-16/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Looks like I am also highly addicted to Linux... Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | sizes.h: move include/sizes.h to include/linux/sizes.hMasahiro Yamada2015-01-08231-230/+230
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file originates in Linux. Linux has it under include/linux/ directory since commit dccd2304cc90. Let's move it to the same place as well in barebox. This commit was generated by the following commands: find -name '*.[chS]' | xargs sed -i -e 's:<sizes.h>:<linux/sizes.h>:' git mv include/sizes.h include/linux/ Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: rtl8169: remove unnecessary cache maintenanceLucas Stach2015-01-051-19/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The buffer descriptors are allocated from coherent memory, so there is no cache maintenance needed. Only tell the compiler that the descriptors can be modified by the hardware. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arm: do section garbage collection also with modules enabledLucas Stach2014-12-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of the arm build (especially PBL stuff) depends on section garbage collection to be enabled. If it is disabled a lot of targets fail to link properly. If module support is enabled garbage collection was disabled on the premise that we throw away too many function which may be needed in later modules. The proper way to keep the functions around for use in modules, which already works, is to annotate them with EXPORT_SYMBOL. As module support is still marked as experimental I think it's reasonable to expect users to make sure all symbols that are used by their modules are properly annotated. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arm: edmqmx6: build entry in lwl targetLucas Stach2014-12-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only build it at the correct obj or pbl stage where the entry is needed. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arm: include relevant headers in barebox-armLucas Stach2014-12-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide the necessary types and defines used in this header. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | clock: incorporate dummy clocksource into core clock codeAntony Pavlov2014-12-174-75/+28
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Revert "ARM: i.MX: Make NAND related Kconfig options depend on MTD"Lucas Stach2014-12-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4b17d73c7da2, as it is incomplete and partially broken. ARCH_IMX_EXTERNAL_BOOT_NAND does not depend on MTD, it just uses some defines from the mtd/nand header, but does not actually depend on MTD being compiled in. For the other two cases there is a more complete fix merged with commit 57b584d748d4 that also enables the needed MTD write support. Fixes: (MACH_TX25 && MACH_PCA100 && MACH_PCM038) selects ARCH_IMX_EXTERNAL_BOOT_NAND which has unmet direct dependencies (ARCH_IMX && MTD) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | video: imx-hdmi: search for DDC node only when EDID support is enabledLucas Stach2014-12-171-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uses i2c functions that may not be available in every configuration and is only needed if EDID support is enabled, which in turn already selects I2C. Fixes: drivers/video/imx-ipu-v3/imx-hdmi.c: undefined reference to `of_find_i2c_adapter_by_node' Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: gadget: fastboot: allow to build without BOOTMLucas Stach2014-12-171-1/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will disable the capability to boot an uploaded image directly, but keeps other fastboot functionality. This seems like a valid config. Fixes: In function `do_bootm_on_complete': undefined reference to `bootm_boot' Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/kbuild'Sascha Hauer2015-01-0913-92/+176
|\ \ \
| * | | kbuild: drop include/asm from MRPROPER_FILESMasahiro Yamada2015-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit a1a9665113e4 (kbuild: do not create symbolic link include/asm), the symbolic link include/asm is not created. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | kbuild: delete include/generated directory by "make mrproper"Masahiro Yamada2015-01-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, "make mrproper" misses to delete some generated files such as include/generated/compile.h. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | kbuild: create a build directory automatically for out-of-tree buildMasahiro Yamada2015-01-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kbuild supports saving output files in a separate directory. But the build directory must be created beforehand. For example, $ mkdir -p dir/to/store/output/files $ make O=dir/to/store/output/files defconfig Creating a build directory automatically would be useful. [ imported from Linux Kernel, commit 1c9e70a55b08 ] Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | kbuild: move asm-offsets.h rule to ./KbuildMasahiro Yamada2015-01-0810-45/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, MIPS is the only architecture that needs include/generated/asm-offsets.h, but we have got ./Kbuild file now. It is a good reason to move asm-offsets.h rule from arch/mips/Makefile to ./Kbuild and add dummy asm-offsets.c for the other architectures. asm-offsets.h would be useful for all the architectures. This commit does not implement include/generated/bounds.h, but if necessary, it is easy to implement it. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | kbuild: add ./Kbuild file to fix "make clean"Masahiro Yamada2015-01-052-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "make clean/mrproper/distclean" has not been working correctly. When "make clean" is run, Kbuild descends into the directories that are listed in "clean-dirs" variable, which includes $(srctree). It intends descending into "./Kbuild", not "./Makefile". (Note "Kbuild" takes precedence over "Makefile" in each directory.) If Kbuild descends into "./Makefile", Kconfig is invoked via "make silentoldconfig", which is not our intention. Let's add "Kbuild" file at the top directory like Linux. Update TODO list too. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | kbuild: do not create include2 directoryMasahiro Yamada2015-01-051-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/asm-$(SRCARCH) does not exist. Creating include2 directory is meaningless. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | kbuild: do not create symbolic link include/asmMasahiro Yamada2015-01-052-35/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There does not exist include/asm-$(SRCARCH) any more, so no point to create a symbolic link to an empty directory. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | kbuild: remove redundant -include include/generated/autoconf.hMasahiro Yamada2015-01-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/generated/autoconf.h is included from include/linux/kconfig.h and we already have "-include $(srctree)/include/linux/kconfig.h" just below. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2015-01-091-0/+2
|\ \ \ \
| * | | | efika-mx-smartbook: enable led hearbeat on mailJean-Christophe PLAGNIOL-VILLARD2015-01-051-0/+2
| | |/ / | |/| | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/efi'Sascha Hauer2015-01-097-75/+247
|\ \ \ \
| * | | | efi: mount efivarfs by default if enabledLucas Stach2014-12-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: efivars: implement write supportLucas Stach2014-12-092-1/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the standard FS ops for writing/manipulating efivars. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: efivars: don't store attributes in fileLucas Stach2014-12-091-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't have a use-case yet where we need to manipulate the attributes of a variable and it confuses "normal" users of the variables. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: efivar: preserve more info in inodeLucas Stach2014-12-091-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preserve info needed for easy manipulation of variables. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | lib: add wchar strdupLucas Stach2014-12-092-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: efivar: move variable discovery into probeLucas Stach2014-12-091-51/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can manipulate things easier. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: efivar: switch to standard list implementationLucas Stach2014-12-091-21/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans the code a bit and will allow us to implement removing of vars quite a bit easier. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fs: efivars: cosmetic changesLucas Stach2014-12-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | efi: add Barebox GUIDLucas Stach2014-12-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A proper GUID is needed to namespace all sorts of things, most prominently persistent variables. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | efi: move exit to EFI into own commandLucas Stach2014-12-091-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a command to drop back into the calling EFI process. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | efi: add proper reset hookLucas Stach2014-12-092-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to actually reset the system from barebox instead of dropping back into the EFI firmware. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | efi: add function to determine type of device pathLucas Stach2014-12-092-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to the wonders of UEFI we have to walk down the device path all the way until we arrive at the device we got this path from... Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/arm'Sascha Hauer2015-01-0926-113/+369
|\ \ \ \ \
| * | | | | net: cpsw: ignore error on slave setupSascha Hauer2015-01-061-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CPSW has two slaves. When one of them fails to setup continue anyway with the other one. This fixes a crash in the beaglebone black which only has one slave connected. The code doesn't find a phy on the second slave and bails out, but the error path is broken: It frees the private data structures which contains used resources. Reported-by: Philippe Leduc <ledphilippe@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | net: smc1111: fix memory congestionsRobert Jarzmik2015-01-061-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the SMC1111 has a shared pool of 2k memory buckets for both transmission and reception, and as there are variants which have as few as 4 buckets in total, the memory pool can be hogged by unclaimed receptions, and impeed any further transmission. This happens on the zylonite pxa board, where 4 packets, most probably icmp and arp, fill the 4 buckets, preventing any further ethernet transmission, and stalling the driver. The fix is rather rough : whenever all the buckets are filled by reception packets, and if a transmission is required, the transmission code path will empty up all received packets. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | versatilepb: allow to compile it an arm1176Jean-Christophe PLAGNIOL-VILLARD2015-01-065-7/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | useful to use it for testing on qemu Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | arm: system_info fix CPU_IS_ARM1176Jean-Christophe PLAGNIOL-VILLARD2015-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we need to apply the mask Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: bcm2835: add DEBUG_LL supportAntony Pavlov2015-01-052-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: versatile: debug_ll.h: switch to debug_ll_pl011.hAntony Pavlov2015-01-051-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>