mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 11:06:39 +07:00
7c2db36e73
Merge misc patches from Andrew Morton: - Florian has vanished so I appear to have become fbdev maintainer again :( - Joel and Mark are distracted to welcome to the new OCFS2 maintainer - The backlight queue - Small core kernel changes - lib/ updates - The rtc queue - Various random bits * akpm: (164 commits) rtc: rtc-davinci: use devm_*() functions rtc: rtc-max8997: use devm_request_threaded_irq() rtc: rtc-max8907: use devm_request_threaded_irq() rtc: rtc-da9052: use devm_request_threaded_irq() rtc: rtc-wm831x: use devm_request_threaded_irq() rtc: rtc-tps80031: use devm_request_threaded_irq() rtc: rtc-lp8788: use devm_request_threaded_irq() rtc: rtc-coh901331: use devm_clk_get() rtc: rtc-vt8500: use devm_*() functions rtc: rtc-tps6586x: use devm_request_threaded_irq() rtc: rtc-imxdi: use devm_clk_get() rtc: rtc-cmos: use dev_warn()/dev_dbg() instead of printk()/pr_debug() rtc: rtc-pcf8583: use dev_warn() instead of printk() rtc: rtc-sun4v: use pr_warn() instead of printk() rtc: rtc-vr41xx: use dev_info() instead of printk() rtc: rtc-rs5c313: use pr_err() instead of printk() rtc: rtc-at91rm9200: use dev_dbg()/dev_err() instead of printk()/pr_debug() rtc: rtc-rs5c372: use dev_dbg()/dev_warn() instead of printk()/pr_debug() rtc: rtc-ds2404: use dev_err() instead of printk() rtc: rtc-efi: use dev_err()/dev_warn()/pr_err() instead of printk() ...
87 lines
2.3 KiB
C
87 lines
2.3 KiB
C
#ifndef __ASM_MACH_PXA910_H
|
|
#define __ASM_MACH_PXA910_H
|
|
|
|
extern void pxa910_timer_init(void);
|
|
extern void __init pxa910_init_irq(void);
|
|
|
|
#include <linux/i2c.h>
|
|
#include <linux/i2c/pxa-i2c.h>
|
|
#include <mach/devices.h>
|
|
#include <linux/platform_data/mtd-nand-pxa3xx.h>
|
|
#include <video/mmp_disp.h>
|
|
|
|
extern struct pxa_device_desc pxa910_device_uart1;
|
|
extern struct pxa_device_desc pxa910_device_uart2;
|
|
extern struct pxa_device_desc pxa910_device_twsi0;
|
|
extern struct pxa_device_desc pxa910_device_twsi1;
|
|
extern struct pxa_device_desc pxa910_device_pwm1;
|
|
extern struct pxa_device_desc pxa910_device_pwm2;
|
|
extern struct pxa_device_desc pxa910_device_pwm3;
|
|
extern struct pxa_device_desc pxa910_device_pwm4;
|
|
extern struct pxa_device_desc pxa910_device_nand;
|
|
extern struct platform_device pxa168_device_u2o;
|
|
extern struct platform_device pxa168_device_u2ootg;
|
|
extern struct platform_device pxa168_device_u2oehci;
|
|
extern struct pxa_device_desc pxa910_device_disp;
|
|
extern struct pxa_device_desc pxa910_device_fb;
|
|
extern struct pxa_device_desc pxa910_device_panel;
|
|
extern struct platform_device pxa910_device_gpio;
|
|
extern struct platform_device pxa910_device_rtc;
|
|
|
|
static inline int pxa910_add_uart(int id)
|
|
{
|
|
struct pxa_device_desc *d = NULL;
|
|
|
|
switch (id) {
|
|
case 1: d = &pxa910_device_uart1; break;
|
|
case 2: d = &pxa910_device_uart2; break;
|
|
}
|
|
|
|
if (d == NULL)
|
|
return -EINVAL;
|
|
|
|
return pxa_register_device(d, NULL, 0);
|
|
}
|
|
|
|
static inline int pxa910_add_twsi(int id, struct i2c_pxa_platform_data *data,
|
|
struct i2c_board_info *info, unsigned size)
|
|
{
|
|
struct pxa_device_desc *d = NULL;
|
|
int ret;
|
|
|
|
switch (id) {
|
|
case 0: d = &pxa910_device_twsi0; break;
|
|
case 1: d = &pxa910_device_twsi1; break;
|
|
default:
|
|
return -EINVAL;
|
|
}
|
|
|
|
ret = i2c_register_board_info(id, info, size);
|
|
if (ret)
|
|
return ret;
|
|
|
|
return pxa_register_device(d, data, sizeof(*data));
|
|
}
|
|
|
|
static inline int pxa910_add_pwm(int id)
|
|
{
|
|
struct pxa_device_desc *d = NULL;
|
|
|
|
switch (id) {
|
|
case 1: d = &pxa910_device_pwm1; break;
|
|
case 2: d = &pxa910_device_pwm2; break;
|
|
case 3: d = &pxa910_device_pwm3; break;
|
|
case 4: d = &pxa910_device_pwm4; break;
|
|
default:
|
|
return -EINVAL;
|
|
}
|
|
|
|
return pxa_register_device(d, NULL, 0);
|
|
}
|
|
|
|
static inline int pxa910_add_nand(struct pxa3xx_nand_platform_data *info)
|
|
{
|
|
return pxa_register_device(&pxa910_device_nand, info, sizeof(*info));
|
|
}
|
|
#endif /* __ASM_MACH_PXA910_H */
|