remove audio and gpu init from ioe_init
This commit is contained in:
parent
5fee5aad38
commit
ba0f154cba
1 changed files with 27 additions and 25 deletions
|
@ -18,7 +18,10 @@ void __am_disk_config(AM_DISK_CONFIG_T *cfg);
|
|||
void __am_disk_status(AM_DISK_STATUS_T *stat);
|
||||
void __am_disk_blkio(AM_DISK_BLKIO_T *io);
|
||||
|
||||
static void __am_timer_config(AM_TIMER_CONFIG_T *cfg) { cfg->present = true; cfg->has_rtc = true; }
|
||||
static void __am_timer_config(AM_TIMER_CONFIG_T *cfg) {
|
||||
cfg->present = true;
|
||||
cfg->has_rtc = true;
|
||||
}
|
||||
static void __am_input_config(AM_INPUT_CONFIG_T *cfg) { cfg->present = true; }
|
||||
static void __am_uart_config(AM_UART_CONFIG_T *cfg) { cfg->present = false; }
|
||||
static void __am_net_config(AM_NET_CONFIG_T *cfg) { cfg->present = false; }
|
||||
|
@ -48,10 +51,9 @@ static void fail(void *buf) { panic("access nonexist register"); }
|
|||
|
||||
bool ioe_init() {
|
||||
for (int i = 0; i < LENGTH(lut); i++)
|
||||
if (!lut[i]) lut[i] = fail;
|
||||
__am_gpu_init();
|
||||
if (!lut[i])
|
||||
lut[i] = fail;
|
||||
__am_timer_init();
|
||||
__am_audio_init();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue