• Home
  • Raw
  • Download

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()
69 * xtal = 0 -> use default PLL crystal value (normally 12MHz)
70 * != 0 -> PLL crystal value in Hz
78 if (cpu == NULL) in s3c24xx_init_clocks()
79 panic("s3c24xx_init_clocks: no cpu setup?\n"); in s3c24xx_init_clocks()
81 if (cpu->init_clocks == NULL) in s3c24xx_init_clocks()
82 panic("s3c24xx_init_clocks: cpu has no clock init\n"); in s3c24xx_init_clocks()
84 (cpu->init_clocks)(xtal); in s3c24xx_init_clocks()
106 struct s3c2410_uartcfg *cfg, int no) in s3c24xx_init_uartdevs() argument
114 memcpy(cfgptr, cfg, sizeof(struct s3c2410_uartcfg) * no); in s3c24xx_init_uartdevs()
116 for (uart = 0; uart < no; uart++, cfg++, cfgptr++) { in s3c24xx_init_uartdevs()
117 platdev = s3c24xx_uart_src[cfgptr->hwport]; in s3c24xx_init_uartdevs()
119 resp = res + cfgptr->hwport; in s3c24xx_init_uartdevs()
123 platdev->name = name; in s3c24xx_init_uartdevs()
124 platdev->resource = resp->resources; in s3c24xx_init_uartdevs()
125 platdev->num_resources = resp->nr_resources; in s3c24xx_init_uartdevs()
127 platdev->dev.platform_data = cfgptr; in s3c24xx_init_uartdevs()
134 void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) in s3c24xx_init_uarts() argument
136 if (cpu == NULL) in s3c24xx_init_uarts()
139 if (cpu->init_uarts == NULL && IS_ENABLED(CONFIG_SAMSUNG_ATAGS)) { in s3c24xx_init_uarts()
140 printk(KERN_ERR "s3c24xx_init_uarts: cpu has no uart init\n"); in s3c24xx_init_uarts()
142 (cpu->init_uarts)(cfg, no); in s3c24xx_init_uarts()
155 // do the correct init for cpu in s3c_arch_init()
157 if (cpu == NULL) { in s3c_arch_init()
161 panic("s3c_arch_init: NULL cpu\n"); in s3c_arch_init()
164 ret = (cpu->init)(); in s3c_arch_init()