diff options
author | Furquan Shaikh <furquan@google.com> | 2014-08-06 09:53:55 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-26 00:27:09 +0100 |
commit | 2296774af67f2fd728c662d5120e29b849b4d685 (patch) | |
tree | 7785f3e9270a60d44e5f747b7eb0e1a2425c7e56 /src/soc/nvidia/tegra124 | |
parent | 6941b77c879b5411844914dd87796a28b04e3caa (diff) |
tegra: Clean up USB code
Pull out the common usb setup utmip functions from t124 into tegra usb.h. These
can be reused for t132 as well.
BUG=chrome-os-partner:31293
BRANCH=None
TEST=Compiles successfully for nyan, big and blaze
Change-Id: Idddd40e409b56875436db6918d05f2889d83870b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 12f12cb30a033cce645f53457d13a987aeec22a1
Original-Change-Id: I83f83bafad0f52ad651fe5989430f41142803f2b
Original-Signed-off-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/211200
Original-Tested-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8927
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/nvidia/tegra124')
-rw-r--r-- | src/soc/nvidia/tegra124/usb.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/soc/nvidia/tegra124/usb.h b/src/soc/nvidia/tegra124/usb.h deleted file mode 100644 index ec5a14464e..0000000000 --- a/src/soc/nvidia/tegra124/usb.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2013, Google Inc. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __SOC_NVIDIA_TEGRA124_USB_H_ -#define __SOC_NVIDIA_TEGRA124_USB_H_ - -#include <console/console.h> -#include <soc/addressmap.h> -#include <soc/nvidia/tegra/usb.h> - -static inline void usb_setup_utmip1(void) -{ - struct usb_ctlr *usb = (void *)TEGRA_USBD_BASE; - usb_setup_utmip(usb); - usb_ehci_reset_and_prepare(usb, USB_PHY_UTMIP); - printk(BIOS_DEBUG, "USBD controller set up with UTMI+ PHY\n"); -} - -static inline void usb_setup_utmip2(void) -{ - struct usb_ctlr *usb = (void *)TEGRA_USB2_BASE; - usb_setup_utmip(usb); - usb_ehci_reset_and_prepare(usb, USB_PHY_UTMIP); - printk(BIOS_DEBUG, "USB2 controller set up with UTMI+ PHY\n"); -} - -static inline void usb_setup_utmip3(void) -{ - struct usb_ctlr *usb = (void *)TEGRA_USB3_BASE; - usb_setup_utmip(usb); - usb_ehci_reset_and_prepare(usb, USB_PHY_UTMIP); - printk(BIOS_DEBUG, "USB3 controller set up with UTMI+ PHY\n"); -} - -#endif /* __SOC_NVIDIA_TEGRA124_USB_H_ */ |