Lines Matching +full:fpga +full:- +full:1

1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2008-2009 PIKA Technologies
58 void __iomem *fpga; in warp_post_info() local
62 np = of_find_compatible_node(NULL, NULL, "pika,fpga-sd"); in warp_post_info()
64 return -ENOENT; in warp_post_info()
66 fpga = of_iomap(np, 0); in warp_post_info()
68 if (fpga == NULL) in warp_post_info()
69 return -ENOENT; in warp_post_info()
71 post1 = in_be32(fpga + 0x40); in warp_post_info()
72 post2 = in_be32(fpga + 0x44); in warp_post_info()
74 iounmap(fpga); in warp_post_info()
90 #define WARP_RED_LED 1
111 .name = "leds-gpio",
112 .id = -1,
120 int value = 1; in temp_isr()
128 while (1) { in temp_isr()
135 value ^= 1; in temp_isr()
144 * Because green and red power LEDs are normally driven by leds-gpio driver,
146 * ourselves, we acquire both and then create leds-gpio platform device
159 np = of_find_compatible_node(NULL, NULL, "warp-power-leds"); in pika_setup_leds()
162 return -ENOENT; in pika_setup_leds()
169 if (!of_node_name_eq(child, led->name)) in pika_setup_leds()
172 if (led->gpiod) { in pika_setup_leds()
174 led->name); in pika_setup_leds()
180 led->name); in pika_setup_leds()
184 led->name, error); in pika_setup_leds()
189 led->gpiod = gpio; in pika_setup_leds()
200 printk(KERN_ERR __FILE__ ": Unable to add leds-gpio: %d\n", in pika_setup_leds()
211 gpiod_put(led->gpiod); in pika_setup_leds()
212 led->gpiod = NULL; in pika_setup_leds()
227 /* These registers are in 1 degree increments. */ in pika_setup_critical_temp()
245 static inline void pika_dtm_check_fan(void __iomem *fpga) in pika_dtm_check_fan() argument
248 u32 fan = in_be32(fpga + 0x34) & (1 << 14); in pika_dtm_check_fan()
258 static int pika_dtm_thread(void __iomem *fpga) in pika_dtm_thread() argument
265 return -ENOENT; in pika_dtm_thread()
270 return -ENOENT; in pika_dtm_thread()
284 dev_dbg(&client->dev, "DTM read temp failed.\n"); in pika_dtm_thread()
287 out_be32(fpga + 0x20, temp); in pika_dtm_thread()
290 pika_dtm_check_fan(fpga); in pika_dtm_thread()
304 np = of_find_compatible_node(NULL, NULL, "pika,fpga"); in pika_dtm_start()
306 return -ENOENT; in pika_dtm_start()
311 return -ENOENT; in pika_dtm_start()
316 dtm_thread = kthread_run(pika_dtm_thread, dtm_fpga, "pika-dtm"); in pika_dtm_start()