mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
usb: dwc3-generic: Add the size of regs property to glue structure
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
committed by
Marek Vasut
parent
ef2313b8a2
commit
211a066876
@@ -542,7 +542,7 @@ int dwc3_glue_probe(struct udevice *dev)
|
||||
phy.dev = NULL;
|
||||
}
|
||||
|
||||
glue->regs = dev_read_addr(dev);
|
||||
glue->regs = dev_read_addr_size_index(dev, 0, &glue->size);
|
||||
|
||||
ret = dwc3_glue_clk_init(dev, glue);
|
||||
if (ret)
|
||||
|
||||
@@ -17,6 +17,7 @@ struct dwc3_glue_data {
|
||||
struct clk_bulk clks;
|
||||
struct reset_ctl_bulk resets;
|
||||
fdt_addr_t regs;
|
||||
fdt_size_t size;
|
||||
};
|
||||
|
||||
struct dwc3_glue_ops {
|
||||
|
||||
Reference in New Issue
Block a user