Sansa Clip+: use correct SSP settings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24559 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-02-08 03:36:53 +00:00
parent fbc59e2e28
commit 71e77aaff8
2 changed files with 10 additions and 3 deletions

View file

@ -97,9 +97,9 @@ static void lcd_hw_init(void)
#elif defined(SANSA_CLIPPLUS)
CGU_PERI |= CGU_SSP_CLOCK_ENABLE;
SSP_CPSR; /* No clock prescale */
SSP_CR0 = 0 | 7; /* Motorola SPI frame format, 8 bits */
SSP_CR1 = 1<<1; /* SSP Operation enabled */
SSP_CPSR = AS3525_SSP_PRESCALER; /* OF = 0x10 */
SSP_CR0 = (1<<7) | (1<<6) | 7; /* Motorola SPI frame format, 8 bits */
SSP_CR1 = (1<<3) | (1<<1); /* SSP Operation enabled */
SSP_IMSC = 0; /* No interrupts */
#endif
}