f02c1f69 | 24-Aug-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
sh: tmu: Clean up register usage
The code uses all in all three TMU registers, drop the massive register layout structures and just define the required timer registers and use them throughout the co
sh: tmu: Clean up register usage
The code uses all in all three TMU registers, drop the massive register layout structures and just define the required timer registers and use them throughout the code.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
8b39df9e | 24-Aug-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
sh: tmu: Inline sh_tmu.h
The header contains only the TMU register layout, just inline it into the TMU timer implementation and drop the header completely.
Signed-off-by: Marek Vasut <marek.vasut+r
sh: tmu: Inline sh_tmu.h
The header contains only the TMU register layout, just inline it into the TMU timer implementation and drop the header completely.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
15f11fc6 | 24-Aug-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
sh: tmu: Inline tmu_timer_{start,stop}()
These functions are always called for timer = 0, so drop the timer check. Since these functions are called from one place only and they are reduced to one li
sh: tmu: Inline tmu_timer_{start,stop}()
These functions are always called for timer = 0, so drop the timer check. Since these functions are called from one place only and they are reduced to one line of code, just inline them.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
eb05dcfe | 24-Aug-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
sh: tmu: Simplify the tmu_bit math
The tmu_bit value evaluates to (ffs(4) >> 1) - 1 = (3 >> 1) - 1 = 0. Just drop the tmu_bit completely as well as CONFIG_SYS_TMU_CLK_DIV.
Signed-off-by: Marek Vasu
sh: tmu: Simplify the tmu_bit math
The tmu_bit value evaluates to (ffs(4) >> 1) - 1 = (3 >> 1) - 1 = 0. Just drop the tmu_bit completely as well as CONFIG_SYS_TMU_CLK_DIV.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
b2a33721 | 17-Feb-2018 |
Tom Rini <trini@konsulko.com> |
sh: Do not provide strncmp
With modern GCC, we get warnings such as: cmd/jffs2.c: In function 'mtdparts_init': arch/sh/include/asm/string.h:110:38: warning: array subscript is above array bounds [-W
sh: Do not provide strncmp
With modern GCC, we get warnings such as: cmd/jffs2.c: In function 'mtdparts_init': arch/sh/include/asm/string.h:110:38: warning: array subscript is above array bounds [-Warray-bounds] : "0" (__cs), "1" (__ct), "r" (__cs+__n) ~~~~^~~~
This results in a small size reduction as well.
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
f40ad66f | 28-Jul-2017 |
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
arch/sh: don't bring common/env_embedded.o into the link
The linker script for SuperH brings the .ppcenv and .ppcenvr section of common/env_embedded.o into the .text section. However, the .ppcenv se
arch/sh: don't bring common/env_embedded.o into the link
The linker script for SuperH brings the .ppcenv and .ppcenvr section of common/env_embedded.o into the .text section. However, the .ppcenv section is only ever filled in by env_embedded.o when CONFIG_SYS_USE_PPCENV is defined, but no platforms in mainline U-Boot use this.
In addition, common/env_embedded.o is not always built (when you use CONFIG_ENV_IS_NOWHERE for example), which causes the following build failure:
Fixes:
LD u-boot /home/thomas/sh4aeb-linux-musl/bin/sh4aeb-linux-ld.bfd: cannot find common/env_embedded.o
We fix this by no longer adding the .ppcenv and .ppcenvr sections from common/env_embedded.o into the .text section.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
show more ...
|
76a55989 | 27-Nov-2016 |
Vladimir Zapolskiy <vz@mleia.com> |
sh: generate position independent code for all platforms
Finally add fpic compilation option to produce relocatable code. Note that this requires to define CONFIG_NEEDS_MANUAL_RELOC for all board fi
sh: generate position independent code for all platforms
Finally add fpic compilation option to produce relocatable code. Note that this requires to define CONFIG_NEEDS_MANUAL_RELOC for all board files, also relocation support still has some limitations (e.g. a developer should care not to overwrite the executing code or memset() with zeroes not yet relocated data on malloc init etc.), which may be fixed while switching to PIE.
Due to short investigation the architecture code is not ready for PIE linking, this will require some manipulations with .dyn* sections.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
show more ...
|