Lines Matching +full:resource +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-sa1100/generic.c
15 #include <linux/dma-mapping.h>
23 #include <linux/irqchip/irq-sa11x0.h>
75 * Default power-off for SA1100
83 /* enable wake-up on GPIO0 (Assabet...) */ in sa1100_power_off()
102 /* Use on-chip reset capability */ in sa11x0_restart()
110 dev->dev.platform_data = data; in sa11x0_register_device()
114 dev->name, err); in sa11x0_register_device()
118 static struct resource sa11x0udc_resources[] = {
126 .name = "sa11x0-udc",
127 .id = -1,
133 .resource = sa11x0udc_resources,
136 static struct resource sa11x0uart1_resources[] = {
142 .name = "sa11x0-uart",
143 .id = 1,
145 .resource = sa11x0uart1_resources,
148 static struct resource sa11x0uart3_resources[] = {
154 .name = "sa11x0-uart",
155 .id = 3,
157 .resource = sa11x0uart3_resources,
160 static struct resource sa11x0mcp_resources[] = {
169 .name = "sa11x0-mcp",
170 .id = -1,
176 .resource = sa11x0mcp_resources,
194 static struct resource sa11x0ssp_resources[] = {
202 .name = "sa11x0-ssp",
203 .id = -1,
209 .resource = sa11x0ssp_resources,
212 static struct resource sa11x0fb_resources[] = {
218 .name = "sa11x0-fb",
219 .id = -1,
224 .resource = sa11x0fb_resources,
236 platform_device_register_simple("sa11x0-pcmcia", socket, NULL, 0); in sa11x0_register_pcmcia()
240 .name = "sa1100-mtd",
241 .id = -1,
245 struct resource *res, int nr) in sa11x0_register_mtd()
247 flash->name = "sa1100"; in sa11x0_register_mtd()
248 sa11x0mtd_device.resource = res; in sa11x0_register_mtd()
253 static struct resource sa1100_rtc_resources[] = {
260 .name = "sa1100-rtc",
261 .id = -1,
263 .resource = sa1100_rtc_resources,
266 static struct resource sa11x0dma_resources[] = {
279 .name = "sa11x0-dma",
280 .id = -1,
286 .resource = sa11x0dma_resources,
300 struct resource wdt_res = DEFINE_RES_MEM(0x90000000, 0x20); in sa1100_init()
305 platform_device_register_simple("sa1100_wdt", -1, &wdt_res, 1); in sa1100_init()
322 struct regulator_init_data *id; in sa11x0_register_fixed_regulator() local
324 cfg->init_data = id = kzalloc(sizeof(*cfg->init_data), GFP_KERNEL); in sa11x0_register_fixed_regulator()
325 if (!cfg->init_data) in sa11x0_register_fixed_regulator()
326 return -ENOMEM; in sa11x0_register_fixed_regulator()
329 id->constraints.always_on = 1; in sa11x0_register_fixed_regulator()
330 id->constraints.name = cfg->supply_name; in sa11x0_register_fixed_regulator()
331 id->constraints.min_uV = cfg->microvolts; in sa11x0_register_fixed_regulator()
332 id->constraints.max_uV = cfg->microvolts; in sa11x0_register_fixed_regulator()
333 id->constraints.valid_modes_mask = REGULATOR_MODE_NORMAL; in sa11x0_register_fixed_regulator()
334 id->constraints.valid_ops_mask = REGULATOR_CHANGE_STATUS; in sa11x0_register_fixed_regulator()
335 id->consumer_supplies = supplies; in sa11x0_register_fixed_regulator()
336 id->num_consumer_supplies = num_supplies; in sa11x0_register_fixed_regulator()
338 platform_device_register_resndata(NULL, "reg-fixed-voltage", n, in sa11x0_register_fixed_regulator()
348 * 0xf0000000-0xf3ffffff: miscellaneous stuff (CPLDs, etc.)
349 * 0xf4000000-0xf4ffffff: SA-1111
350 * 0xf5000000-0xf5ffffff: reserved (used by cache flushing area)
351 * 0xf6000000-0xfffeffff: reserved (internal SA1100 IO defined above)
352 * 0xffff0000-0xffff0fff: SA1100 exception vectors
353 * 0xffff2000-0xffff2fff: Minicache copy_user_page area
395 static struct resource irq_resource =
430 * If the system is going to use the SA-1111 DMA engines, set up
462 return -EINVAL; in sa11x0_sc_set_wake()