mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 16:07:30 +00:00
9721027aae
Add a am33xx_spl_board_init (and enable the PMICs) that we may see, depending on the board we are running on. In all cases, we see if we can rely on the efuse_sma register to tell us the maximum speed. In the case of Beaglebone White, we need to make sure we are on AC power, and are on later than rev A1, and then we can ramp up to the PG1.0 maximum of 720Mhz. In the case of Beaglebone Black, we are either on PG2.0 that supports 1GHz or PG2.1. As PG2.0 may or may not have efuse_sma set, we cannot rely on this probe. In the case of the GP EVM, EVM SK and IDK we need to rely on the efuse_sma if we are on PG2.1, and the defaults for PG1.0/2.0. Signed-off-by: Tom Rini <trini@ti.com>
33 lines
714 B
C
33 lines
714 B
C
/*
|
|
* clocks_am33xx.h
|
|
*
|
|
* AM33xx clock define
|
|
*
|
|
* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _CLOCKS_AM33XX_H_
|
|
#define _CLOCKS_AM33XX_H_
|
|
|
|
/* MAIN PLL Fdll supported frequencies */
|
|
#define MPUPLL_M_1000 1000
|
|
#define MPUPLL_M_800 800
|
|
#define MPUPLL_M_720 720
|
|
#define MPUPLL_M_600 600
|
|
#define MPUPLL_M_550 550
|
|
#define MPUPLL_M_300 300
|
|
|
|
/* MAIN PLL Fdll = 550 MHz, by default */
|
|
#ifndef CONFIG_SYS_MPUCLK
|
|
#define CONFIG_SYS_MPUCLK MPUPLL_M_550
|
|
#endif
|
|
|
|
#define UART_RESET (0x1 << 1)
|
|
#define UART_CLK_RUNNING_MASK 0x1
|
|
#define UART_SMART_IDLE_EN (0x1 << 0x3)
|
|
|
|
extern void enable_dmm_clocks(void);
|
|
|
|
#endif /* endif _CLOCKS_AM33XX_H_ */
|