summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | lib: Port kstrtox.c from Linux kernelAndrey Smirnov2018-10-295-0/+473
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | linux/ctype.h: Port _tolower()Andrey Smirnov2018-10-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | gpio: VF610: Propagate error code of gpiochip_add() upAndrey Smirnov2018-10-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Propagate error code of gpiochip_add() up the call chain. This won't do any meaningful cleanup, but at least it will make problems noticable. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: imx7d-zii-rpu2: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: vf610-zii-ssmb-spu3: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: vf610-zii-cfu1: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: vf610-zii-dev-rev-c: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: rdu1: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: rdu2: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | pinctrl: tree-wide probe devices during core_initcallMarco Felsch2018-10-1914-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 37e6bee7e5 ("gpiolib: Add support for GPIO "hog" nodes") barebox can handle hog-gpios. To work correctly the pinctrl driver must be initialised first. Reorder all pinctrl drivers so they will be called first. find drivers/pinctrl/ -type f -name *.c \ -exec sed -i 's/\bpostcore_initcall\b/core_initcall/' "{}" +; Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | gpio: tree-wide don't probe devices during core_initcallMarco Felsch2018-10-194-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 37e6bee7e5 ("gpiolib: Add support for GPIO "hog" nodes") barebox can handle hog-gpios. To work correctly the pinctrl driver must be initialised first. Reorder all core_initcall's so the pinctrl driver can be called first. find drivers/gpio/ -type f -name gpio-*.c -exec sed -i \ 's/core_initcall/postcore_initcall/' "{}" +; Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | gpiolib: fix of_hog_gpio gpio label assignmentMarco Felsch2018-10-191-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current the label is retrieved by the line-name property but this is a optional property. In case of a missing line-name property the label is NULL. As the binding documentation told, the gpio-label must be set to the device-node name in case of missing line-name property. Fixes: 37e6bee7e5 ("gpiolib: Add support for GPIO "hog" nodes") Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | gpiolib: fix of_gpio_hog error handlingMarco Felsch2018-10-191-4/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the error handling of gpio_get_num() checks the return value of the previous of_property_read_u32_index() which has it's own error check. Fix it by using the correct return value variable. Fixes: 37e6bee7e5 ("gpiolib: Add support for GPIO "hog" nodes") Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/dts'Sascha Hauer2018-11-09796-7735/+36787
|\ \ \ \
| * | | | dts: update to v4.20-rc1Sascha Hauer2018-11-08795-7735/+36776
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | dts: update to v4.19-rc8Sascha Hauer2018-11-071-0/+11
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/driver'Sascha Hauer2018-11-092-42/+15
|\ \ \ \ \
| * | | | | drivers: base: Simplify dev_request_mem_region_err_null()Andrey Smirnov2018-10-291-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify dev_request_mem_region_err_null() by making use of dev_request_mem_resource() to implement it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | drivers: base: Drop dev_get_mem_region_by_name()Andrey Smirnov2018-10-292-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop dev_get_mem_region_by_name() which doesn't seem to have any users in the codebase. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | drivers: base: Simplify generic_memmap_ro()Andrey Smirnov2018-10-291-14/+7
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify generic_memmap_ro() by re-implementing it using generic_memmap_rw(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/at91'Sascha Hauer2018-11-0996-1718/+1352
|\ \ \ \ \
| * | | | | ARM: at91: remove unused definesSascha Hauer2018-11-0610-133/+0
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: separate restart handler registration into SoC specific codeSascha Hauer2018-11-0617-45/+111
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: make at91sam926x_board_init board specificSascha Hauer2018-11-068-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The base addresses used in at91sam926x_board_init() differ with each SoC. The board knows which SoC we are running on though, so create and use SoC specific variants of these functions which pass the appropriate base addresses to at91sam926x_board_init(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: drop at91_pmc_write()/at91_pmc_read()Sascha Hauer2018-11-063-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at91_pmc_write() and at91_pmc_read() need a compile time base address, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91rm9200ek: use plain readl/writel for pmc accessesSascha Hauer2018-11-062-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at91_pmc_write() needs a compile time base address, so rather use plain read/writel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91sam926x use writel rather than pmc accessor functionSascha Hauer2018-11-061-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pmc accessor function depends on a compile time base address, so rather use writel directly. In this case we can hardcode the base address again since all at91sam926x SoCs have the same pmc base address. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: remove mach/io.hSascha Hauer2018-11-0646-83/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove at91_sys_read() and at91_sys_write() since these are no longer used. This makes mach/io.h empty so remove that aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91rm9200 timer: Make system timer defines SoC specificSascha Hauer2018-11-063-55/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - rename at91_st.h to at91rm9200_st.h - rename prefix from AT91_ to AT91RM9200_ - remove register offset from System timer defines Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91rm9200 timer: remove unused includeSascha Hauer2018-11-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at91rm9200_time.c doesn't need anything from at91_pmc.h, remove the inclusion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: remove unused header fileSascha Hauer2018-11-062-147/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nothing from mach/at91_tc.h is used, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91rm9200: Add SoC namespace to memory controller definesSascha Hauer2018-11-064-166/+171
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: Use SoC specific base addresses where appropriateSascha Hauer2018-11-069-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace AT91_ base addresses with their SoC specific variants where possible. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: Add SoC namespace to matrix definesSascha Hauer2018-11-0522-563/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add SoC namespace to matrix define so we have one source less of conflicting defines. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: remove common matrix header fileSascha Hauer2018-11-052-31/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The common matrix header file can be removed when the users include the SoC specific one. Fix the only user and remove the file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: consolidate phy reset functionsSascha Hauer2018-11-0513-150/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many boards have the same ethernet phy reset function, so share the code in a common function. While at it remove the AT91_RSTC offset from the rstc register defines. AT91_RSTC was the offset between the AT91_SYSTEM_BASE and the reset controller. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: remove AT91_SDRAM_BASESascha Hauer2018-11-055-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AT91_SDRAM_BASE is only used in board code which known the SDRAM base address, so we do not need a common define. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: drop AT91_NB_USARTSascha Hauer2018-11-0510-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AT91_NB_USART only used to return an error from at91_register_uart() if an invalid UART number is passed. This will never happen as the linker fails earlier in that case, so the runtime check can be removed and with it the now unused AT91_NB_USART define. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: remove unused definesSascha Hauer2018-11-059-126/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91sam926x: Add header for at91sam926x common base addressesSascha Hauer2018-11-051-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some base addresses common to at91sam926x. Add a separate header for these. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91rm9200ek: Use SoC specific definesSascha Hauer2018-11-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use AT91RM9200_BASE_PIOC rather than AT91_BASE_PIOC so we can get rid of the latter later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: remove unused CONSISTENT_DMA_SIZE definesSascha Hauer2018-11-053-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CONSISTENT_DMA_SIZE is unused, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: remove unused AT_DMA_ID_ definesSascha Hauer2018-11-054-120/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The defines are unused and not properly namespaced, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM: at91: Add initial support for the EVB-KSZ9477 eval boardAhmad Fatoum2018-11-059-1/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EVB-KSZ9477 is an evaluation board for the KSZ9477 ethernet switch. This board is equipped with a atsama5d3 SoC with 256MiB of SDRAM, 256MiB of NAND flash and a SD card slot. For now only second stage booting is supported with AT91bootstrap as first stage loader. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | | Release v2018.11.0v2018.11.0Sascha Hauer2018-11-091-1/+1
| |_|/ / / |/| | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | mtd: nand_denali: update compatibleBastian Krause2018-11-071-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 190a1c6e47 ("dts: update to v4.18-rc3") changed the compatible of the Denali NAND controller. Update the compatible in the barebox driver accordingly. Signed-off-by: Bastian Krause <bst@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | arm: at91: fix sdram controller initAhmad Fatoum2018-11-051-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e739663535 confused parameters to __raw_writel. The value and the base address was mixed up. Fixes: e739663535 (arm: at91: code cleanup in at91sam926x_board_init) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | kconfig: Avoid format overflow warning from GCC 8.1Sascha Hauer2018-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux commit 2ae89c7a82ea9d81a19b4fc2df23bef4b112f24e adapted for barebox: In file included from scripts/kconfig/zconf.tab.c:2485: scripts/kconfig/confdata.c: In function ‘conf_write’: scripts/kconfig/confdata.c:773:22: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=] sprintf(newname, "%s%s", dirname, basename); ^~ scripts/kconfig/confdata.c:773:19: note: assuming directive output of 7 bytes sprintf(newname, "%s%s", dirname, basename); ^~~~~~ scripts/kconfig/confdata.c:773:2: note: ‘sprintf’ output 1 or more bytes (assuming 4104) into a destination of size 4097 sprintf(newname, "%s%s", dirname, basename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/confdata.c:776:23: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=] sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); ^~~~~~~~~~~ scripts/kconfig/confdata.c:776:3: note: ‘sprintf’ output between 13 and 4119 bytes into a destination of size 4097 sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Increase the size of tmpname and newname to make GCC happy. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | usb: gadget: fastboot: remove unused variableSascha Hauer2018-10-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | ep is unused, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | of: unflatten: access property properlySascha Hauer2018-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properties have to be accessed with of_property_get_value() rather than accessing them directly from the devicenode. The accessor does the right thing when of_new_property_const() is used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>