| @@ -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 | | − |
| 40 | | −void __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 | | − |
| 52 | | −void __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 | | − |
| 59 | | −static struct bus_type s3c6400_subsys = { |
| 60 | | − .name = "s3c6400-core", |
| 61 | | − .dev_name = "s3c6400-core", |
| 62 | | −}; |
| 63 | | − |
| 64 | | −static struct device s3c6400_dev = { |
| 65 | | − .bus = &s3c6400_subsys, |
| 66 | | −}; |
| 67 | | − |
| 68 | | −static 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 | | − |
| 77 | | −core_initcall(s3c6400_core_init); |
| 78 | | − |
| 79 | | −int __init s3c6400_init(void) |
| 80 | | −{ |
| 81 | | − printk("S3C6400: Initialising architecture\n"); |
| 82 | | − |
| 83 | | − return device_register(&s3c6400_dev); |
| 84 | | −} |