mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
pci: fix compile failed, fdt_get_reg_base() need 3 args
goldfish: fix compile failed, fdt_get_irq_by_path() need 4 args Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -43,7 +43,7 @@ void up_timer_initialize(void)
|
|||||||
|
|
||||||
lower = goldfish_timer_initialize(
|
lower = goldfish_timer_initialize(
|
||||||
fdt_get_reg_base_by_path(fdt, "/goldfish_rtc"),
|
fdt_get_reg_base_by_path(fdt, "/goldfish_rtc"),
|
||||||
fdt_get_irq_by_path(fdt, "/goldfish_rtc", QEMU_SPI_IRQ_BASE));
|
fdt_get_irq_by_path(fdt, 1, "/goldfish_rtc", QEMU_SPI_IRQ_BASE));
|
||||||
|
|
||||||
DEBUGASSERT(lower != NULL);
|
DEBUGASSERT(lower != NULL);
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ int fdt_pci_ecam_register(FAR const void *fdt)
|
|||||||
|
|
||||||
/* Get the reg address, 64 or 32 */
|
/* Get the reg address, 64 or 32 */
|
||||||
|
|
||||||
cfg.start = fdt_get_reg_base(fdt, offset);
|
cfg.start = fdt_get_reg_base(fdt, offset, 0);
|
||||||
cfg.end = cfg.start + fdt_get_reg_size(fdt, offset);
|
cfg.end = cfg.start + fdt_get_reg_size(fdt, offset);
|
||||||
|
|
||||||
/* Get the ranges address */
|
/* Get the ranges address */
|
||||||
|
|||||||
Reference in New Issue
Block a user