diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-01-03 15:55:57 -0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-01-15 10:33:25 +0100 |
commit | 5f98d0b5d3038cb3345712bc779efacaba4322f7 (patch) | |
tree | 1cd9ea54fab25fa4f89de932d21fc87b2c0bc50a /arch/arm/include | |
parent | a6bbee66197759f790de83181924bf1d2cf482b2 (diff) | |
download | u-boot-imx-5f98d0b5d3038cb3345712bc779efacaba4322f7.zip u-boot-imx-5f98d0b5d3038cb3345712bc779efacaba4322f7.tar.gz u-boot-imx-5f98d0b5d3038cb3345712bc779efacaba4322f7.tar.bz2 |
mx6: clock: Pass the frequency as argument of enable_fec_anatop_clock()
Provide an argument to enable_fec_anatop_clock() to specify the clock frequency
that will be generated.
No changes are made to mx6slevk, which uses the default 50MHz fec clock.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/clock.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-mx6/clock.h b/arch/arm/include/asm/arch-mx6/clock.h index 93f29a7..e31ba0a 100644 --- a/arch/arm/include/asm/arch-mx6/clock.h +++ b/arch/arm/include/asm/arch-mx6/clock.h @@ -42,6 +42,13 @@ enum mxc_clock { MXC_I2C_CLK, }; +enum enet_freq { + ENET_25MHz, + ENET_50MHz, + ENET_100MHz, + ENET_125MHz, +}; + u32 imx_get_uartclk(void); u32 imx_get_fecclk(void); unsigned int mxc_get_clock(enum mxc_clock clk); @@ -50,5 +57,5 @@ void enable_usboh3_clk(unsigned char enable); int enable_sata_clock(void); int enable_i2c_clk(unsigned char enable, unsigned i2c_num); void enable_ipu_clock(void); -int enable_fec_anatop_clock(void); +int enable_fec_anatop_clock(enum enet_freq freq); #endif /* __ASM_ARCH_CLOCK_H */ |