• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-orion5x/

Lines Matching refs:ts78xx_fpga

40 static struct ts78xx_fpga_data ts78xx_fpga = {
137 if (ts78xx_fpga.supports.ts_rtc.init == 0) {
140 ts78xx_fpga.supports.ts_rtc.init = 1;
259 if (ts78xx_fpga.supports.ts_nand.init == 0) {
262 ts78xx_fpga.supports.ts_nand.init = 1;
303 if (ts78xx_fpga.supports.ts_rng.init == 0) {
306 ts78xx_fpga.supports.ts_rng.init = 1;
323 ts78xx_fpga.supports.ts_rtc.init = 0;
324 ts78xx_fpga.supports.ts_nand.init = 0;
325 ts78xx_fpga.supports.ts_rng.init = 0;
331 switch (ts78xx_fpga.id) {
337 ts78xx_fpga.supports.ts_rtc.present = 1;
338 ts78xx_fpga.supports.ts_nand.present = 1;
339 ts78xx_fpga.supports.ts_rng.present = 1;
342 ts78xx_fpga.supports.ts_rtc.present = 0;
343 ts78xx_fpga.supports.ts_nand.present = 0;
344 ts78xx_fpga.supports.ts_rng.present = 0;
352 if (ts78xx_fpga.supports.ts_rtc.present == 1) {
356 ts78xx_fpga.supports.ts_rtc.present = 0;
360 if (ts78xx_fpga.supports.ts_nand.present == 1) {
364 ts78xx_fpga.supports.ts_nand.present = 0;
368 if (ts78xx_fpga.supports.ts_rng.present == 1) {
372 ts78xx_fpga.supports.ts_rng.present = 0;
384 if (ts78xx_fpga.supports.ts_rtc.present == 1)
386 if (ts78xx_fpga.supports.ts_nand.present == 1)
388 if (ts78xx_fpga.supports.ts_rng.present == 1)
396 ts78xx_fpga.id = readl(TS78XX_FPGA_REGS_VIRT_BASE);
399 (ts78xx_fpga.id >> 8) & 0xffffff,
400 ts78xx_fpga.id & 0xff);
405 ts78xx_fpga.state = -1;
425 if (ts78xx_fpga.id != fpga_id) {
428 (ts78xx_fpga.id >> 8) & 0xffffff, ts78xx_fpga.id & 0xff,
430 ts78xx_fpga.state = -1;
435 ts78xx_fpga.state = -1;
445 if (ts78xx_fpga.state < 0)
448 return sprintf(buf, "%s\n", (ts78xx_fpga.state) ? "online" : "offline");
456 if (ts78xx_fpga.state < 0) {
470 if (ts78xx_fpga.state == value)
473 ret = (ts78xx_fpga.state == 0)
478 ts78xx_fpga.state = value;
484 __ATTR(ts78xx_fpga, 0644, ts78xx_fpga_show, ts78xx_fpga_store);