summaryrefslogtreecommitdiff
path: root/include/linux/logic_pio.h
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2019-11-05 01:22:16 +0800
committerWei Xu <xuwei5@hisilicon.com>2019-11-05 08:45:46 +0800
commitb8104fda1fff0882e43b7e98832a76d7e98eb3e9 (patch)
tree0962b36cf3e9519326acc330dfefae3b214b706d /include/linux/logic_pio.h
parent0376fa72a45536cc582aeef6566558d3fe318e2e (diff)
logic_pio: Define PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO
With the goal of expanding the test coverage of the HiSi LPC driver to !ARM64, define a dummy PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO, which is required by the named driver. Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'include/linux/logic_pio.h')
-rw-r--r--include/linux/logic_pio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/logic_pio.h b/include/linux/logic_pio.h
index 88e1e6304a71..54945aa824b4 100644
--- a/include/linux/logic_pio.h
+++ b/include/linux/logic_pio.h
@@ -108,10 +108,10 @@ void logic_outsl(unsigned long addr, const void *buffer, unsigned int count);
* area by redefining the macro below.
*/
#define PIO_INDIRECT_SIZE 0x4000
-#define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
#else
-#define MMIO_UPPER_LIMIT IO_SPACE_LIMIT
+#define PIO_INDIRECT_SIZE 0
#endif /* CONFIG_INDIRECT_PIO */
+#define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
struct logic_pio_hwaddr *find_io_range_by_fwnode(struct fwnode_handle *fwnode);
unsigned long logic_pio_trans_hwaddr(struct fwnode_handle *fwnode,