diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2007-09-30 17:47:00 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-10-03 08:23:16 -0400 |
commit | dc8afdc7ada82562231cbae867fe6dcdb7b677f5 (patch) | |
tree | 5f553e2f95de51520c9223662409bd7b43073b32 | |
parent | bedfc8a040378cb51f46155c980d295c2c397203 (diff) |
[POWERPC] XilinxFB: Move xilinxfb_platform_data definition to a shared header file
XilnixFB can be used by more than just arch/ppc. Move the data structure
definition into include/linux/xilinxfb.h so it can be used by microblaze
and arch/powerpc
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
-rw-r--r-- | arch/ppc/syslib/virtex_devices.h | 8 | ||||
-rw-r--r-- | drivers/video/xilinxfb.c | 2 | ||||
-rw-r--r-- | include/linux/xilinxfb.h | 23 |
3 files changed, 25 insertions, 8 deletions
diff --git a/arch/ppc/syslib/virtex_devices.h b/arch/ppc/syslib/virtex_devices.h index 9f38d92ae536..6ebd9b4b8f1c 100644 --- a/arch/ppc/syslib/virtex_devices.h +++ b/arch/ppc/syslib/virtex_devices.h | |||
@@ -12,13 +12,7 @@ | |||
12 | #define __ASM_VIRTEX_DEVICES_H__ | 12 | #define __ASM_VIRTEX_DEVICES_H__ |
13 | 13 | ||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | 15 | #include <linux/xilinxfb.h> | |
16 | /* ML300/403 reference design framebuffer driver platform data struct */ | ||
17 | struct xilinxfb_platform_data { | ||
18 | u32 rotate_screen; | ||
19 | u32 screen_height_mm; | ||
20 | u32 screen_width_mm; | ||
21 | }; | ||
22 | 16 | ||
23 | void __init virtex_early_serial_map(void); | 17 | void __init virtex_early_serial_map(void); |
24 | 18 | ||
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 6ef9733a18d4..4bc67ab56afa 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <linux/platform_device.h> | 30 | #include <linux/platform_device.h> |
31 | 31 | ||
32 | #include <asm/io.h> | 32 | #include <asm/io.h> |
33 | #include <syslib/virtex_devices.h> | 33 | #include <linux/xilinxfb.h> |
34 | 34 | ||
35 | #define DRIVER_NAME "xilinxfb" | 35 | #define DRIVER_NAME "xilinxfb" |
36 | #define DRIVER_DESCRIPTION "Xilinx TFT LCD frame buffer driver" | 36 | #define DRIVER_DESCRIPTION "Xilinx TFT LCD frame buffer driver" |
diff --git a/include/linux/xilinxfb.h b/include/linux/xilinxfb.h new file mode 100644 index 000000000000..9ad984d22c38 --- /dev/null +++ b/include/linux/xilinxfb.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * Platform device data for Xilinx Framebuffer device | ||
3 | * | ||
4 | * Copyright 2007 Secret Lab Technologies Ltd. | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public License | ||
7 | * version 2. This program is licensed "as is" without any warranty of any | ||
8 | * kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __XILINXFB_H__ | ||
12 | #define __XILINXFB_H__ | ||
13 | |||
14 | #include <linux/types.h> | ||
15 | |||
16 | /* ML300/403 reference design framebuffer driver platform data struct */ | ||
17 | struct xilinxfb_platform_data { | ||
18 | u32 rotate_screen; | ||
19 | u32 screen_height_mm; | ||
20 | u32 screen_width_mm; | ||
21 | }; | ||
22 | |||
23 | #endif /* __XILINXFB_H__ */ | ||