Searched refs:ts78xx_fpga (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/arch/arm/mach-orion5x/
H A Dts78xx-setup.c42 static struct ts78xx_fpga_data ts78xx_fpga = { variable in typeref:struct:ts78xx_fpga_data
139 if (ts78xx_fpga.supports.ts_rtc.init == 0) { ts78xx_ts_rtc_load()
142 ts78xx_fpga.supports.ts_rtc.init = 1; ts78xx_ts_rtc_load()
315 if (ts78xx_fpga.supports.ts_nand.init == 0) { ts78xx_ts_nand_load()
318 ts78xx_fpga.supports.ts_nand.init = 1; ts78xx_ts_nand_load()
358 if (ts78xx_fpga.supports.ts_rng.init == 0) { ts78xx_ts_rng_load()
361 ts78xx_fpga.supports.ts_rng.init = 1; ts78xx_ts_rng_load()
380 ts78xx_fpga.supports.ts_rtc.init = 0; ts78xx_fpga_devices_zero_init()
381 ts78xx_fpga.supports.ts_nand.init = 0; ts78xx_fpga_devices_zero_init()
382 ts78xx_fpga.supports.ts_rng.init = 0; ts78xx_fpga_devices_zero_init()
388 switch (ts78xx_fpga.id) { ts78xx_fpga_supports()
398 ts78xx_fpga.supports.ts_rtc.present = 1; ts78xx_fpga_supports()
399 ts78xx_fpga.supports.ts_nand.present = 1; ts78xx_fpga_supports()
400 ts78xx_fpga.supports.ts_rng.present = 1; ts78xx_fpga_supports()
404 switch ((ts78xx_fpga.id >> 8) & 0xffffff) { ts78xx_fpga_supports()
407 ts78xx_fpga.id & 0xff); ts78xx_fpga_supports()
408 ts78xx_fpga.supports.ts_rtc.present = 1; ts78xx_fpga_supports()
409 ts78xx_fpga.supports.ts_nand.present = 1; ts78xx_fpga_supports()
410 ts78xx_fpga.supports.ts_rng.present = 1; ts78xx_fpga_supports()
413 ts78xx_fpga.supports.ts_rtc.present = 0; ts78xx_fpga_supports()
414 ts78xx_fpga.supports.ts_nand.present = 0; ts78xx_fpga_supports()
415 ts78xx_fpga.supports.ts_rng.present = 0; ts78xx_fpga_supports()
424 if (ts78xx_fpga.supports.ts_rtc.present == 1) { ts78xx_fpga_load_devices()
427 ts78xx_fpga.supports.ts_rtc.present = 0; ts78xx_fpga_load_devices()
430 if (ts78xx_fpga.supports.ts_nand.present == 1) { ts78xx_fpga_load_devices()
433 ts78xx_fpga.supports.ts_nand.present = 0; ts78xx_fpga_load_devices()
436 if (ts78xx_fpga.supports.ts_rng.present == 1) { ts78xx_fpga_load_devices()
439 ts78xx_fpga.supports.ts_rng.present = 0; ts78xx_fpga_load_devices()
450 if (ts78xx_fpga.supports.ts_rtc.present == 1) ts78xx_fpga_unload_devices()
452 if (ts78xx_fpga.supports.ts_nand.present == 1) ts78xx_fpga_unload_devices()
454 if (ts78xx_fpga.supports.ts_rng.present == 1) ts78xx_fpga_unload_devices()
462 ts78xx_fpga.id = readl(TS78XX_FPGA_REGS_VIRT_BASE); ts78xx_fpga_load()
465 (ts78xx_fpga.id >> 8) & 0xffffff, ts78xx_fpga_load()
466 ts78xx_fpga.id & 0xff); ts78xx_fpga_load()
471 ts78xx_fpga.state = -1; ts78xx_fpga_load()
491 if (ts78xx_fpga.id != fpga_id) { ts78xx_fpga_unload()
494 (ts78xx_fpga.id >> 8) & 0xffffff, ts78xx_fpga.id & 0xff, ts78xx_fpga_unload()
496 ts78xx_fpga.state = -1; ts78xx_fpga_unload()
501 ts78xx_fpga.state = -1; ts78xx_fpga_unload()
511 if (ts78xx_fpga.state < 0) ts78xx_fpga_show()
514 return sprintf(buf, "%s\n", (ts78xx_fpga.state) ? "online" : "offline"); ts78xx_fpga_show()
522 if (ts78xx_fpga.state < 0) { ts78xx_fpga_store()
534 if (ts78xx_fpga.state == value) ts78xx_fpga_store()
537 ret = (ts78xx_fpga.state == 0) ts78xx_fpga_store()
542 ts78xx_fpga.state = value; ts78xx_fpga_store()
548 __ATTR(ts78xx_fpga, 0644, ts78xx_fpga_show, ts78xx_fpga_store);

Completed in 144 milliseconds