![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <assert.h>
#include <console/console.h>
#include <soc/clock.h>
#include <soc/grf.h>
#include <soc/soc.h>
#include <soc/usb.h>
Go to the source code of this file.
Functions | |
static void | isolate_tcphy (struct rk3399_tcphy *tcphy) |
static void | tcphy_cfg_24m (struct rk3399_tcphy *tcphy) |
static void | tcphy_phy_init (struct rk3399_tcphy *tcphy) |
static void | reset_dwc3 (struct rockchip_usb_dwc3 *dwc3) |
static void | setup_dwc3 (struct rockchip_usb_dwc3 *dwc3) |
void | reset_usb_otg0 (void) |
void | reset_usb_otg1 (void) |
void | setup_usb_otg0 (void) |
void | setup_usb_otg1 (void) |
|
static |
Definition at line 13 of file usb.c.
References rk3399_tcphy::isolation_ctrl, TCPHY_ISOLATION_CTRL_CMN_EN, TCPHY_ISOLATION_CTRL_EN, TCPHY_ISOLATION_CTRL_LN_EN, TCPHY_ISOLATION_CTRL_MODE_SEL, and write32().
Referenced by tcphy_phy_init().
|
static |
Definition at line 65 of file usb.c.
References rockchip_usb_dwc3::ctl, DWC3_GCTL_CORESOFTRESET, DWC3_GUSB2PHYCFG_PHYSOFTRST, DWC3_GUSB3PIPECTL_PHYSOFTRST, setbits32, rockchip_usb_dwc3::usb2phycfg, and rockchip_usb_dwc3::usb3pipectl.
Referenced by reset_usb_otg0(), and reset_usb_otg1().
Definition at line 112 of file usb.c.
References BIOS_DEBUG, cru_ptr, printk, reset_dwc3(), rk3399_grf, RK_CLRBITS, RK_CLRSETBITS, RK_SETBITS, rockchip_usb_otg0_dwc3, rockchip_usb_otg0_phy, tcphy_phy_init(), rk3399_grf_regs::usb3otg0_con1, and write32().
Referenced by prepare_usb().
Definition at line 130 of file usb.c.
References BIOS_DEBUG, cru_ptr, printk, reset_dwc3(), rk3399_grf, RK_CLRBITS, RK_CLRSETBITS, RK_SETBITS, rockchip_usb_otg1_dwc3, rockchip_usb_otg1_phy, tcphy_phy_init(), rk3399_grf_regs::usb3otg1_con1, and write32().
Referenced by prepare_usb().
|
static |
Definition at line 75 of file usb.c.
References assert, clrbits32, rockchip_usb_dwc3::ctl, DWC3_GCTL_CORESOFTRESET, DWC3_GCTL_PRTCAP_HOST, DWC3_GCTL_PRTCAP_MASK, DWC3_GUSB2PHYCFG_PHYIF, DWC3_GUSB2PHYCFG_PHYIF_MASK, DWC3_GUSB2PHYCFG_PHYSOFTRST, DWC3_GUSB2PHYCFG_U2_FREECLK_EXISTS, DWC3_GUSB2PHYCFG_USB2TRDTIM_MASK, DWC3_GUSB2PHYCFG_USBTRDTIM, DWC3_GUSB3PIPECTL_PHYSOFTRST, read32(), rockchip_usb_dwc3::usb2phycfg, rockchip_usb_dwc3::usb3pipectl, USBTRDTIM_UTMI_16_BIT, and write32().
Referenced by setup_usb_otg0(), and setup_usb_otg1().
Definition at line 148 of file usb.c.
References BIOS_DEBUG, cru_ptr, printk, RK_CLRBITS, rockchip_usb_otg0_dwc3, setup_dwc3(), and write32().
Referenced by setup_usb().
Definition at line 157 of file usb.c.
References BIOS_DEBUG, cru_ptr, printk, RK_CLRBITS, rockchip_usb_otg1_dwc3, setup_dwc3(), and write32().
Referenced by setup_usb().
|
static |
Definition at line 29 of file usb.c.
References clrsetbits32, rk3399_tcphy::cmn_diag_hsclk_sel, rk3399_tcphy::lane, rk3399_tcphy::pma_cmn_ctrl1, TCPHY_CMN_HSCLK_PLL_CONFIG, TCPHY_CMN_HSCLK_PLL_MASK, rk3399_tcphy::tx_rcvdet_en_tmr, rk3399_tcphy::tx_rcvdet_st_tmr, write32(), and rk3399_tcphy::xcvr_diag_lane_fcm_en_mgn.
Referenced by tcphy_phy_init().
|
static |
Definition at line 48 of file usb.c.
References isolate_tcphy(), rk3399_tcphy::lane, tcphy_cfg_24m(), rk3399_tcphy::tx_diag_tx_drv, rk3399_tcphy::tx_psc_a2, and write32().
Referenced by reset_usb_otg0(), and reset_usb_otg1().