mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
iPod Classic: HW initialization for RB
Do not rely on a bootloader initializing the HW, RB initializes and configures GPIO, I2C, and PMU at startup. Change-Id: If7f856b1f345f63de584aa4e4fc22d130cd66c80
This commit is contained in:
parent
e863f9a0ce
commit
3f17745930
9 changed files with 25 additions and 23 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "system.h"
|
||||
#include "panic.h"
|
||||
#include "system-target.h"
|
||||
#include "i2c-s5l8702.h"
|
||||
#include "pmu-target.h"
|
||||
#include "uart-target.h"
|
||||
#include "gpio-s5l8702.h"
|
||||
|
|
@ -199,6 +200,11 @@ enum {
|
|||
void system_init(void)
|
||||
{
|
||||
clocking_init(clk_modes, 0);
|
||||
#ifndef BOOTLOADER
|
||||
gpio_preinit();
|
||||
i2c_preinit(0);
|
||||
pmu_preinit();
|
||||
#endif
|
||||
gpio_init();
|
||||
pmu_init();
|
||||
dma_init();
|
||||
|
|
@ -279,7 +285,7 @@ void memory_init(void)
|
|||
}
|
||||
|
||||
#ifdef BOOTLOADER
|
||||
#include "i2c-s5l8702.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
static void syscon_preinit(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue