diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2012-08-24 09:18:36 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 05:18:59 -0400 |
| commit | 54ecf4f05637183ffd0ac98f906e45e271030a55 (patch) | |
| tree | 7d5a7ac9dc9e1a512e26b741562a66b91b296212 /include/linux/platform_data | |
| parent | 19d331010636a43318c09fbdaa5ae7ef4bb6f7eb (diff) | |
ARM: w90x900: move platform_data definitions
Platform data for device drivers should be defined in
include/linux/platform_data/*.h, not in the architecture
and platform specific directories.
This moves such data out of the w90x900 include directories
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: "Ben Dooks (embedded platforms)" <ben-linux@fluff.org>
Cc: "Wolfram Sang (embedded platforms)" <w.sang@pengutronix.de>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/i2c-nuc900.h | 9 | ||||
| -rw-r--r-- | include/linux/platform_data/keypad-w90p910.h | 15 | ||||
| -rw-r--r-- | include/linux/platform_data/spi-nuc900.h | 35 | ||||
| -rw-r--r-- | include/linux/platform_data/video-nuc900fb.h | 83 |
4 files changed, 142 insertions, 0 deletions
diff --git a/include/linux/platform_data/i2c-nuc900.h b/include/linux/platform_data/i2c-nuc900.h new file mode 100644 index 000000000000..9ffb12d06e91 --- /dev/null +++ b/include/linux/platform_data/i2c-nuc900.h | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #ifndef __ASM_ARCH_NUC900_I2C_H | ||
| 2 | #define __ASM_ARCH_NUC900_I2C_H | ||
| 3 | |||
| 4 | struct nuc900_platform_i2c { | ||
| 5 | int bus_num; | ||
| 6 | unsigned long bus_freq; | ||
| 7 | }; | ||
| 8 | |||
| 9 | #endif /* __ASM_ARCH_NUC900_I2C_H */ | ||
diff --git a/include/linux/platform_data/keypad-w90p910.h b/include/linux/platform_data/keypad-w90p910.h new file mode 100644 index 000000000000..556778e8ddaa --- /dev/null +++ b/include/linux/platform_data/keypad-w90p910.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef __ASM_ARCH_W90P910_KEYPAD_H | ||
| 2 | #define __ASM_ARCH_W90P910_KEYPAD_H | ||
| 3 | |||
| 4 | #include <linux/input/matrix_keypad.h> | ||
| 5 | |||
| 6 | extern void mfp_set_groupi(struct device *dev); | ||
| 7 | |||
| 8 | struct w90p910_keypad_platform_data { | ||
| 9 | const struct matrix_keymap_data *keymap_data; | ||
| 10 | |||
| 11 | unsigned int prescale; | ||
| 12 | unsigned int debounce; | ||
| 13 | }; | ||
| 14 | |||
| 15 | #endif /* __ASM_ARCH_W90P910_KEYPAD_H */ | ||
diff --git a/include/linux/platform_data/spi-nuc900.h b/include/linux/platform_data/spi-nuc900.h new file mode 100644 index 000000000000..2c4e0c128501 --- /dev/null +++ b/include/linux/platform_data/spi-nuc900.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-w90x900/include/mach/nuc900_spi.h | ||
| 3 | * | ||
| 4 | * Copyright (c) 2009 Nuvoton technology corporation. | ||
| 5 | * | ||
| 6 | * Wan ZongShun <mcuos.com@gmail.com> | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation;version 2 of the License. | ||
| 11 | * | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef __ASM_ARCH_SPI_H | ||
| 15 | #define __ASM_ARCH_SPI_H | ||
| 16 | |||
| 17 | extern void mfp_set_groupg(struct device *dev, const char *subname); | ||
| 18 | |||
| 19 | struct nuc900_spi_info { | ||
| 20 | unsigned int num_cs; | ||
| 21 | unsigned int lsb; | ||
| 22 | unsigned int txneg; | ||
| 23 | unsigned int rxneg; | ||
| 24 | unsigned int divider; | ||
| 25 | unsigned int sleep; | ||
| 26 | unsigned int txnum; | ||
| 27 | unsigned int txbitlen; | ||
| 28 | int bus_num; | ||
| 29 | }; | ||
| 30 | |||
| 31 | struct nuc900_spi_chip { | ||
| 32 | unsigned char bits_per_word; | ||
| 33 | }; | ||
| 34 | |||
| 35 | #endif /* __ASM_ARCH_SPI_H */ | ||
diff --git a/include/linux/platform_data/video-nuc900fb.h b/include/linux/platform_data/video-nuc900fb.h new file mode 100644 index 000000000000..cec5ece765ed --- /dev/null +++ b/include/linux/platform_data/video-nuc900fb.h | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | /* linux/include/asm/arch-nuc900/fb.h | ||
| 2 | * | ||
| 3 | * Copyright (c) 2008 Nuvoton technology corporation | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changelog: | ||
| 12 | * | ||
| 13 | * 2008/08/26 vincen.zswan modify this file for LCD. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __ASM_ARM_FB_H | ||
| 17 | #define __ASM_ARM_FB_H | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | /* LCD Controller Hardware Desc */ | ||
| 22 | struct nuc900fb_hw { | ||
| 23 | unsigned int lcd_dccs; | ||
| 24 | unsigned int lcd_device_ctrl; | ||
| 25 | unsigned int lcd_mpulcd_cmd; | ||
| 26 | unsigned int lcd_int_cs; | ||
| 27 | unsigned int lcd_crtc_size; | ||
| 28 | unsigned int lcd_crtc_dend; | ||
| 29 | unsigned int lcd_crtc_hr; | ||
| 30 | unsigned int lcd_crtc_hsync; | ||
| 31 | unsigned int lcd_crtc_vr; | ||
| 32 | unsigned int lcd_va_baddr0; | ||
| 33 | unsigned int lcd_va_baddr1; | ||
| 34 | unsigned int lcd_va_fbctrl; | ||
| 35 | unsigned int lcd_va_scale; | ||
| 36 | unsigned int lcd_va_test; | ||
| 37 | unsigned int lcd_va_win; | ||
| 38 | unsigned int lcd_va_stuff; | ||
| 39 | }; | ||
| 40 | |||
| 41 | /* LCD Display Description */ | ||
| 42 | struct nuc900fb_display { | ||
| 43 | /* LCD Image type */ | ||
| 44 | unsigned type; | ||
| 45 | |||
| 46 | /* LCD Screen Size */ | ||
| 47 | unsigned short width; | ||
| 48 | unsigned short height; | ||
| 49 | |||
| 50 | /* LCD Screen Info */ | ||
| 51 | unsigned short xres; | ||
| 52 | unsigned short yres; | ||
| 53 | unsigned short bpp; | ||
| 54 | |||
| 55 | unsigned long pixclock; | ||
| 56 | unsigned short left_margin; | ||
| 57 | unsigned short right_margin; | ||
| 58 | unsigned short hsync_len; | ||
| 59 | unsigned short upper_margin; | ||
| 60 | unsigned short lower_margin; | ||
| 61 | unsigned short vsync_len; | ||
| 62 | |||
| 63 | /* hardware special register value */ | ||
| 64 | unsigned int dccs; | ||
| 65 | unsigned int devctl; | ||
| 66 | unsigned int fbctrl; | ||
| 67 | unsigned int scale; | ||
| 68 | }; | ||
| 69 | |||
| 70 | struct nuc900fb_mach_info { | ||
| 71 | struct nuc900fb_display *displays; | ||
| 72 | unsigned num_displays; | ||
| 73 | unsigned default_display; | ||
| 74 | /* GPIO Setting Info */ | ||
| 75 | unsigned gpio_dir; | ||
| 76 | unsigned gpio_dir_mask; | ||
| 77 | unsigned gpio_data; | ||
| 78 | unsigned gpio_data_mask; | ||
| 79 | }; | ||
| 80 | |||
| 81 | extern void __init nuc900_fb_set_platdata(struct nuc900fb_mach_info *); | ||
| 82 | |||
| 83 | #endif /* __ASM_ARM_FB_H */ | ||
