lin
2025-01-10 9ec4e21f2f615ef95b70a249569906799e36bace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: GPL-2.0+
/*
 * (C) Copyright 2007-2011
 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
 * Tom Cubie <tangliang@allwinnertech.com>
 */
 
#include <common.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clock.h>
#include <axp_pmic.h>
#include <errno.h>
 
 
 
#ifdef CONFIG_DISPLAY_CPUINFO
int print_cpuinfo(void)
{
   tick_printf("CPU:   Allwinner Family\n");
   return 0;
}
#endif
 
 
 
int sunxi_get_sid(unsigned int *sid)
{
#ifdef SUNXI_SID_SRAM_BASE
   int i;
   for (i = 0; i< 4; i++)
       sid[i] = readl((ulong)SUNXI_SID_SRAM_BASE + 4 * i);
   return 0;
#else
   return -ENODEV;
#endif
}