Lines Matching +full:cpu +full:- +full:cfg

1 // SPDX-License-Identifier: GPL-2.0
7 // S3C series CPU initialisation
26 #include "cpu.h"
29 static struct cpu_table *cpu; variable
35 for (; count != 0; count--, tab++) { in s3c_lookup_cpu()
36 if ((idcode & tab->idmask) == (tab->idcode & tab->idmask)) in s3c_lookup_cpu()
46 cpu = s3c_lookup_cpu(idcode, cputab, cputab_size); in s3c_init_cpu()
48 if (cpu == NULL) { in s3c_init_cpu()
49 printk(KERN_ERR "Unknown CPU type 0x%08lx\n", idcode); in s3c_init_cpu()
50 panic("Unknown S3C24XX CPU"); in s3c_init_cpu()
53 printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode); in s3c_init_cpu()
55 if (cpu->init == NULL) { in s3c_init_cpu()
56 printk(KERN_ERR "CPU %s support not enabled\n", cpu->name); in s3c_init_cpu()
57 panic("Unsupported Samsung CPU"); in s3c_init_cpu()
60 if (cpu->map_io) in s3c_init_cpu()
61 cpu->map_io(); in s3c_init_cpu()
63 …d for removal. Please reach to the maintainers of the platform and linux-samsung-soc@vger.kernel.o… in s3c_init_cpu()
85 struct s3c2410_uartcfg *cfg, int no) in s3c24xx_init_uartdevs() argument
93 memcpy(cfgptr, cfg, sizeof(struct s3c2410_uartcfg) * no); in s3c24xx_init_uartdevs()
95 for (uart = 0; uart < no; uart++, cfg++, cfgptr++) { in s3c24xx_init_uartdevs()
96 platdev = s3c24xx_uart_src[cfgptr->hwport]; in s3c24xx_init_uartdevs()
98 resp = res + cfgptr->hwport; in s3c24xx_init_uartdevs()
102 platdev->name = name; in s3c24xx_init_uartdevs()
103 platdev->resource = resp->resources; in s3c24xx_init_uartdevs()
104 platdev->num_resources = resp->nr_resources; in s3c24xx_init_uartdevs()
106 platdev->dev.platform_data = cfgptr; in s3c24xx_init_uartdevs()
113 void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) in s3c24xx_init_uarts() argument
115 if (cpu == NULL) in s3c24xx_init_uarts()
118 if (cpu->init_uarts == NULL && IS_ENABLED(CONFIG_SAMSUNG_ATAGS)) { in s3c24xx_init_uarts()
119 printk(KERN_ERR "s3c24xx_init_uarts: cpu has no uart init\n"); in s3c24xx_init_uarts()
121 (cpu->init_uarts)(cfg, no); in s3c24xx_init_uarts()
133 // do the correct init for cpu in s3c_arch_init()
135 if (cpu == NULL) { in s3c_arch_init()
139 panic("s3c_arch_init: NULL cpu\n"); in s3c_arch_init()
142 ret = (cpu->init)(); in s3c_arch_init()