blob: 47c7819edb9bbd56c291ab6f0902c047214aedbf [file] [log] [blame]
Binghua Duan02c981c2011-07-08 17:40:12 +08001/*
Barry Song013dd122011-09-22 22:51:30 -07002 * Defines machines for CSR SiRFprimaII
Binghua Duan02c981c2011-07-08 17:40:12 +08003 *
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
5 *
6 * Licensed under GPLv2 or later.
7 */
8
9#include <linux/init.h>
10#include <linux/kernel.h>
Barry Song1bdfd27a2011-11-17 22:18:14 +080011#include <asm/sizes.h>
Binghua Duan02c981c2011-07-08 17:40:12 +080012#include <asm/mach-types.h>
13#include <asm/mach/arch.h>
14#include <linux/of.h>
15#include <linux/of_platform.h>
16#include "common.h"
17
Barry Song951ec092014-02-18 14:46:31 +080018static void __init sirfsoc_init_late(void)
Shawn Guoa4b46742012-04-26 20:51:36 +080019{
20 sirfsoc_pm_init();
21}
22
Barry Song4898de32012-12-20 19:37:32 +080023static __init void sirfsoc_map_io(void)
24{
25 sirfsoc_map_lluart();
26 sirfsoc_map_scu();
27}
28
Barry Songd4fe49e2013-03-18 15:04:38 +080029#ifdef CONFIG_ARCH_ATLAS6
Barry Song8ccf1662014-02-18 14:46:29 +080030static const char *atlas6_dt_match[] __initconst = {
Barry Songd4fe49e2013-03-18 15:04:38 +080031 "sirf,atlas6",
32 NULL
33};
34
35DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
36 /* Maintainer: Barry Song <baohua.song@csr.com> */
37 .map_io = sirfsoc_map_io,
Barry Songd4fe49e2013-03-18 15:04:38 +080038 .init_late = sirfsoc_init_late,
39 .dt_compat = atlas6_dt_match,
Barry Songd4fe49e2013-03-18 15:04:38 +080040MACHINE_END
41#endif
42
Barry Songd0ec63f2012-08-23 13:41:57 +080043#ifdef CONFIG_ARCH_PRIMA2
Barry Song8ccf1662014-02-18 14:46:29 +080044static const char *prima2_dt_match[] __initconst = {
Barry Song5a0ec562013-03-05 11:00:43 +080045 "sirf,prima2",
46 NULL
Binghua Duan02c981c2011-07-08 17:40:12 +080047};
48
Barry Songd0ec63f2012-08-23 13:41:57 +080049DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
Binghua Duan02c981c2011-07-08 17:40:12 +080050 /* Maintainer: Barry Song <baohua.song@csr.com> */
Barry Song4898de32012-12-20 19:37:32 +080051 .map_io = sirfsoc_map_io,
Nicolas Pitre98b01242011-09-02 21:05:10 -040052 .dma_zone_size = SZ_256M,
Shawn Guoa4b46742012-04-26 20:51:36 +080053 .init_late = sirfsoc_init_late,
Barry Songd0ec63f2012-08-23 13:41:57 +080054 .dt_compat = prima2_dt_match,
Binghua Duan02c981c2011-07-08 17:40:12 +080055MACHINE_END
Barry Songd0ec63f2012-08-23 13:41:57 +080056#endif
Barry Song4898de32012-12-20 19:37:32 +080057
58#ifdef CONFIG_ARCH_MARCO
Barry Song8ccf1662014-02-18 14:46:29 +080059static const char *marco_dt_match[] __initconst = {
Barry Song4898de32012-12-20 19:37:32 +080060 "sirf,marco",
61 NULL
62};
63
64DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)")
65 /* Maintainer: Barry Song <baohua.song@csr.com> */
66 .smp = smp_ops(sirfsoc_smp_ops),
67 .map_io = sirfsoc_map_io,
Barry Song4898de32012-12-20 19:37:32 +080068 .init_late = sirfsoc_init_late,
69 .dt_compat = marco_dt_match,
Barry Song4898de32012-12-20 19:37:32 +080070MACHINE_END
71#endif