mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
fbc59e2e28
commit
71e77aaff8
2 changed files with 10 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue