Commit 484e261f authored by Jeffy Chen's avatar Jeffy Chen Committed by chrome-bot

fastboot: Reuse the Galaxy Nexus phone's VID/PID by default

Reuse the VID/PID of the Galaxy Nexus phone for boards that don't have
an official one.

Also correct smaug's PID.

BUG=b:63407238
TEST=build and boot

Change-Id: Id8b0f2bb462b4e6a8cb93fa69d171066be7e6860
Signed-off-by: default avatarJeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/706751Reviewed-by: default avatarJulius Werner <jwerner@chromium.org>
parent 50b330c5
......@@ -41,5 +41,3 @@ CONFIG_DRIVER_VIDEO_TEGRA132=y
# Fastboot
CONFIG_FASTBOOT_MODE=y
CONFIG_FASTBOOT_USBVID=0x18d1
CONFIG_FASTBOOT_USBDID=0x4e30
......@@ -46,6 +46,5 @@ CONFIG_DRIVER_VIDEO_TEGRA210=y
# Fastboot
CONFIG_FASTBOOT_MODE=y
CONFIG_FASTBOOT_USBVID=0x18d1
CONFIG_FASTBOOT_USBDID=0x4e30
CONFIG_FASTBOOT_USBPID=0x5201
CONFIG_BCB_SUPPORT=y
......@@ -20,13 +20,19 @@ config FASTBOOT_MODE
config FASTBOOT_USBVID
hex "Fastboot USB Vendor ID"
default 0x0
default 0x18d1
depends on FASTBOOT_MODE
help
The default is 0x18d1(Galaxy Nexus phone), for boards that don't have
an official one.
config FASTBOOT_USBDID
hex "Fastboot USB Vendor ID"
default 0x0
config FASTBOOT_USBPID
hex "Fastboot USB Product ID"
default 0x4e30
depends on FASTBOOT_MODE
help
The default is 0x4e30(Galaxy Nexus phone), for boards that don't have
an official one.
config FASTBOOT_EP_IN
int "In-Endpoint to use for fastboot"
......
......@@ -31,7 +31,7 @@ static device_descriptor_t device_descriptor = {
.bDeviceProtocol = 0,
.bMaxPacketSize0 = 64,
.idVendor = CONFIG_FASTBOOT_USBVID,
.idProduct = CONFIG_FASTBOOT_USBDID,
.idProduct = CONFIG_FASTBOOT_USBPID,
};
/* Length of OUT transfer. Because these transfers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment