aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/boot/compressed/m32r_sio.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-03-07 15:36:19 -0500
committerArnd Bergmann <arnd@arndb.de>2018-03-09 17:20:00 -0500
commit553b085c2075f6a4a2591108554f830fa61e881f (patch)
tree68d63911f2c12e0fb9fa23498df9300442a88f92 /arch/m32r/boot/compressed/m32r_sio.c
parentfd8773f9f544955f6f47dc2ac3ab85ad64376b7f (diff)
arch: remove m32r port
The Mitsubishi/Renesas m32r architecture has been around for many years, but the Linux port has been obsolete for a very long time as well, with the last significant updates done for linux-2.6.14. While some m32r microcontrollers are still being marketed by Renesas, those are apparently no longer possible to support, mainly due to the lack of an external memory interface. Hirokazu Takata was the maintainer until the architecture got marked Orphaned in 2014. Link: http://www.linux-m32r.org/ Link: https://www.renesas.com/en-eu/products/microcontrollers-microprocessors/m32r.html Cc: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/m32r/boot/compressed/m32r_sio.c')
-rw-r--r--arch/m32r/boot/compressed/m32r_sio.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/arch/m32r/boot/compressed/m32r_sio.c b/arch/m32r/boot/compressed/m32r_sio.c
deleted file mode 100644
index 9d34bd063c31..000000000000
--- a/arch/m32r/boot/compressed/m32r_sio.c
+++ /dev/null
@@ -1,77 +0,0 @@
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * arch/m32r/boot/compressed/m32r_sio.c
4 *
5 * 2003-02-12: Takeo Takahashi
6 * 2006-11-30: OPSPUT support by Kazuhiro Inaoka
7 *
8 */
9
10#include <asm/processor.h>
11
12static void m32r_putc(char c);
13
14static int puts(const char *s)
15{
16 char c;
17 while ((c = *s++))
18 m32r_putc(c);
19 return 0;
20}
21
22#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_OPSPUT)
23#include <asm/m32r.h>
24#include <asm/io.h>
25
26#define USE_FPGA_MAP 0
27
28#if USE_FPGA_MAP
29/*
30 * fpga configuration program uses MMU, and define map as same as
31 * M32104 uT-Engine board.
32 */
33#define BOOT_SIO0STS (volatile unsigned short *)(0x02c00000 + 0x20006)
34#define BOOT_SIO0TXB (volatile unsigned short *)(0x02c00000 + 0x2000c)
35#else
36#undef PLD_BASE
37#if defined(CONFIG_PLAT_OPSPUT)
38#define PLD_BASE 0x1cc00000
39#else
40#define PLD_BASE 0xa4c00000
41#endif
42#define BOOT_SIO0STS PLD_ESIO0STS
43#define BOOT_SIO0TXB PLD_ESIO0TXB
44#endif
45
46static void m32r_putc(char c)
47{
48 while ((*BOOT_SIO0STS & 0x3) != 0x3)
49 cpu_relax();
50 if (c == '\n') {
51 *BOOT_SIO0TXB = '\r';
52 while ((*BOOT_SIO0STS & 0x3) != 0x3)
53 cpu_relax();
54 }
55 *BOOT_SIO0TXB = c;
56}
57#else /* !(CONFIG_PLAT_M32700UT) */
58#if defined(CONFIG_PLAT_MAPPI2)
59#define SIO0STS (volatile unsigned short *)(0xa0efd000 + 14)
60#define SIO0TXB (volatile unsigned short *)(0xa0efd000 + 30)
61#else
62#define SIO0STS (volatile unsigned short *)(0x00efd000 + 14)
63#define SIO0TXB (volatile unsigned short *)(0x00efd000 + 30)
64#endif
65
66static void m32r_putc(char c)
67{
68 while ((*SIO0STS & 0x1) == 0)
69 cpu_relax();
70 if (c == '\n') {
71 *SIO0TXB = '\r';
72 while ((*SIO0STS & 0x1) == 0)
73 cpu_relax();
74 }
75 *SIO0TXB = c;
76}
77#endif