diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/dt-bindings/power/owl-s500-powergate.h | 19 | ||||
| -rw-r--r-- | include/linux/platform_data/atmel.h | 29 | ||||
| -rw-r--r-- | include/linux/soc/actions/owl-sps.h | 11 |
3 files changed, 37 insertions, 22 deletions
diff --git a/include/dt-bindings/power/owl-s500-powergate.h b/include/dt-bindings/power/owl-s500-powergate.h new file mode 100644 index 000000000000..0a1c451865ea --- /dev/null +++ b/include/dt-bindings/power/owl-s500-powergate.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2017 Andreas Färber | ||
| 3 | * | ||
| 4 | * SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
| 5 | */ | ||
| 6 | #ifndef DT_BINDINGS_POWER_OWL_S500_POWERGATE_H | ||
| 7 | #define DT_BINDINGS_POWER_OWL_S500_POWERGATE_H | ||
| 8 | |||
| 9 | #define S500_PD_VDE 0 | ||
| 10 | #define S500_PD_VCE_SI 1 | ||
| 11 | #define S500_PD_USB2_1 2 | ||
| 12 | #define S500_PD_CPU2 3 | ||
| 13 | #define S500_PD_CPU3 4 | ||
| 14 | #define S500_PD_DMA 5 | ||
| 15 | #define S500_PD_DS 6 | ||
| 16 | #define S500_PD_USB3 7 | ||
| 17 | #define S500_PD_USB2_0 8 | ||
| 18 | |||
| 19 | #endif | ||
diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h index d36bc8d17e97..cdceb4d4ef9d 100644 --- a/include/linux/platform_data/atmel.h +++ b/include/linux/platform_data/atmel.h | |||
| @@ -7,9 +7,6 @@ | |||
| 7 | #ifndef __ATMEL_H__ | 7 | #ifndef __ATMEL_H__ |
| 8 | #define __ATMEL_H__ | 8 | #define __ATMEL_H__ |
| 9 | 9 | ||
| 10 | #include <linux/mtd/nand.h> | ||
| 11 | #include <linux/mtd/partitions.h> | ||
| 12 | |||
| 13 | /* Compact Flash */ | 10 | /* Compact Flash */ |
| 14 | struct at91_cf_data { | 11 | struct at91_cf_data { |
| 15 | int irq_pin; /* I/O IRQ */ | 12 | int irq_pin; /* I/O IRQ */ |
| @@ -22,26 +19,14 @@ struct at91_cf_data { | |||
| 22 | #define AT91_IDE_SWAP_A0_A2 0x02 | 19 | #define AT91_IDE_SWAP_A0_A2 0x02 |
| 23 | }; | 20 | }; |
| 24 | 21 | ||
| 25 | /* NAND / SmartMedia */ | ||
| 26 | struct atmel_nand_data { | ||
| 27 | int enable_pin; /* chip enable */ | ||
| 28 | int det_pin; /* card detect */ | ||
| 29 | int rdy_pin; /* ready/busy */ | ||
| 30 | u8 rdy_pin_active_low; /* rdy_pin value is inverted */ | ||
| 31 | u8 ale; /* address line number connected to ALE */ | ||
| 32 | u8 cle; /* address line number connected to CLE */ | ||
| 33 | u8 bus_width_16; /* buswidth is 16 bit */ | ||
| 34 | u8 ecc_mode; /* ecc mode */ | ||
| 35 | u8 on_flash_bbt; /* bbt on flash */ | ||
| 36 | struct mtd_partition *parts; | ||
| 37 | unsigned int num_parts; | ||
| 38 | bool has_dma; /* support dma transfer */ | ||
| 39 | |||
| 40 | /* default is false, only for at32ap7000 chip is true */ | ||
| 41 | bool need_reset_workaround; | ||
| 42 | }; | ||
| 43 | |||
| 44 | /* FIXME: this needs a better location, but gets stuff building again */ | 22 | /* FIXME: this needs a better location, but gets stuff building again */ |
| 23 | #ifdef CONFIG_ATMEL_PM | ||
| 45 | extern int at91_suspend_entering_slow_clock(void); | 24 | extern int at91_suspend_entering_slow_clock(void); |
| 25 | #else | ||
| 26 | static inline int at91_suspend_entering_slow_clock(void) | ||
| 27 | { | ||
| 28 | return 0; | ||
| 29 | } | ||
| 30 | #endif | ||
| 46 | 31 | ||
| 47 | #endif /* __ATMEL_H__ */ | 32 | #endif /* __ATMEL_H__ */ |
diff --git a/include/linux/soc/actions/owl-sps.h b/include/linux/soc/actions/owl-sps.h new file mode 100644 index 000000000000..33d0dbeceb55 --- /dev/null +++ b/include/linux/soc/actions/owl-sps.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2017 Andreas Färber | ||
| 3 | * | ||
| 4 | * SPDX-License-Identifier: GPL-2.0+ | ||
| 5 | */ | ||
| 6 | #ifndef SOC_ACTIONS_OWL_SPS_H | ||
| 7 | #define SOC_ACTIONS_OWL_SPS_H | ||
| 8 | |||
| 9 | int owl_sps_set_pg(void __iomem *base, u32 pwr_mask, u32 ack_mask, bool enable); | ||
| 10 | |||
| 11 | #endif | ||
