mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
Merge branches 'arm', 'at91', 'ep93xx', 'iop', 'ks8695', 'misc', 'mxc', 'ns9x', 'orion', 'pxa', 'sa1100', 's3c' and 'sparsemem' into devel
This commit is contained in:
parent
ba9279519b
ad48ce74f7
b685004f8d
c34002c102
fdb72fd84c
c48b2e90ae
3a8daaa49f
04c366f063
875492511a
58762e77ae
3e238be2f7
140749e2bf
05944d74bc
commit
d1964dab60
287 changed files with 21672 additions and 7029 deletions
|
|
@ -27,7 +27,10 @@ extern int __devexit __pata_platform_remove(struct device *dev);
|
|||
/*
|
||||
* Marvell SATA private data
|
||||
*/
|
||||
struct mbus_dram_target_info;
|
||||
|
||||
struct mv_sata_platform_data {
|
||||
struct mbus_dram_target_info *dram;
|
||||
int n_ports; /* number of sata ports */
|
||||
};
|
||||
|
||||
|
|
|
|||
36
include/linux/mbus.h
Normal file
36
include/linux/mbus.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Marvell MBUS common definitions.
|
||||
*
|
||||
* Copyright (C) 2008 Marvell Semiconductor
|
||||
*
|
||||
* This file is licensed under the terms of the GNU General Public
|
||||
* License version 2. This program is licensed "as is" without any
|
||||
* warranty of any kind, whether express or implied.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_MBUS_H
|
||||
#define __LINUX_MBUS_H
|
||||
|
||||
struct mbus_dram_target_info
|
||||
{
|
||||
/*
|
||||
* The 4-bit MBUS target ID of the DRAM controller.
|
||||
*/
|
||||
u8 mbus_dram_target_id;
|
||||
|
||||
/*
|
||||
* The base address, size, and MBUS attribute ID for each
|
||||
* of the possible DRAM chip selects. Peripherals are
|
||||
* required to support at least 4 decode windows.
|
||||
*/
|
||||
int num_cs;
|
||||
struct mbus_dram_window {
|
||||
u8 cs_index;
|
||||
u8 mbus_attr;
|
||||
u32 base;
|
||||
u32 size;
|
||||
} cs[4];
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
57
include/linux/mfd/htc-egpio.h
Normal file
57
include/linux/mfd/htc-egpio.h
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* HTC simple EGPIO irq and gpio extender
|
||||
*/
|
||||
|
||||
#ifndef __HTC_EGPIO_H__
|
||||
#define __HTC_EGPIO_H__
|
||||
|
||||
#include <linux/gpio.h>
|
||||
|
||||
/* Descriptive values for all-in or all-out htc_egpio_chip descriptors. */
|
||||
#define HTC_EGPIO_OUTPUT (~0)
|
||||
#define HTC_EGPIO_INPUT 0
|
||||
|
||||
/**
|
||||
* struct htc_egpio_chip - descriptor to create gpio_chip for register range
|
||||
* @reg_start: index of first register
|
||||
* @gpio_base: gpio number of first pin in this register range
|
||||
* @num_gpios: number of gpios in this register range, max BITS_PER_LONG
|
||||
* (number of registers = DIV_ROUND_UP(num_gpios, reg_width))
|
||||
* @direction: bitfield, '0' = input, '1' = output,
|
||||
*/
|
||||
struct htc_egpio_chip {
|
||||
int reg_start;
|
||||
int gpio_base;
|
||||
int num_gpios;
|
||||
unsigned long direction;
|
||||
unsigned long initial_values;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct htc_egpio_platform_data - description provided by the arch
|
||||
* @irq_base: beginning of available IRQs (eg, IRQ_BOARD_START)
|
||||
* @num_irqs: number of irqs
|
||||
* @reg_width: number of bits per register, either 8 or 16 bit
|
||||
* @bus_width: alignment of the registers, either 16 or 32 bit
|
||||
* @invert_acks: set if chip requires writing '0' to ack an irq, instead of '1'
|
||||
* @ack_register: location of the irq/ack register
|
||||
* @chip: pointer to array of htc_egpio_chip descriptors
|
||||
* @num_chips: number of egpio chip descriptors
|
||||
*/
|
||||
struct htc_egpio_platform_data {
|
||||
int bus_width;
|
||||
int reg_width;
|
||||
|
||||
int irq_base;
|
||||
int num_irqs;
|
||||
int invert_acks;
|
||||
int ack_register;
|
||||
|
||||
struct htc_egpio_chip *chip;
|
||||
int num_chips;
|
||||
};
|
||||
|
||||
/* Determine the wakeup irq, to be called during early resume */
|
||||
extern int htc_egpio_get_wakeup_irq(struct device *dev);
|
||||
|
||||
#endif
|
||||
55
include/linux/mfd/htc-pasic3.h
Normal file
55
include/linux/mfd/htc-pasic3.h
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* HTC PASIC3 driver - LEDs and DS1WM
|
||||
*
|
||||
* Copyright (c) 2007 Philipp Zabel <philipp.zabel@gmail.com>
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU General Public
|
||||
* License. See the file COPYING in the main directory of this archive for
|
||||
* more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __PASIC3_H
|
||||
#define __PASIC3_H
|
||||
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/leds.h>
|
||||
|
||||
extern void pasic3_write_register(struct device *dev, u32 reg, u8 val);
|
||||
extern u8 pasic3_read_register(struct device *dev, u32 reg);
|
||||
|
||||
/*
|
||||
* mask for registers 0x20,0x21,0x22
|
||||
*/
|
||||
#define PASIC3_MASK_LED0 0x04
|
||||
#define PASIC3_MASK_LED1 0x08
|
||||
#define PASIC3_MASK_LED2 0x40
|
||||
|
||||
/*
|
||||
* bits in register 0x06
|
||||
*/
|
||||
#define PASIC3_BIT2_LED0 0x08
|
||||
#define PASIC3_BIT2_LED1 0x10
|
||||
#define PASIC3_BIT2_LED2 0x20
|
||||
|
||||
struct pasic3_led {
|
||||
struct led_classdev led;
|
||||
unsigned int hw_num;
|
||||
unsigned int bit2;
|
||||
unsigned int mask;
|
||||
struct pasic3_leds_machinfo *pdata;
|
||||
};
|
||||
|
||||
struct pasic3_leds_machinfo {
|
||||
unsigned int num_leds;
|
||||
unsigned int power_gpio;
|
||||
struct pasic3_led *leds;
|
||||
};
|
||||
|
||||
struct pasic3_platform_data {
|
||||
struct pasic3_leds_machinfo *led_pdata;
|
||||
unsigned int bus_shift;
|
||||
unsigned int clock_rate;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -1541,6 +1541,12 @@ static inline void idle_task_exit(void) {}
|
|||
|
||||
extern void sched_idle_next(void);
|
||||
|
||||
#if defined(CONFIG_NO_HZ) && defined(CONFIG_SMP)
|
||||
extern void wake_up_idle_cpu(int cpu);
|
||||
#else
|
||||
static inline void wake_up_idle_cpu(int cpu) { }
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCHED_DEBUG
|
||||
extern unsigned int sysctl_sched_latency;
|
||||
extern unsigned int sysctl_sched_min_granularity;
|
||||
|
|
|
|||
Loading…
Reference in a new issue