summaryrefslogtreecommitdiff
path: root/arch/xtensa/variants/s6000/delay.c
diff options
context:
space:
mode:
authorDaniel Glöckner <dg@emlix.com>2014-10-19 02:46:25 +0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-10-21 13:29:01 +0400
commit4006e565e1500db40b8546dcc6011737bc5d986c (patch)
treeff158ef0a7de01246cf3793787e50b74c5838218 /arch/xtensa/variants/s6000/delay.c
parent3932b9ca55b0be314a36d3e84faff3e823c081f5 (diff)
downloadlinux-4006e565e1500db40b8546dcc6011737bc5d986c.tar.xz
xtensa: remove s6000 variant and s6105 platform
The Stretch s6000 family support has been merged into mainline 5 years ago. There appear to be no users of this code since nobody complained that there is a merge error preventing compilation. Apart from the s6105 IP camera reference design there are no s6000 devices known to ever have run Linux and as the chips are out of production there probably never will be. The successor s7000 no longer uses an Xtensa core for the OS. Let's remove the code until someone is found who actually needs it. Signed-off-by: Daniel Glöckner <dg@emlix.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/variants/s6000/delay.c')
-rw-r--r--arch/xtensa/variants/s6000/delay.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/xtensa/variants/s6000/delay.c b/arch/xtensa/variants/s6000/delay.c
deleted file mode 100644
index 39154563ee17..000000000000
--- a/arch/xtensa/variants/s6000/delay.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <asm/timex.h>
-#include <asm/io.h>
-#include <variant/hardware.h>
-
-#define LOOPS 10
-void platform_calibrate_ccount(void)
-{
- u32 uninitialized_var(a);
- u32 uninitialized_var(u);
- u32 b;
- u32 tstamp = S6_REG_GREG1 + S6_GREG1_GLOBAL_TIMER;
- int i = LOOPS+1;
- do {
- u32 t = u;
- asm volatile(
- "1: l32i %0, %2, 0 ;"
- " beq %0, %1, 1b ;"
- : "=&a"(u) : "a"(t), "a"(tstamp));
- b = get_ccount();
- if (i == LOOPS)
- a = b;
- } while (--i >= 0);
- b -= a;
- ccount_freq = b * (100000UL / LOOPS);
-}