From e16f5f81dfb2e97a554ec19b941ec05a7942fd2d Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 4 Aug 2023 20:50:41 +0300 Subject: add initial smp bringup --- common/fdt.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'common/fdt.c') diff --git a/common/fdt.c b/common/fdt.c index 3f20d72..677be7b 100644 --- a/common/fdt.c +++ b/common/fdt.c @@ -13,18 +13,3 @@ struct cell_info get_cellinfo(const void *fdt, const int offset) return (struct cell_info){ fdt_size_cells(fdt, offset), fdt_address_cells(fdt, offset) }; } - -/* how "reg" is interpreted depends on the parent node */ -struct cell_info get_reginfo(const void *fdt, const char *path) -{ - const char *i = strrchr(path, '/'); - if (!i) - return (struct cell_info){ 0, 0 }; - - size_t baselen = i - path; - if (baselen == 0) - /* root node */ - baselen = 1; - - return get_cellinfo(fdt, fdt_path_offset_namelen(fdt, path, baselen)); -} -- cgit v1.3