0001
0002
0003
0004
0005
0006
0007
0008 #include <linux/module.h>
0009 #include <linux/kernel.h>
0010 #include <linux/init.h>
0011 #include <linux/io.h>
0012
0013 #include "map-base.h"
0014 #include "cpu.h"
0015
0016 unsigned long samsung_cpu_id;
0017
0018 void __init s3c64xx_init_cpu(void)
0019 {
0020 samsung_cpu_id = readl_relaxed(S3C_VA_SYS + 0x118);
0021 if (!samsung_cpu_id) {
0022
0023
0024
0025
0026 writel_relaxed(0x0, S3C_VA_SYS + 0xA1C);
0027 samsung_cpu_id = readl_relaxed(S3C_VA_SYS + 0xA1C);
0028 }
0029
0030 pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id);
0031 pr_err("The platform is deprecated and scheduled for removal. Please reach to the maintainers of the platform and linux-samsung-soc@vger.kernel.org if you still use it. Without such feedback, the platform will be removed after 2022.\n");
0032 }