Lines Matching +full:sun4i +full:- +full:a10 +full:- +full:sid
1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2007-2011
20 static int bonding_id = -1; in sunxi_get_ss_bonding_id()
22 if (bonding_id != -1) in sunxi_get_ss_bonding_id()
26 setbits_le32(&ccm->ahb_reset0_cfg, 1 << AHB_RESET_OFFSET_SS); in sunxi_get_ss_bonding_id()
27 setbits_le32(&ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_SS); in sunxi_get_ss_bonding_id()
33 clrbits_le32(&ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_SS); in sunxi_get_ss_bonding_id()
34 clrbits_le32(&ccm->ahb_reset0_cfg, 1 << AHB_RESET_OFFSET_SS); in sunxi_get_ss_bonding_id()
58 puts("CPU: Allwinner A10 (SUN4I)\n"); in print_cpuinfo()
139 int sunxi_get_sid(unsigned int *sid) in sunxi_get_sid() argument
142 return axp_get_sid(sid); in sunxi_get_sid()
145 * H3 SID controller has a bug, which makes the initial value of in sunxi_get_sid()
147 * Read the value directly from SID controller, in order to get in sunxi_get_sid()
154 sid[i] = sun8i_efuse_read(i * 4); in sunxi_get_sid()
161 sid[i] = readl((ulong)SUNXI_SID_BASE + 4 * i); in sunxi_get_sid()
165 return -ENODEV; in sunxi_get_sid()