- Feb 20, 2020
-
-
Masahiro Yamada authored
To avoid "asm/dma-mapping.h: No such file or directory" error, we need something. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
- Dec 02, 2019
-
-
Simon Glass authored
Move these two functions into the irq_funcs.h header file. Also move interrupt_handler_t as this is used by the irq_install_handler() function. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
- Oct 08, 2019
-
-
Michal Simek authored
There is no reason to use private code for standard bootm command. Current implementation is also broken and don't support image relocation properly. Switching to generic bootm implementation is fixing these issues. cmdline and bdt bootm subcommands are returning -1 because they are not implemented. Similar change was done long time ago by for example commit 2bb5b638 ("MIPS: bootm: rework and fix broken bootm code") Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
It is common for the whole architecture that's why move it there. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Sep 11, 2018
-
-
Masahiro Yamada authored
All architectures have the same definition for s8/16/32/64 and u8/16/32/64. Factor out the duplicated code into <asm-generic/int-ll64.h>. BTW, Linux unified the kernel space definition into int-ll64.h a few years ago as you see in Linux commit 0c79a8e29b5f ("asm/types.h: Remove include/asm-generic/int-l64.h"). Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
- Aug 16, 2018
-
-
Tom Rini authored
We have the following cases: - CONFIG_NR_DRAM_BANKS was defined, migrate normally - CONFIG_NR_DRAM_BANKS_MAX was defined and then used for CONFIG_NR_DRAM_BANKS after a check, just migrate it over now. - CONFIG_NR_DRAM_BANKS was very oddly defined on p2771-0000-* (to 1024 + 2), set this to 8. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jul 19, 2018
-
-
Michal Simek authored
Converting GPIO to DM requires to do changes in reset subsystem that's why support for Microblaze soft reset via sysreset and GPIO sysreset support was added. These two patches enables enabling GPIO DM. Microblaze soft reset is bind at last reset method. GPIO reset is handled via sysreset with adding this fragment to DT. gpio-restart { compatible = "gpio-restart"; gpios = <&reset_gpio 0 0 0>; /* 3rd cell ACTIVE_HIGH = 0, ACTIVE_LOW = 1 */ }; hard-reset-gpio property is not documented and also handled. Conversion is required. Unfortunately do_reset is required for SPL that's why use only soft microblaze reset for now. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Shreenidhi Shedi authored
Signed-off-by:
Shreenidhi Shedi <yesshedi@gmail.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
There is no reason not to use default ioremap/iounmap io functions. The patch remove Microblaze macros. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- May 07, 2018
-
-
Tom Rini authored
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Oct 03, 2017
-
-
Paul Burton authored
Convert the microblaze architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for microblaze this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by:
Paul Burton <paul.burton@imgtec.com> Cc: Michal Simek <monstr@monstr.eu>
-
- Oct 19, 2016
-
-
Simon Glass authored
This is required for x86 and is also correct for ARM (since it is empty). Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Alexander Graf <agraf@suse.de>
-
- Sep 23, 2016
-
-
Masahiro Yamada authored
Unlike Linux, nothing about errno.h is arch-specific in U-Boot. As you see, all of arch/${ARCH}/include/asm/errno.h is just a wrapper of <asm-generic/errno.h>. Actually, U-Boot does not export headers to user-space, so we just have to care about the consistency in the U-Boot tree. Now all of include directives for <asm/errno.h> are gone. Deprecate <asm/errno.h>. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by:
Alexey Brodkin <abrodkin@synopsys.com>
-
- Jun 06, 2016
-
-
Robert P. J. Day authored
Since bcopy() is no longer used, delete all remaining references to it. Signed-off-by:
Robert P. J. Day <rpjday@crashcourse.ca>
-
Michal Simek authored
Select MSR instructions via Kconfig instead of xparameters.h. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Nov 19, 2015
-
-
Nathan Rossi authored
'extern inline' is not portable across various C standards. To ensure compatiblity with various standards/compilers change the functions to static inline. This is a portable construct and serves as a comparable definition to 'extern inline' from the gnu90 standard. Additionally remove the function prototypes as they are not required due to the functions being declared static and functions are correctly ordered based on dependence. Signed-off-by:
Nathan Rossi <nathan@nathanrossi.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Tom Rini <trini@konsulko.com> Acked-by:
Mans Rullgard <mans@mansr.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Nathan Rossi authored
Fix various style issues in MicroBlaze header files. Specifically fixing style voilations including '__inline__', 'foo * bar' and 'void foo ('. Signed-off-by:
Nathan Rossi <nathan@nathanrossi.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Tom Rini <trini@konsulko.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Nov 05, 2015
-
-
Fabio Estevam authored
The generic bitops headers are required when calling logarithmic functions, such as ilog2(). Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- Mar 28, 2015
-
-
Masahiro Yamada authored
We have done with the generic board conversion for all the boards of ARC, Blackfin, M68000, MicroBlaze, MIPS, NIOS2, Sandbox, X86. Let's select SYS_GENERIC_BOARD for those architectures, so we can tell which architecture has finished the conversion at a glance. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Alexey Brodkin <abrodkin@synopsys.com>
-
- Feb 09, 2015
-
-
Michal Simek authored
Because it is not compatible with DM where malloc_base has to be available early and init has to be done in ASM. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Compile code with -fPIC to get GOT. Do not build SPL with fPIC because it increasing SPL size for nothing. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Do not use microblaze specific interrupt init function. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Show also return address from exception which should suggest where the problem is. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Sep 09, 2014
-
-
Vasili Galka authored
The basic idea: Define size_t using the __SIZE_TYPE__ compiler-defined type. For detailed explanation see similar patch for the nios2 arch: "nios2: Fix printf size_t format related warnings (again...)" (sha1: 00a2517f) Signed-off-by:
Vasili Galka <vvv444@gmail.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- May 12, 2014
-
-
Masahiro Yamada authored
gd->bd->bi_baudrate is a copy of gd->baudrate. Since baudrate is a common feature for all architectures, keep gd->baudrate only. It is true that bi_baudrate was passed to the kernel in that structure but it was a long time ago. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Tom Rini <trini@ti.com> Cc: Simon Glass <sjg@chromium.org> Cc: Wolfgang Denk <wd@denx.de> Cc: Heiko Schocher <hs@denx.de> Acked-by: Michal Simek <monstr@monstr.eu> (For microblaze)
-
- Feb 04, 2014
-
-
Michal Simek authored
Add support for U-BOOT SPL. NOR and RAM mode are supported. There are 3 images in NOR flash. u-boot.img, dtb and kernel. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Nov 08, 2013
-
-
Masahiro Yamada authored
Linux Kernel abolished include/linux/config.h long time ago. (around version v2.6.18..v2.6.19) We don't need to provide Linux copatibility any more. This commit deletes include/linux/config.h and fixes source files not to include this. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
- Oct 16, 2013
-
-
Michal Simek authored
The patch: "blackfin: Move blackfin watchdog driver out of the blackfin arch folder." (sha1: e9a389a1) changed hw_watchdog_init() prototype which didn't match with Microblaze one. This patch fixes the driver and Microblaze initialization. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Oct 14, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 24, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
- May 09, 2013
-
-
Michal Simek authored
Microblaze uses gpio which is connected to the system reset. Currently gpio subsystem wasn't used for it. Add gpio driver and change Microblaze reset logic to be done via gpio subsystem. There are various configurations which Microblaze can have that's why gpio_alloc/gpio_alloc_dual(for dual channel) function has been introduced and gpio can be allocated dynamically. Adding several gpios IP is also possible and supported. For listing gpio configuration please use "gpio status" command This patch also remove one compilation warning: microblaze-generic.c: In function 'do_reset': microblaze-generic.c:38:47: warning: operation on '*1073741824u' may be undefined [-Wsequence-point] Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Apr 30, 2013
-
-
Michal Simek authored
Watchdog can be used on Microblaze, PPC and Zynq hw designs. Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Tom Rini <trini@ti.com>
-
- Mar 15, 2013
-
-
Simon Glass authored
We create a separate header file for link symbols defined by the link scripts. It is helpful to have these all in one place and try to make them common across architectures. Since Linux already has a similar file, we bring this in even though many of the symbols there are not relevant to us. Each architecture has its own asm/sections.h where symbols specifc to that architecture can be added. For now everything except AVR32 just includes the generic header. One change is needed in arch/avr32/lib/board.c to make this conversion work. Reviewed-by: Tom Rini <trini@ti.com> (version 5) Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Feb 04, 2013
-
-
Simon Glass authored
Move microblaze over to use generic global_data. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Michal Simek <monstr@monstr.eu>
-
- Feb 01, 2013
-
-
Simon Glass authored
We plan to move architecture-specific data into a separate structure so that we can make the rest of it common. As a first step, create struct arch_global_data to hold these fields. Initially it is empty. This patch applies to all archs at once. I can split it if this is really a pain. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 07, 2012
-
-
Michal Simek authored
The patch "include/linux/byteorder: import latest endian definitions from linux" (sha1: eef1cf2d) Introduced a lot of compilation failures with unknow types. include/linux/byteorder/big_endian.h:45:1: error: unknown type name '__le64' include/linux/byteorder/big_endian.h: In function '__cpu_to_le64p': include/linux/byteorder/big_endian.h:47:18: error: '__le64' undeclared (first use in this function) include/linux/byteorder/big_endian.h:47:18: note: each undeclared identifier is reported only once for each function it appears in include/linux/byteorder/big_endian.h:47:25: error: expected ';' before '__swab64p' include/linux/byteorder/big_endian.h: At top level: include/linux/byteorder/big_endian.h:49:1: error: unknown type name '__le64' include/linux/byteorder/big_endian.h:53:1: error: unknown type name '__le32' include/linux/byteorder/big_endian.h: In function '__cpu_to_le32p': include/linux/byteorder/big_endian.h:55:18: error: '__le32' undeclared (first use in this function) include/linux/byteorder/big_endian.h:55:25: error: expected ';' before '__swab32p' include/linux/byteorder/big_endian.h: At top level: include/linux/byteorder/big_endian.h:57:1: error: unknown type name '__le32' include/linux/byteorder/big_endian.h:61:1: error: unknown type name '__le16' ... Removing asm/bitops.h solved this problem. Signed-off-by:
Michal Simek <monstr@monstr.eu>
-
Michal Simek authored
Just remove ancient code. Signed-off-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephan Linz <linz@li-pro.net> Reviewed-by:
Marek Vasut <marex@denx.de>
-
Michal Simek authored
ext2_find_next_zero_bit must be also static if __swab32 is also static. Warning: include/asm/bitops.h:369:22: warning: '__fswab32' is static but used in inline function 'ext2_find_next_zero_bit' which is not static [enabled by default] Signed-off-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephan Linz <linz@li-pro.net>
-
- Oct 19, 2012
-
-
Simon Glass authored
These don't need to be longs, so change them. Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Rini <trini@ti.com>
-