mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
_ Update STM32MP entry in MAINTAINERS
_ Handle correctly binding for g-tx-fifo-size for USB DWC2 driver _ Fix trusted STM32MP1 defconfig with correct ethernet driver -----BEGIN PGP SIGNATURE----- iQJLBAABCgA1FiEEXyrViUccKBz9c35Jysd4L3sz/6YFAl0KUq0XHHBhdHJpY2Uu Y2hvdGFyZEBzdC5jb20ACgkQysd4L3sz/6Y6ZA//fidCjjfPkJgV0lQJeWJDzaoF VOtqpSLj9of5SxCfeXV5Ts1ngnSrwRDpGstuER2l7icFq24XnrtaBBGhlGVZ0wvJ ft5VDZZo0VehoxN1yMlGrZ9vCNx5V8v5VJVLDneZdDSFIAJD5aioIe5S9EOfJz6F oe9uYXxArDNbzuw6YC7de7RDmMNl7pR5DDhaPMuWr12+T1FxzEVUNh0ohWhJxqL8 tmieg0kDyBKWHSgna8G1JhIJfGmdxsj2RR7nazPt+OduqRuFE24VuEFRvsjEjhmI AiUhb4UpGOtXHtP6g4o2q78t77Quu0SqI6RJJEOcsAF7jGnwrcjjQe6W4JDVy5f5 zh+SObj2frgaMc0s0hM6/StlZQJp6N09FFjn8G+T9RupL/lKeqH+xnJT5asZJdso mLyBbxhQhaGBP2QyUNB02t9aiQeOYJ1jCJCC+/iORQ6jPK+qNboTdPmTGfpbR14v /IgVbIsOWE6eKu5u/ac2TXZBkEPOLX6wCh6C0qTGLEEp9dh1Y63/bETy/ZpBqu55 YTLXVVRK2l9cRXZI8CAyBRBNk6VrdAQq+e48A0dvVWvAMDFalr/54JustzEh5VKs oNe+oGRTZt/S3MYCnMjvhcaPZOqAxt+V7MQ8yuubn1TSV29ygcilzHySK0IaT2Cj WXD/pNKx+h8cu46i+nE= =wz3G -----END PGP SIGNATURE----- Merge tag 'u-boot-stm32-20190619' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm - Update STM32MP entry in MAINTAINERS - Handle correctly binding for g-tx-fifo-size for USB DWC2 driver - Fix trusted STM32MP1 defconfig with correct ethernet driver
This commit is contained in:
commit
e8c185bb15
4 changed files with 16 additions and 8 deletions
|
@ -295,7 +295,6 @@ F: arch/arm/include/asm/arch-spear/
|
||||||
|
|
||||||
ARM STM STM32MP
|
ARM STM STM32MP
|
||||||
M: Patrick Delaunay <patrick.delaunay@st.com>
|
M: Patrick Delaunay <patrick.delaunay@st.com>
|
||||||
M: Christophe Kerello <christophe.kerello@st.com>
|
|
||||||
M: Patrice Chotard <patrice.chotard@st.com>
|
M: Patrice Chotard <patrice.chotard@st.com>
|
||||||
L: uboot-stm32@st-md-mailman.stormreply.com (moderated for non-subscribers)
|
L: uboot-stm32@st-md-mailman.stormreply.com (moderated for non-subscribers)
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
|
@ -56,10 +56,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&usbotg_hs {
|
|
||||||
g-tx-fifo-size = <576>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&v3v3 {
|
&v3v3 {
|
||||||
regulator-always-on;
|
regulator-always-on;
|
||||||
};
|
};
|
||||||
|
|
|
@ -73,7 +73,7 @@ CONFIG_SPI_FLASH_WINBOND=y
|
||||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||||
CONFIG_SPI_FLASH_MTD=y
|
CONFIG_SPI_FLASH_MTD=y
|
||||||
CONFIG_DM_ETH=y
|
CONFIG_DM_ETH=y
|
||||||
CONFIG_ETH_DESIGNWARE=y
|
CONFIG_DWC_ETH_QOS=y
|
||||||
CONFIG_PHY=y
|
CONFIG_PHY=y
|
||||||
CONFIG_PHY_STM32_USBPHYC=y
|
CONFIG_PHY_STM32_USBPHYC=y
|
||||||
CONFIG_PINCONF=y
|
CONFIG_PINCONF=y
|
||||||
|
|
|
@ -1039,8 +1039,10 @@ static int dwc2_udc_otg_ofdata_to_platdata(struct udevice *dev)
|
||||||
int node = dev_of_offset(dev);
|
int node = dev_of_offset(dev);
|
||||||
ulong drvdata;
|
ulong drvdata;
|
||||||
void (*set_params)(struct dwc2_plat_otg_data *data);
|
void (*set_params)(struct dwc2_plat_otg_data *data);
|
||||||
|
int ret;
|
||||||
|
|
||||||
if (usb_get_dr_mode(node) != USB_DR_MODE_PERIPHERAL) {
|
if (usb_get_dr_mode(node) != USB_DR_MODE_PERIPHERAL &&
|
||||||
|
usb_get_dr_mode(node) != USB_DR_MODE_OTG) {
|
||||||
dev_dbg(dev, "Invalid mode\n");
|
dev_dbg(dev, "Invalid mode\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
@ -1050,7 +1052,18 @@ static int dwc2_udc_otg_ofdata_to_platdata(struct udevice *dev)
|
||||||
platdata->rx_fifo_sz = dev_read_u32_default(dev, "g-rx-fifo-size", 0);
|
platdata->rx_fifo_sz = dev_read_u32_default(dev, "g-rx-fifo-size", 0);
|
||||||
platdata->np_tx_fifo_sz = dev_read_u32_default(dev,
|
platdata->np_tx_fifo_sz = dev_read_u32_default(dev,
|
||||||
"g-np-tx-fifo-size", 0);
|
"g-np-tx-fifo-size", 0);
|
||||||
platdata->tx_fifo_sz = dev_read_u32_default(dev, "g-tx-fifo-size", 0);
|
|
||||||
|
platdata->tx_fifo_sz_nb =
|
||||||
|
dev_read_size(dev, "g-tx-fifo-size") / sizeof(u32);
|
||||||
|
if (platdata->tx_fifo_sz_nb > DWC2_MAX_HW_ENDPOINTS)
|
||||||
|
platdata->tx_fifo_sz_nb = DWC2_MAX_HW_ENDPOINTS;
|
||||||
|
if (platdata->tx_fifo_sz_nb) {
|
||||||
|
ret = dev_read_u32_array(dev, "g-tx-fifo-size",
|
||||||
|
platdata->tx_fifo_sz_array,
|
||||||
|
platdata->tx_fifo_sz_nb);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
platdata->force_b_session_valid =
|
platdata->force_b_session_valid =
|
||||||
dev_read_bool(dev, "u-boot,force-b-session-valid");
|
dev_read_bool(dev, "u-boot,force-b-session-valid");
|
||||||
|
|
Loading…
Reference in a new issue