diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cpu.h | 15 | ||||
| -rw-r--r-- | include/linux/fsl_devices.h | 11 | ||||
| -rw-r--r-- | include/linux/kvm.h | 1 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 14 | ||||
| -rw-r--r-- | include/linux/spi/mpc52xx_spi.h | 10 |
5 files changed, 50 insertions, 1 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 47536197ffdd..e287863ac053 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -43,6 +43,8 @@ extern int sched_create_sysfs_power_savings_entries(struct sysdev_class *cls); | |||
| 43 | 43 | ||
| 44 | #ifdef CONFIG_HOTPLUG_CPU | 44 | #ifdef CONFIG_HOTPLUG_CPU |
| 45 | extern void unregister_cpu(struct cpu *cpu); | 45 | extern void unregister_cpu(struct cpu *cpu); |
| 46 | extern ssize_t arch_cpu_probe(const char *, size_t); | ||
| 47 | extern ssize_t arch_cpu_release(const char *, size_t); | ||
| 46 | #endif | 48 | #endif |
| 47 | struct notifier_block; | 49 | struct notifier_block; |
| 48 | 50 | ||
| @@ -115,6 +117,19 @@ extern void put_online_cpus(void); | |||
| 115 | #define unregister_hotcpu_notifier(nb) unregister_cpu_notifier(nb) | 117 | #define unregister_hotcpu_notifier(nb) unregister_cpu_notifier(nb) |
| 116 | int cpu_down(unsigned int cpu); | 118 | int cpu_down(unsigned int cpu); |
| 117 | 119 | ||
| 120 | #ifdef CONFIG_ARCH_CPU_PROBE_RELEASE | ||
| 121 | extern void cpu_hotplug_driver_lock(void); | ||
| 122 | extern void cpu_hotplug_driver_unlock(void); | ||
| 123 | #else | ||
| 124 | static inline void cpu_hotplug_driver_lock(void) | ||
| 125 | { | ||
| 126 | } | ||
| 127 | |||
| 128 | static inline void cpu_hotplug_driver_unlock(void) | ||
| 129 | { | ||
| 130 | } | ||
| 131 | #endif | ||
| 132 | |||
| 118 | #else /* CONFIG_HOTPLUG_CPU */ | 133 | #else /* CONFIG_HOTPLUG_CPU */ |
| 119 | 134 | ||
| 120 | #define get_online_cpus() do { } while (0) | 135 | #define get_online_cpus() do { } while (0) |
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 43fc95d822d5..28e33fea5107 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h | |||
| @@ -74,7 +74,12 @@ struct spi_device; | |||
| 74 | struct fsl_spi_platform_data { | 74 | struct fsl_spi_platform_data { |
| 75 | u32 initial_spmode; /* initial SPMODE value */ | 75 | u32 initial_spmode; /* initial SPMODE value */ |
| 76 | s16 bus_num; | 76 | s16 bus_num; |
| 77 | bool qe_mode; | 77 | unsigned int flags; |
| 78 | #define SPI_QE_CPU_MODE (1 << 0) /* QE CPU ("PIO") mode */ | ||
| 79 | #define SPI_CPM_MODE (1 << 1) /* CPM/QE ("DMA") mode */ | ||
| 80 | #define SPI_CPM1 (1 << 2) /* SPI unit is in CPM1 block */ | ||
| 81 | #define SPI_CPM2 (1 << 3) /* SPI unit is in CPM2 block */ | ||
| 82 | #define SPI_QE (1 << 4) /* SPI unit is in QE block */ | ||
| 78 | /* board specific information */ | 83 | /* board specific information */ |
| 79 | u16 max_chipselect; | 84 | u16 max_chipselect; |
| 80 | void (*cs_control)(struct spi_device *spi, bool on); | 85 | void (*cs_control)(struct spi_device *spi, bool on); |
| @@ -90,6 +95,10 @@ struct mpc8xx_pcmcia_ops { | |||
| 90 | * lead to a deep sleep (i.e. power removed from the core, | 95 | * lead to a deep sleep (i.e. power removed from the core, |
| 91 | * instead of just the clock). | 96 | * instead of just the clock). |
| 92 | */ | 97 | */ |
| 98 | #if defined(CONFIG_PPC_83xx) && defined(CONFIG_SUSPEND) | ||
| 93 | int fsl_deep_sleep(void); | 99 | int fsl_deep_sleep(void); |
| 100 | #else | ||
| 101 | static inline int fsl_deep_sleep(void) { return 0; } | ||
| 102 | #endif | ||
| 94 | 103 | ||
| 95 | #endif /* _FSL_DEVICE_H_ */ | 104 | #endif /* _FSL_DEVICE_H_ */ |
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 2d241da07236..a24de0b1858e 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
| @@ -496,6 +496,7 @@ struct kvm_ioeventfd { | |||
| 496 | #define KVM_CAP_VCPU_EVENTS 41 | 496 | #define KVM_CAP_VCPU_EVENTS 41 |
| 497 | #endif | 497 | #endif |
| 498 | #define KVM_CAP_S390_PSW 42 | 498 | #define KVM_CAP_S390_PSW 42 |
| 499 | #define KVM_CAP_PPC_SEGSTATE 43 | ||
| 499 | 500 | ||
| 500 | #ifdef KVM_CAP_IRQ_ROUTING | 501 | #ifdef KVM_CAP_IRQ_ROUTING |
| 501 | 502 | ||
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index cabf074b4324..4013b656ba7c 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
| @@ -2293,6 +2293,20 @@ | |||
| 2293 | #define PCI_DEVICE_ID_MPC8536 0x0051 | 2293 | #define PCI_DEVICE_ID_MPC8536 0x0051 |
| 2294 | #define PCI_DEVICE_ID_P2020E 0x0070 | 2294 | #define PCI_DEVICE_ID_P2020E 0x0070 |
| 2295 | #define PCI_DEVICE_ID_P2020 0x0071 | 2295 | #define PCI_DEVICE_ID_P2020 0x0071 |
| 2296 | #define PCI_DEVICE_ID_P2010E 0x0078 | ||
| 2297 | #define PCI_DEVICE_ID_P2010 0x0079 | ||
| 2298 | #define PCI_DEVICE_ID_P1020E 0x0100 | ||
| 2299 | #define PCI_DEVICE_ID_P1020 0x0101 | ||
| 2300 | #define PCI_DEVICE_ID_P1011E 0x0108 | ||
| 2301 | #define PCI_DEVICE_ID_P1011 0x0109 | ||
| 2302 | #define PCI_DEVICE_ID_P1022E 0x0110 | ||
| 2303 | #define PCI_DEVICE_ID_P1022 0x0111 | ||
| 2304 | #define PCI_DEVICE_ID_P1013E 0x0118 | ||
| 2305 | #define PCI_DEVICE_ID_P1013 0x0119 | ||
| 2306 | #define PCI_DEVICE_ID_P4080E 0x0400 | ||
| 2307 | #define PCI_DEVICE_ID_P4080 0x0401 | ||
| 2308 | #define PCI_DEVICE_ID_P4040E 0x0408 | ||
| 2309 | #define PCI_DEVICE_ID_P4040 0x0409 | ||
| 2296 | #define PCI_DEVICE_ID_MPC8641 0x7010 | 2310 | #define PCI_DEVICE_ID_MPC8641 0x7010 |
| 2297 | #define PCI_DEVICE_ID_MPC8641D 0x7011 | 2311 | #define PCI_DEVICE_ID_MPC8641D 0x7011 |
| 2298 | #define PCI_DEVICE_ID_MPC8610 0x7018 | 2312 | #define PCI_DEVICE_ID_MPC8610 0x7018 |
diff --git a/include/linux/spi/mpc52xx_spi.h b/include/linux/spi/mpc52xx_spi.h new file mode 100644 index 000000000000..d1004cf09241 --- /dev/null +++ b/include/linux/spi/mpc52xx_spi.h | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | |||
| 2 | #ifndef INCLUDE_MPC5200_SPI_H | ||
| 3 | #define INCLUDE_MPC5200_SPI_H | ||
| 4 | |||
| 5 | extern void mpc52xx_spi_set_premessage_hook(struct spi_master *master, | ||
| 6 | void (*hook)(struct spi_message *m, | ||
| 7 | void *context), | ||
| 8 | void *hook_context); | ||
| 9 | |||
| 10 | #endif | ||
