ARM: renesas: Rename rmobile_get_cpu_rev_*() to renesas_get_cpu_rev_*()
Rename rmobile_get_cpu_rev_*() to renesas_get_cpu_rev_*() because
all the chips are made by Renesas, while only a subset of them is
from the R-Mobile line.
Use the following command to perform the rename:
"
$ git grep -l '\<rmobile_get_cpu_rev_\(integer\|fraction\)\>' | \
xargs -I {} sed -i 's@\<rmobile_get_cpu_rev_\(integer\|fraction\)\>@renesas_get_cpu_rev_\1@g' {}
"
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c
index d9d4608..ab06078 100644
--- a/board/renesas/lager/lager.c
+++ b/board/renesas/lager/lager.c
@@ -46,7 +46,7 @@
writel(0xA5A5A500, &swdt->swtcsra);
/* CPU frequency setting. Set to 1.4GHz */
- if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) {
+ if (renesas_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) {
u32 stat = 0;
u32 stc = ((1400 / CLK2MHZ(get_board_sys_clk())) - 1)
<< PLL0_STC_BIT;
diff --git a/board/renesas/lager/qos.c b/board/renesas/lager/qos.c
index ddc831c..f7eade2 100644
--- a/board/renesas/lager/qos.c
+++ b/board/renesas/lager/qos.c
@@ -2419,7 +2419,7 @@
void qos_init(void)
{
- if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X)
+ if (renesas_get_cpu_rev_integer() >= R8A7790_CUT_ES2X)
qos_init_es2();
else
qos_init_es1();
diff --git a/board/renesas/stout/qos.c b/board/renesas/stout/qos.c
index 9030ba7..8a87812 100644
--- a/board/renesas/stout/qos.c
+++ b/board/renesas/stout/qos.c
@@ -2421,7 +2421,7 @@
void qos_init(void)
{
- if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X)
+ if (renesas_get_cpu_rev_integer() >= R8A7790_CUT_ES2X)
qos_init_es2();
else
qos_init_es1();
diff --git a/board/renesas/stout/stout.c b/board/renesas/stout/stout.c
index 46c48df..109e19a 100644
--- a/board/renesas/stout/stout.c
+++ b/board/renesas/stout/stout.c
@@ -46,7 +46,7 @@
writel(0xA5A5A500, &swdt->swtcsra);
/* CPU frequency setting. Set to 1.4GHz */
- if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) {
+ if (renesas_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) {
u32 stat = 0;
u32 stc = ((1400 / CLK2MHZ(get_board_sys_clk())) - 1)
<< PLL0_STC_BIT;