uboot-tools/dragonboard-fixes.patch

123 lines
3.3 KiB
Diff
Raw Normal View History

2018-03-06 10:18:40 +00:00
From fbd0bffb20ca5edd21bbeb7cc20e24d091ab4280 Mon Sep 17 00:00:00 2001
From: Rob Clark <robdclark@gmail.com>
Date: Wed, 21 Jun 2017 14:21:15 -0400
2018-03-06 10:18:40 +00:00
Subject: [PATCH 1/4] WIP: fix usb
---
common/usb_storage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
2017-12-22 01:35:59 +00:00
diff --git a/common/usb_storage.c b/common/usb_storage.c
2018-03-06 10:18:40 +00:00
index a91b1c0d2f..caea87a09f 100644
2017-12-22 01:35:59 +00:00
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
2018-03-06 10:18:40 +00:00
@@ -1018,7 +1018,7 @@ static int usb_request_sense(struct scsi_cmd *srb, struct us_data *ss)
2017-12-22 01:35:59 +00:00
static int usb_test_unit_ready(struct scsi_cmd *srb, struct us_data *ss)
{
- int retries = 10;
+ int retries = 20;
2017-12-22 01:35:59 +00:00
do {
memset(&srb->cmd[0], 0, 12);
2018-03-06 10:18:40 +00:00
@@ -1041,7 +1041,7 @@ static int usb_test_unit_ready(struct scsi_cmd *srb, struct us_data *ss)
2017-12-22 01:35:59 +00:00
if ((srb->sense_buf[2] == 0x02) &&
(srb->sense_buf[12] == 0x3a))
return -1;
- mdelay(100);
+ mdelay(250);
} while (retries--);
return -1;
--
2018-03-06 10:18:40 +00:00
2.14.3
2018-03-06 10:18:40 +00:00
From d1b25b8d6461c5278228d657de9c24e0979e4b9d Mon Sep 17 00:00:00 2001
From: Rob Clark <robdclark@gmail.com>
Date: Mon, 3 Jul 2017 08:34:37 -0400
2018-03-06 10:18:40 +00:00
Subject: [PATCH 2/4] HACK: disable emmc
Hitting some timeout which makes boot take much longer. And
uefi/boot/rootfs partitions will be on sd-card or usb disk, etc,
so we can just ignore emmc.
---
arch/arm/dts/dragonboard410c.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts
2018-03-06 10:18:40 +00:00
index 5ccfe7f8c8..9e2d3f5d9b 100644
--- a/arch/arm/dts/dragonboard410c.dts
+++ b/arch/arm/dts/dragonboard410c.dts
@@ -67,6 +67,7 @@
reg = <0x78d9000 0x400>;
};
+/*
sdhci@07824000 {
compatible = "qcom,sdhci-msm-v4";
reg = <0x7824900 0x11c 0x7824000 0x800>;
@@ -76,6 +77,7 @@
clock = <&clkc 0>;
clock-frequency = <100000000>;
};
+*/
sdhci@07864000 {
compatible = "qcom,sdhci-msm-v4";
--
2018-03-06 10:18:40 +00:00
2.14.3
From a43912730613da9f17a185e55a980d9acd0e437e Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson@gmail.com>
2018-03-06 10:18:40 +00:00
Date: Tue, 6 Mar 2018 10:08:32 +0000
Subject: [PATCH 3/4] db410c: config updates
Enable USB keyboards and video output, VFAT writes (useful for EFI boot)
and a common USB eth adapter
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
configs/dragonboard410c_defconfig | 10 ++++++++++
1 file changed, 10 insertions(+)
2017-09-19 08:30:31 +00:00
diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig
2018-03-06 10:18:40 +00:00
index e6114db2ce..30e5cb3f5d 100644
2017-09-19 08:30:31 +00:00
--- a/configs/dragonboard410c_defconfig
+++ b/configs/dragonboard410c_defconfig
2018-03-06 10:18:40 +00:00
@@ -20,6 +20,8 @@ CONFIG_CMD_USB=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_TIMER=y
CONFIG_ENV_IS_IN_MMC=y
2018-03-06 10:18:40 +00:00
+CONFIG_FAT_WRITE=y
2017-09-19 08:30:31 +00:00
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
2018-03-06 10:18:40 +00:00
CONFIG_CLK=y
CONFIG_MSM_GPIO=y
CONFIG_PM8916_GPIO=y
@@ -32,10 +34,17 @@ CONFIG_DM_PMIC=y
CONFIG_PMIC_PM8916=y
CONFIG_MSM_SERIAL=y
CONFIG_SPMI_MSM=y
+CONFIG_DM_ETH=y
+CONFIG_DM_KEYBOARD=y
2017-09-19 08:30:31 +00:00
+CONFIG_DM_VIDEO=y
+# CONFG_VIDEO_BPP8 is not set
2017-09-19 08:30:31 +00:00
+CONFIG_NO_FB_CLEAR=y
+CONFIG_VIDEO_SIMPLE=y
2018-03-06 10:18:40 +00:00
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_MSM=y
+CONFIG_USB_KEYBOARD=y
CONFIG_USB_ULPI_VIEWPORT=y
CONFIG_USB_ULPI=y
CONFIG_USB_STORAGE=y
@@ -43,5 +52,6 @@ CONFIG_USB_HOST_ETHER=y
CONFIG_USB_ETHER_ASIX=y
CONFIG_USB_ETHER_ASIX88179=y
CONFIG_USB_ETHER_MCS7830=y
+CONFIG_USB_ETHER_RTL8152=y
CONFIG_USB_ETHER_SMSC95XX=y
CONFIG_OF_LIBFDT_OVERLAY=y
--
2.14.3