History

ARM: s3c: remove s3c6400 support

No board file and no dts file references the s3c6400 now, it's only s3c6410, so remove the final bits as well.

Arnd Bergmann committed 4 years ago

Commit 6bac4f71 parent 0d297df3 files · +0 −93Browse files

Unified · Split

3 files
  1. arch/arm/mach-s3c/Makefile.s3c64xx +0 −1
  2. arch/arm/mach-s3c/s3c6400.c +0 −84
  3. arch/arm/mach-s3c/s3c64xx.c +0 −8
arch/arm/mach-s3c/Makefile.s3c64xx+0−1
@@ -16,7 +16,6 @@ obj-$(CONFIG_PM_SLEEP) += irq-pm-s3c64xx.o · 15 unmodified lines
16# Core16# Core
17 17
18obj-y += s3c64xx.o18obj-y += s3c64xx.o
19obj-$(CONFIG_CPU_S3C6400) += s3c6400.o
20obj-$(CONFIG_CPU_S3C6410) += s3c6410.o19obj-$(CONFIG_CPU_S3C6410) += s3c6410.o
21 20
22# DMA support21# DMA support
arch/arm/mach-s3c/s3c6400.c+0−84
@@ -1,84 +0,0 @@
1// SPDX-License-Identifier: GPL-2.0
2//
3// Copyright 2009 Simtec Electronics
4// Ben Dooks <ben@simtec.co.uk>
5// http://armlinux.simtec.co.uk/
6
7/*
8 * NOTE: Code in this file is not used when booting with Device Tree support.
9 */
10
11#include <linux/kernel.h>
12#include <linux/types.h>
13#include <linux/interrupt.h>
14#include <linux/list.h>
15#include <linux/timer.h>
16#include <linux/init.h>
17#include <linux/clk.h>
18#include <linux/io.h>
19#include <linux/device.h>
20#include <linux/serial_core.h>
21#include <linux/serial_s3c.h>
22#include <linux/platform_device.h>
23#include <linux/of.h>
24
25#include <asm/mach/arch.h>
26#include <asm/mach/map.h>
27#include <asm/mach/irq.h>
28
29#include <asm/irq.h>
30
31#include "regs-clock.h"
32
33#include "cpu.h"
34#include "devs.h"
35#include "sdhci.h"
36#include "iic-core.h"
37
38#include "s3c64xx.h"
39
40void __init s3c6400_map_io(void)
41{
42 /* setup SDHCI */
43
44 s3c6400_default_sdhci0();
45 s3c6400_default_sdhci1();
46 s3c6400_default_sdhci2();
47
48 /* the i2c devices are directly compatible with s3c2440 */
49 s3c_i2c0_setname("s3c2440-i2c");
50}
51
52void __init s3c6400_init_irq(void)
53{
54 /* VIC0 does not have IRQS 5..7,
55 * VIC1 is fully populated. */
56 s3c64xx_init_irq(~0 & ~(0xf << 5), ~0);
57}
58
59static struct bus_type s3c6400_subsys = {
60 .name = "s3c6400-core",
61 .dev_name = "s3c6400-core",
62};
63
64static struct device s3c6400_dev = {
65 .bus = &s3c6400_subsys,
66};
67
68static int __init s3c6400_core_init(void)
69{
70 /* Not applicable when using DT. */
71 if (of_have_populated_dt() || soc_is_s3c64xx())
72 return 0;
73
74 return subsys_system_register(&s3c6400_subsys, NULL);
75}
76
77core_initcall(s3c6400_core_init);
78
79int __init s3c6400_init(void)
80{
81 printk("S3C6400: Initialising architecture\n");
82
83 return device_register(&s3c6400_dev);
84}
arch/arm/mach-s3c/s3c64xx.c+0−8
@@ -72,18 +72,10 @@ static void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) · 71 unmodified lines
72 72
73/* table of supported CPUs */73/* table of supported CPUs */
74 74
75static const char name_s3c6400[] = "S3C6400";
76static const char name_s3c6410[] = "S3C6410";75static const char name_s3c6410[] = "S3C6410";
77 76
78static struct cpu_table cpu_ids[] __initdata = {77static struct cpu_table cpu_ids[] __initdata = {
79 {78 {
80 .idcode = S3C6400_CPU_ID,
81 .idmask = S3C64XX_CPU_MASK,
82 .map_io = s3c6400_map_io,
83 .init_uarts = s3c64xx_init_uarts,
84 .init = s3c6400_init,
85 .name = name_s3c6400,
86 }, {
87 .idcode = S3C6410_CPU_ID,79 .idcode = S3C6410_CPU_ID,
88 .idmask = S3C64XX_CPU_MASK,80 .idmask = S3C64XX_CPU_MASK,
89 .map_io = s3c6410_map_io,81 .map_io = s3c6410_map_io,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t