![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <delay.h>
#include <soc/blsp.h>
#include <soc/clock.h>
#include <types.h>
#include <console/console.h>
Go to the source code of this file.
Macros | |
#define | CLOCK_UPDATE_DELAY 1000 |
Functions | |
void | uart_clock_config (unsigned int blsp_uart, unsigned int m, unsigned int n, unsigned int d) |
uart_clock_config - configures UART clocks More... | |
void | nand_clock_config (void) |
nand_clock_config - configure NAND controller clocks More... | |
void | usb_clock_config (void) |
usb_clock_config - configure USB controller clocks and reset the controller More... | |
int | blsp_i2c_clock_config (blsp_qup_id_t id) |
int blsp_i2c_clock_config | ( | blsp_qup_id_t | id | ) |
Definition at line 91 of file clock.c.
References BIOS_ERR, BIT, BLSP1_AHB, BLSP1_SLEEP, ETIMEDOUT, GCC_BLSP1_QUP1_I2C_APPS_CBCR, GCC_BLSP1_QUP1_I2C_APPS_CFG_RCGR, GCC_BLSP1_QUP1_I2C_APPS_CMD_RCGR, GCC_CLK_BRANCH_ENA, printk, read32(), setbits32, udelay(), and write32().
Referenced by blsp_i2c_init().
nand_clock_config - configure NAND controller clocks
Enable clocks to EBI2. Must be invoked before touching EBI2 registers.
Definition at line 56 of file clock.c.
References ALWAYS_ON_CLK_BRANCH_ENA, CLK_BRANCH_ENA, EBI2_CLK_CTL_REG, udelay(), and write32().
Referenced by board_nand_init().
uart_clock_config - configures UART clocks
Configures GSBI UART dividers, enable root and branch clocks.
Definition at line 17 of file clock.c.
References BLSP1_AHB, BLSP1_SLEEP, CLOCK_UPDATE_DELAY, GCC_BLSP1_UART_APPS_CFG_RCGR, GCC_BLSP1_UART_APPS_CMD_RCGR, GCC_BLSP1_UART_APPS_D, GCC_BLSP1_UART_APPS_M, GCC_BLSP1_UART_APPS_N, GCC_BLSP1_UART_MISC, GCC_CLK_BRANCH_ENA, m, read32(), setbits32, udelay(), and write32().
Referenced by uart_init().
usb_clock_config - configure USB controller clocks and reset the controller
Definition at line 68 of file clock.c.
References udelay(), USB30_1_MASTER_CLK_CTL_REG, USB30_1_MOC_UTMI_CLK_CTL, USB30_MASTER_CLK_CTL_REG, USB30_MASTER_CLK_MD, USB30_MASTER_CLK_NS, USB30_MOC_UTMI_CLK_CTL, USB30_MOC_UTMI_CLK_MD, USB30_MOC_UTMI_CLK_NS, USB30_RESET, and write32().
Referenced by setup_usb().