Skip to content

Commit ec6cb9f

Browse files
committed
[BSP][qemu-vexpress-a9] code cleaup for compiling warning.
1 parent 6e98110 commit ec6cb9f

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

bsp/qemu-vexpress-a9/drivers/drv_sdio.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,11 @@ int pl180_init(void)
440440
sdhci->priv = pdat;
441441
write32(pdat->virt + PL180_POWER, 0xbf);
442442

443-
// rt_kprintf("power:0x%08x\n", read32(pdat->virt + PL180_POWER));
444-
445443
host->ops = &ops;
446444
host->freq_min = 400000;
447445
host->freq_max = 50000000;
448446
host->valid_ocr = VDD_32_33 | VDD_33_34;
449-
// host->flags = MMCSD_MUTBLKWRITE | MMCSD_SUP_HIGHSPEED | MMCSD_SUP_SDIO_IRQ | MMCSD_BUSWIDTH_4;
450-
host->flags = MMCSD_MUTBLKWRITE | MMCSD_SUP_HIGHSPEED | MMCSD_SUP_SDIO_IRQ;
447+
host->flags = MMCSD_MUTBLKWRITE | MMCSD_SUP_HIGHSPEED | MMCSD_SUP_SDIO_IRQ | MMCSD_BUSWIDTH_4;
451448
host->max_seg_size = 2048;
452449
host->max_dma_segs = 10;
453450
host->max_blk_size = 512;

bsp/qemu-vexpress-a9/drivers/secondary_cpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include "drv_timer.h"
1818

1919
#ifdef RT_USING_SMP
20+
#include <interrupt.h>
21+
2022
static void rt_hw_timer2_isr(int vector, void *param)
2123
{
2224
rt_tick_increase();

components/drivers/sdio/sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static rt_int32_t mmcsd_switch(struct rt_mmcsd_card *card)
264264

265265
if ((buf[16] & 0xF) != 1)
266266
{
267-
LOG_E("switching card to high speed failed!");
267+
LOG_I("switching card to high speed failed!");
268268
goto err;
269269
}
270270

libcpu/arm/cortex-a/interrupt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#define INT_IRQ 0x00
1818
#define INT_FIQ 0x01
1919

20+
void rt_hw_vector_init(void);
21+
2022
void rt_hw_interrupt_control(int vector, int priority, int route);
2123

2224
void rt_hw_interrupt_init(void);

0 commit comments

Comments
 (0)