Root/target/linux/coldfire/patches/047-Fix-DSPI-compile-error-for-MCF547x-MCF548x.patch

1From 7751684dc81d357bc9a226f12b9f12b14c824c54 Mon Sep 17 00:00:00 2001
2From: Alison Wang <b18965@freescale.com>
3Date: Thu, 4 Aug 2011 09:59:54 +0800
4Subject: [PATCH 47/52] Fix DSPI compile error for MCF547x/MCF548x
5
6Signed-off-by: Alison Wang <b18965@freescale.com>
7---
8 arch/m68k/coldfire/m547x/devices.c | 2 +-
9 arch/m68k/include/asm/mcfdspi.h | 8 ++++++++
10 2 files changed, 9 insertions(+), 1 deletions(-)
11
12--- a/arch/m68k/coldfire/m547x/devices.c
13+++ b/arch/m68k/coldfire/m547x/devices.c
14@@ -17,7 +17,7 @@
15 
16 #include <asm/coldfire.h>
17 #include <asm/mcfsim.h>
18-#include <asm/mcfqspi.h>
19+#include <asm/mcfdspi.h>
20 
21 
22 #ifdef CONFIG_SPI
23--- a/arch/m68k/include/asm/mcfdspi.h
24+++ b/arch/m68k/include/asm/mcfdspi.h
25@@ -56,4 +56,12 @@ struct coldfire_spi_master {
26     u32 *irq_list;
27     void (*cs_control)(u8 cs, u8 command);
28 };
29+
30+struct coldfire_spi_chip {
31+ u8 mode;
32+ u8 bits_per_word;
33+ u8 del_cs_to_clk;
34+ u8 del_after_trans;
35+ u16 void_write_data;
36+};
37 #endif /*MCFDSPI_H_*/
38

Archive Download this file



interactive