mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 16:35:37 +00:00
global: Migrate CONFIG_ICS307_REFCLK_HZ to CFG
Perform a simple rename of CONFIG_ICS307_REFCLK_HZ to CFG_ICS307_REFCLK_HZ Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
35661f86eb
commit
cdbf8459d0
4 changed files with 5 additions and 5 deletions
|
@ -50,7 +50,7 @@ static u8 ics307_s_to_od[] = {
|
||||||
*/
|
*/
|
||||||
unsigned long ics307_sysclk_calculator(unsigned long out_freq)
|
unsigned long ics307_sysclk_calculator(unsigned long out_freq)
|
||||||
{
|
{
|
||||||
const unsigned long input_freq = CONFIG_ICS307_REFCLK_HZ;
|
const unsigned long input_freq = CFG_ICS307_REFCLK_HZ;
|
||||||
unsigned long vdw, rdw, odp, s_vdw = 0, s_rdw = 0, s_odp = 0, od;
|
unsigned long vdw, rdw, odp, s_vdw = 0, s_rdw = 0, s_odp = 0, od;
|
||||||
unsigned long tmp_out, diff, result = 0;
|
unsigned long tmp_out, diff, result = 0;
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
@ -101,7 +101,7 @@ unsigned long ics307_sysclk_calculator(unsigned long out_freq)
|
||||||
*/
|
*/
|
||||||
static unsigned long ics307_clk_freq(u8 cw0, u8 cw1, u8 cw2)
|
static unsigned long ics307_clk_freq(u8 cw0, u8 cw1, u8 cw2)
|
||||||
{
|
{
|
||||||
const unsigned long input_freq = CONFIG_ICS307_REFCLK_HZ;
|
const unsigned long input_freq = CFG_ICS307_REFCLK_HZ;
|
||||||
unsigned long vdw = ((cw1 << 1) & 0x1FE) + ((cw2 >> 7) & 1);
|
unsigned long vdw = ((cw1 << 1) & 0x1FE) + ((cw2 >> 7) & 1);
|
||||||
unsigned long rdw = cw2 & 0x7F;
|
unsigned long rdw = cw2 & 0x7F;
|
||||||
unsigned long od = ics307_s_to_od[cw0 & 0x7];
|
unsigned long od = ics307_s_to_od[cw0 & 0x7];
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <linux/stringify.h>
|
#include <linux/stringify.h>
|
||||||
|
|
||||||
#define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */
|
#define CFG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */
|
||||||
|
|
||||||
/* High Level Configuration Options */
|
/* High Level Configuration Options */
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <linux/stringify.h>
|
#include <linux/stringify.h>
|
||||||
|
|
||||||
#define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */
|
#define CFG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */
|
||||||
|
|
||||||
/* High Level Configuration Options */
|
/* High Level Configuration Options */
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#include <linux/stringify.h>
|
#include <linux/stringify.h>
|
||||||
|
|
||||||
#define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */
|
#define CFG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */
|
||||||
|
|
||||||
#ifdef CONFIG_RAMBOOT_PBL
|
#ifdef CONFIG_RAMBOOT_PBL
|
||||||
#ifndef CONFIG_SDCARD
|
#ifndef CONFIG_SDCARD
|
||||||
|
|
Loading…
Add table
Reference in a new issue