summaryrefslogtreecommitdiff
path: root/include/configs/mx31ads.h
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2010-08-23 18:41:19 (GMT)
committerStefano Babic <sbabic@denx.de>2010-09-30 12:42:13 (GMT)
commit9f481e95baaca2a5a739f930c16b1cc485b0c1f3 (patch)
treef569b9da23b356a660168a2f2dbcc2708eff6fa0 /include/configs/mx31ads.h
parent4d0e49d33639394d25a60a4e2d73e99634348af7 (diff)
downloadu-boot-9f481e95baaca2a5a739f930c16b1cc485b0c1f3.tar.xz
MXC: Correct SPI_CPOL setting in SPI driver
The handling of the SPI_CPOL bit inside the SPI driver was wrong. As reported by the manual, the meaning of the SSPOL inside the configuration register is the same as reported by SPI specification (0 if low in idle, 1 is high on idle). The driver inverts this logic. Because this patch sets the logic as specified, it is required to clear the CPOL bit in the configuration file to adapt to the correct logic. Signed-off-by: Stefano Babic <sbabic@denx.de> Signed-off-by: David Jander <david.jander@protonic.nl>
Diffstat (limited to 'include/configs/mx31ads.h')
-rw-r--r--include/configs/mx31ads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/mx31ads.h b/include/configs/mx31ads.h
index dedecd7..57955df 100644
--- a/include/configs/mx31ads.h
+++ b/include/configs/mx31ads.h
@@ -63,13 +63,13 @@
#define CONFIG_HARD_SPI 1
#define CONFIG_MXC_SPI 1
#define CONFIG_DEFAULT_SPI_BUS 1
-#define CONFIG_DEFAULT_SPI_MODE (SPI_MODE_2 | SPI_CS_HIGH)
+#define CONFIG_DEFAULT_SPI_MODE (SPI_MODE_0 | SPI_CS_HIGH)
#define CONFIG_FSL_PMIC
#define CONFIG_FSL_PMIC_BUS 1
#define CONFIG_FSL_PMIC_CS 0
#define CONFIG_FSL_PMIC_CLK 1000000
-#define CONFIG_FSL_PMIC_MODE (SPI_MODE_2 | SPI_CS_HIGH)
+#define CONFIG_FSL_PMIC_MODE (SPI_MODE_0 | SPI_CS_HIGH)
#define CONFIG_RTC_MC13783 1
/* allow to overwrite serial and ethaddr */