| #
59814c3b |
| 25-Aug-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: linux/io.h: import generic ioread* / iowrite* accessors from Linux
Some drivers in Linux (ex. drivers/mtd/nand/denali.c) use ioread*/iowrite* accessors. Import them to make drivers more s
UPSTREAM: linux/io.h: import generic ioread* / iowrite* accessors from Linux
Some drivers in Linux (ex. drivers/mtd/nand/denali.c) use ioread*/iowrite* accessors. Import them to make drivers more synced. I copied code from include/asm-generic/io.h of Linux.
Change-Id: Ifb36301885bb1df36f653f0b9a639b4fc1af6406 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 6c06f8dc4ab02890ef93b50dac129c2b43cc9ea3)
show more ...
|
| #
9a387128 |
| 28-Jun-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
linux/io.h: add generic ioremap()/iounmap() defines
For most of architectures in U-Boot, virtual address is straight mapped to physical address. So, it makes sense to have generic defines of iorema
linux/io.h: add generic ioremap()/iounmap() defines
For most of architectures in U-Boot, virtual address is straight mapped to physical address. So, it makes sense to have generic defines of ioremap and friends in <linux/io.h>.
All of them are just empty and will disappear at compile time, but they will be helpful to implement drivers which are counterparts of Linux ones.
I notice MIPS already has its own implementation, so I added a Kconfig symbol CONFIG_HAVE_ARCH_IOREMAP which MIPS (and maybe Sandbox as well) can select.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
show more ...
|
| #
af22ac66 |
| 15-May-2015 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
include: introduce include/linux/io.h as a wrapper of asm/io.h
In the latest Linux coding style, <linux/io.h> should be included rather than <asm/io.h>. To follow this standard also in U-Boot, add
include: introduce include/linux/io.h as a wrapper of asm/io.h
In the latest Linux coding style, <linux/io.h> should be included rather than <asm/io.h>. To follow this standard also in U-Boot, add include/linux/io.h. Currently, it just includes <asm/io.h>.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
show more ...
|