- fdt_support: Add fdt_for_each_node_by_compatible() helper macro (Marek) - turris_omnia: Fixup SATA or PCIe nodes at runtime in DT blob (Pali) - pci_mvebu: Add support for Kirkwood PCIe controllers (Pali) - SPL: More verifications for kwbimage in SPL (Pali) - mvebu: Remove comphy_update_map() (Pali) - Minor misc stuff
This commit is contained in:
@@ -289,6 +289,12 @@ int fdt_node_offset_by_compat_reg(void *blob, const char *compat,
|
||||
phys_addr_t compat_off);
|
||||
int fdt_node_offset_by_pathf(void *blob, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 2, 3)));
|
||||
|
||||
#define fdt_for_each_node_by_compatible(node, fdt, start, compat) \
|
||||
for (node = fdt_node_offset_by_compatible(fdt, start, compat); \
|
||||
node >= 0; \
|
||||
node = fdt_node_offset_by_compatible(fdt, node, compat))
|
||||
|
||||
int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle);
|
||||
unsigned int fdt_create_phandle(void *fdt, int nodeoffset);
|
||||
unsigned int fdt_create_phandle_by_compatible(void *fdt, const char *compat);
|
||||
|
||||
@@ -6,17 +6,6 @@
|
||||
#ifndef _MVEBU_COMPHY_H_
|
||||
#define _MVEBU_COMPHY_H_
|
||||
|
||||
#include <dt-bindings/comphy/comphy_data.h>
|
||||
|
||||
struct comphy_map {
|
||||
u32 type;
|
||||
u32 speed;
|
||||
u32 invert;
|
||||
bool clk_src;
|
||||
bool end_point;
|
||||
};
|
||||
|
||||
int comphy_rx_training(struct udevice *dev, u32 lane);
|
||||
int comphy_update_map(struct comphy_map *serdes_map, int count);
|
||||
|
||||
#endif /* _MVEBU_COMPHY_H_ */
|
||||
|
||||
@@ -14,7 +14,8 @@ int sdp_init(int controller_index);
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#include <spl.h>
|
||||
|
||||
int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image);
|
||||
int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev);
|
||||
#else
|
||||
int sdp_handle(int controller_index);
|
||||
#endif
|
||||
|
||||
@@ -29,6 +29,7 @@ struct image_header;
|
||||
|
||||
struct blk_desc;
|
||||
struct image_header;
|
||||
struct spl_boot_device;
|
||||
|
||||
/*
|
||||
* u_boot_first_phase() - check if this is the first U-Boot phase
|
||||
@@ -340,6 +341,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
int spl_load_legacy_img(struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev,
|
||||
struct spl_load_info *load, ulong header);
|
||||
|
||||
/**
|
||||
@@ -438,6 +440,7 @@ void spl_set_header_raw_uboot(struct spl_image_info *spl_image);
|
||||
* Return: 0 if a header was correctly parsed, -ve on error
|
||||
*/
|
||||
int spl_parse_image_header(struct spl_image_info *spl_image,
|
||||
const struct spl_boot_device *bootdev,
|
||||
const struct image_header *header);
|
||||
|
||||
void spl_board_prepare_for_linux(void);
|
||||
@@ -574,18 +577,22 @@ static inline const char *spl_loader_name(const struct spl_image_loader *loader)
|
||||
|
||||
/* SPL FAT image functions */
|
||||
int spl_load_image_fat(struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev,
|
||||
struct blk_desc *block_dev, int partition,
|
||||
const char *filename);
|
||||
int spl_load_image_fat_os(struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev,
|
||||
struct blk_desc *block_dev, int partition);
|
||||
|
||||
void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image);
|
||||
|
||||
/* SPL EXT image functions */
|
||||
int spl_load_image_ext(struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev,
|
||||
struct blk_desc *block_dev, int partition,
|
||||
const char *filename);
|
||||
int spl_load_image_ext_os(struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev,
|
||||
struct blk_desc *block_dev, int partition);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user