Commit 85e3142 1 parent 827f01c commit 85e3142 Copy full SHA for 85e3142
File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -313,12 +313,25 @@ static void lk2nd_parse_device_node(const void *fdt)
313
313
#endif
314
314
}
315
315
316
+ #ifdef LK1ST_DTB
317
+ INCFILE (lk1st_dtb , lk1st_dtb_size , LK1ST_DTB );
318
+ #endif
319
+
320
+ static void * lk2nd_get_fdt (void )
321
+ {
322
+ #ifdef LK1ST_DTB
323
+ return lk1st_dtb ;
324
+ #else
325
+ return (void * ) lk_boot_args [2 ];
326
+ #endif
327
+ }
328
+
316
329
int lk2nd_fdt_parse_early_uart (void )
317
330
{
318
331
int offset , len ;
319
332
const uint32_t * val ;
333
+ void * fdt = lk2nd_get_fdt ();
320
334
321
- void * fdt = (void * ) lk_boot_args [2 ];
322
335
if (!fdt || dev_tree_check_header (fdt ))
323
336
return -1 ; // Will be reported later again. Hopefully.
324
337
@@ -335,7 +348,7 @@ int lk2nd_fdt_parse_early_uart(void)
335
348
336
349
static void lk2nd_fdt_parse (void )
337
350
{
338
- void * fdt = ( void * ) lk_boot_args [ 2 ] ;
351
+ void * fdt = lk2nd_get_fdt () ;
339
352
if (!fdt )
340
353
return ;
341
354
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ MODULES += lk2nd/smp
22
22
DEFINES += SMP_SPIN_TABLE_BASE=$(SMP_SPIN_TABLE_BASE )
23
23
endif
24
24
25
+ ifneq ($(LK1ST_DTB ) ,)
26
+ LK1ST_DTB_PATH := dts/$(TARGET ) /$(LK1ST_DTB ) .dtb
27
+ $(BUILDDIR ) /$(LOCAL_DIR ) /lk2nd-device.o : $(BUILDDIR ) /$(LK1ST_DTB_PATH )
28
+ CFLAGS += -DLK1ST_DTB=\"$(LK1ST_DTB_PATH ) \"
29
+ endif
30
+
25
31
ifneq ($(LK1ST_PANEL ) ,)
26
32
# Filter out original panel implementation
27
33
OBJS := $(filter-out target/$(TARGET ) /oem_panel.o, $(OBJS ) )
You can’t perform that action at this time.
0 commit comments