diff options
Diffstat (limited to 'arch/arm/cpu/armv7/vf610/generic.c')
| -rw-r--r-- | arch/arm/cpu/armv7/vf610/generic.c | 22 | 
1 files changed, 8 insertions, 14 deletions
| diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c index 87f2a8642..a26d63ebe 100644 --- a/arch/arm/cpu/armv7/vf610/generic.c +++ b/arch/arm/cpu/armv7/vf610/generic.c @@ -1,20 +1,7 @@  /*   * Copyright 2013 Freescale Semiconductor, Inc.   * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that 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, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> @@ -204,6 +191,11 @@ u32 get_fec_clk(void)  	return freq;  } +static u32 get_i2c_clk(void) +{ +	return get_ipg_clk(); +} +  unsigned int mxc_get_clock(enum mxc_clock clk)  {  	switch (clk) { @@ -219,6 +211,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)  		return get_sdhc_clk();  	case MXC_FEC_CLK:  		return get_fec_clk(); +	case MXC_I2C_CLK: +		return get_i2c_clk();  	default:  		break;  	} |