^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Defines machines for CSR SiRFprimaII
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/sizes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <asm/mach-types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <asm/mach/arch.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/of_platform.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include "common.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) static void __init __maybe_unused sirfsoc_init_late(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) sirfsoc_pm_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #ifdef CONFIG_ARCH_ATLAS6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) static const char *const atlas6_dt_match[] __initconst = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) "sirf,atlas6",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) /* Maintainer: Barry Song <baohua.song@csr.com> */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) .l2c_aux_val = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) .l2c_aux_mask = ~0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) .init_late = sirfsoc_init_late,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) .dt_compat = atlas6_dt_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) MACHINE_END
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #ifdef CONFIG_ARCH_PRIMA2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) static const char *const prima2_dt_match[] __initconst = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) "sirf,prima2",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) /* Maintainer: Barry Song <baohua.song@csr.com> */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) .l2c_aux_val = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) .l2c_aux_mask = ~0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) .dma_zone_size = SZ_256M,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) .init_late = sirfsoc_init_late,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) .dt_compat = prima2_dt_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) MACHINE_END
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #ifdef CONFIG_ARCH_ATLAS7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) static const char *const atlas7_dt_match[] __initconst = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) "sirf,atlas7",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) DT_MACHINE_START(ATLAS7_DT, "Generic ATLAS7 (Flattened Device Tree)")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) /* Maintainer: Barry Song <baohua.song@csr.com> */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) .smp = smp_ops(sirfsoc_smp_ops),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) .dt_compat = atlas7_dt_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) MACHINE_END
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #endif