Merge tag 'stable/frontswap.v16-tag' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-starfive.git] / include / linux / basic_mmio_gpio.h
index feb9121..1c504ca 100644 (file)
@@ -67,6 +67,10 @@ int bgpio_remove(struct bgpio_chip *bgc);
 int bgpio_init(struct bgpio_chip *bgc, struct device *dev,
               unsigned long sz, void __iomem *dat, void __iomem *set,
               void __iomem *clr, void __iomem *dirout, void __iomem *dirin,
-              bool big_endian);
+              unsigned long flags);
+
+#define BGPIOF_BIG_ENDIAN              BIT(0)
+#define BGPIOF_UNREADABLE_REG_SET      BIT(1) /* reg_set is unreadable */
+#define BGPIOF_UNREADABLE_REG_DIR      BIT(2) /* reg_dir is unreadable */
 
 #endif /* __BASIC_MMIO_GPIO_H */