uboot-tools/dragonboard-fixes.patch

116 lines
3.1 KiB
Diff
Raw Normal View History

2018-10-30 13:31:34 +00:00
From 8b0274a733cd1ce39ad9ad18e1bd8efdd02a40b7 Mon Sep 17 00:00:00 2001
From: Rob Clark <robdclark@gmail.com>
Date: Wed, 21 Jun 2017 14:21:15 -0400
2018-10-30 13:31:34 +00:00
Subject: [PATCH 1/3] 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-10-30 13:31:34 +00:00
index d92ebb6eb19..9df3c3daaf4 100644
2017-12-22 01:35:59 +00:00
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
2018-10-30 13:31:34 +00:00
@@ -1016,7 +1016,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-10-30 13:31:34 +00:00
@@ -1039,7 +1039,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-10-30 13:31:34 +00:00
2.19.1
2018-10-30 13:31:34 +00:00
From 7bf41d74ca9d58bc2243b7688f8987c1d373ea56 Mon Sep 17 00:00:00 2001
From: Rob Clark <robdclark@gmail.com>
Date: Mon, 3 Jul 2017 08:34:37 -0400
2018-10-30 13:31:34 +00:00
Subject: [PATCH 2/3] 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-10-30 13:31:34 +00:00
index fa348bc621e..bfe7f15d5ed 100644
--- a/arch/arm/dts/dragonboard410c.dts
+++ b/arch/arm/dts/dragonboard410c.dts
2018-10-30 13:31:34 +00:00
@@ -106,6 +106,7 @@
#phy-cells = <0>;
};
+/*
sdhci@07824000 {
compatible = "qcom,sdhci-msm-v4";
reg = <0x7824900 0x11c 0x7824000 0x800>;
2018-10-30 13:31:34 +00:00
@@ -115,6 +116,7 @@
clock = <&clkc 0>;
clock-frequency = <100000000>;
};
+*/
sdhci@07864000 {
compatible = "qcom,sdhci-msm-v4";
--
2018-10-30 13:31:34 +00:00
2.19.1
From 871fe802cf3ab593b9332c4f36ab2b3f179d51ae Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson@gmail.com>
Date: Tue, 4 Sep 2018 12:21:59 +0100
2018-10-30 13:31:34 +00:00
Subject: [PATCH 3/3] add options for dm410c config
---
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-10-30 13:31:34 +00:00
index a55abaf8df5..4ece0cafbe4 100644
2017-09-19 08:30:31 +00:00
--- a/configs/dragonboard410c_defconfig
+++ b/configs/dragonboard410c_defconfig
2018-10-30 13:31:34 +00:00
@@ -7,6 +7,8 @@ CONFIG_NR_DRAM_BANKS=1
# CONFIG_ANDROID_BOOT_IMAGE is not set
CONFIG_FIT=y
CONFIG_OF_BOARD_SETUP=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
CONFIG_MISC_INIT_R=y
# CONFIG_DISPLAY_CPUINFO is not set
# CONFIG_DISPLAY_BOARDINFO is not set
2018-10-30 13:31:34 +00:00
@@ -41,6 +43,13 @@ CONFIG_DM_PMIC=y
2018-03-06 10:18:40 +00:00
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
+CONFIG_USB_KEYBOARD=y
2018-03-06 10:18:40 +00:00
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_EHCI_HCD=y
2018-10-30 13:31:34 +00:00
@@ -57,5 +66,6 @@ CONFIG_USB_HOST_ETHER=y
2018-03-06 10:18:40 +00:00
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
--
2018-10-30 13:31:34 +00:00
2.19.1