projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5c4c97
)
spicc: fix clk polarity error of amlogic driver
author
Sunny Luo
<sunny.luo@amlogic.com>
Mon, 2 Jul 2018 07:18:15 +0000
(15:18 +0800)
committer
Sunny Luo
<sunny.luo@amlogic.com>
Mon, 2 Jul 2018 07:18:15 +0000
(15:18 +0800)
PD#169301: spicc: fix clk polarity error of amlogic driver
Change-Id: Icb257e3394da94bd44cd78b63218161cfae63c69
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
drivers/amlogic/spicc/spicc.c
patch
|
blob
|
history
diff --git
a/drivers/amlogic/spicc/spicc.c
b/drivers/amlogic/spicc/spicc.c
index
526275c
..
aaf0083
100644
(file)
--- a/
drivers/amlogic/spicc/spicc.c
+++ b/
drivers/amlogic/spicc/spicc.c
@@
-671,7
+671,6
@@
static void spicc_hw_init(struct spicc *spicc)
0x0<<0),
mem_base + SPICC_REG_DMA);
spicc_set_bit_width(spicc, SPICC_DEFAULT_BIT_WIDTH);
- spicc_set_mode(spicc, SPI_MODE_0);
spicc_set_clk(spicc, SPICC_DEFAULT_SPEED_HZ);
if (spicc_get_flag(spicc, FLAG_ENHANCE)) {
setb(spicc->regs, MOSI_OEN, 1);
@@
-682,6
+681,7
@@
static void spicc_hw_init(struct spicc *spicc)
writel(spicc->enhance_dlyctl,
spicc->regs + SPICC_REG_ENHANCE_CNTL1);
}
+ spicc_set_mode(spicc, SPI_MODE_0);
/* spicc_enable(spicc, 0); */
}