include/s3c24x0.h: fix S3C24X0_SPI_CHANNEL declaration
PATCH 1/1 include/s3c24x0.h: fix S3C24X0_SPI_CHANNEL declaration
The SPI controller on the S3C24X0 has 8 bit registers, not 32 bit.
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by Wolfgang Denk <[email protected]>
--- include/s3c24x0.h | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-)
include/s3c24x0.h +14 -8
@@ -550,14 +550,20 @@ typedef struct {/* SPI (see manual chapter 22) */ typedef struct { -S3C24X0_REG32 SPCON; -S3C24X0_REG32 SPSTA; -S3C24X0_REG32 SPPIN; -S3C24X0_REG32 SPPRE; -S3C24X0_REG32 SPTDAT; -S3C24X0_REG32 SPRDAT; -S3C24X0_REG32 res[2 ]; -} __attribute__((__packed__ ))S3C24X0_SPI_CHANNEL ; +S3C24X0_REG8 SPCON; +S3C24X0_REG8 res1[3 ]; +S3C24X0_REG8 SPSTA; +S3C24X0_REG8 res2[3 ]; +S3C24X0_REG8 SPPIN; +S3C24X0_REG8 res3[3 ]; +S3C24X0_REG8 SPPRE; +S3C24X0_REG8 res4[3 ]; +S3C24X0_REG8 SPTDAT; +S3C24X0_REG8 res5[3 ]; +S3C24X0_REG8 SPRDAT; +S3C24X0_REG8 res6[3 ]; +S3C24X0_REG8 res7[16 ]; +}/*__attribute__((__packed__))*/ S3C24X0_SPI_CHANNEL ; typedef struct { S3C24X0_SPI_CHANNEL ch[S3C24X0_SPI_CHANNELS];
Signature · 1 line
1.6.0.6
Wolfgang Denk
AppliedPATCH 1/1 include/s3c24x0.h: fix S3C24X0_SPI_CHANNEL declaration
Quoted 7 lines · In message <[email protected]> I wrote:
The SPI controller on the S3C24X0 has 8 bit registers, not 32 bit.
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>Signed-off-by Wolfgang Denk <[email protected]>--- include/s3c24x0.h | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-)
Applied.
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The perversity of nature is nowhere better demonstrated by the fact that, when exposed to the same atmosphere, bread becomes hard while crackers become soft.