altera-a10sr.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) altera-a10sr.c (dd47e97244709aab3edda281e0876c0b86bbe07c)
1/*
2 * Altera Arria10 DevKit System Resource MFD Driver
3 *
4 * Author: Thor Thayer <tthayer@opensource.altera.com>
5 *
6 * Copyright Intel Corporation (C) 2014-2016. All Rights Reserved
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 19 unchanged lines hidden (view full) ---

28#include <linux/of.h>
29#include <linux/spi/spi.h>
30
31static const struct mfd_cell altr_a10sr_subdev_info[] = {
32 {
33 .name = "altr_a10sr_gpio",
34 .of_compatible = "altr,a10sr-gpio",
35 },
1/*
2 * Altera Arria10 DevKit System Resource MFD Driver
3 *
4 * Author: Thor Thayer <tthayer@opensource.altera.com>
5 *
6 * Copyright Intel Corporation (C) 2014-2016. All Rights Reserved
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 19 unchanged lines hidden (view full) ---

28#include <linux/of.h>
29#include <linux/spi/spi.h>
30
31static const struct mfd_cell altr_a10sr_subdev_info[] = {
32 {
33 .name = "altr_a10sr_gpio",
34 .of_compatible = "altr,a10sr-gpio",
35 },
36 {
37 .name = "altr_a10sr_reset",
38 .of_compatible = "altr,a10sr-reset",
39 },
36};
37
38static bool altr_a10sr_reg_readable(struct device *dev, unsigned int reg)
39{
40 switch (reg) {
41 case ALTR_A10SR_VERSION_READ:
42 case ALTR_A10SR_LED_REG:
43 case ALTR_A10SR_PBDSW_REG:

--- 124 unchanged lines hidden ---
40};
41
42static bool altr_a10sr_reg_readable(struct device *dev, unsigned int reg)
43{
44 switch (reg) {
45 case ALTR_A10SR_VERSION_READ:
46 case ALTR_A10SR_LED_REG:
47 case ALTR_A10SR_PBDSW_REG:

--- 124 unchanged lines hidden ---