From 2296774af67f2fd728c662d5120e29b849b4d685 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 6 Aug 2014 09:53:55 -0700 Subject: 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 Original-Commit-Id: 12f12cb30a033cce645f53457d13a987aeec22a1 Original-Change-Id: I83f83bafad0f52ad651fe5989430f41142803f2b Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/211200 Original-Tested-by: Furquan Shaikh Original-Reviewed-by: Aaron Durbin Original-Commit-Queue: Furquan Shaikh Reviewed-on: http://review.coreboot.org/8927 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/soc/nvidia/tegra124/usb.h | 50 ------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/soc/nvidia/tegra124/usb.h (limited to 'src/soc/nvidia/tegra124') 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 . - */ - -#ifndef __SOC_NVIDIA_TEGRA124_USB_H_ -#define __SOC_NVIDIA_TEGRA124_USB_H_ - -#include -#include -#include - -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_ */ -- cgit v1.2.3