mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
96f1050d3d
Bill Gatliff & David Brownell pointed out we were missing some copyrights, and licensing terms in some of the files in ./arch/blackfin, so this fixes things, and cleans them up. It also removes: - verbose GPL text(refer to the top level ./COPYING file) - file names (you are looking at the file) - bug url (it's in the ./MAINTAINERS file) - "or later" on GPL-2, when we did not have that right It also allows some Blackfin-specific assembly files to be under a BSD like license (for people to use them outside of Linux). Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
/*
|
|
* Common Clock definitions for various kernel files
|
|
*
|
|
* Copyright 2007-2008 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef _BFIN_CLOCKS_H
|
|
#define _BFIN_CLOCKS_H
|
|
|
|
#ifdef CONFIG_CCLK_DIV_1
|
|
# define CONFIG_CCLK_ACT_DIV CCLK_DIV1
|
|
# define CONFIG_CCLK_DIV 1
|
|
#endif
|
|
|
|
#ifdef CONFIG_CCLK_DIV_2
|
|
# define CONFIG_CCLK_ACT_DIV CCLK_DIV2
|
|
# define CONFIG_CCLK_DIV 2
|
|
#endif
|
|
|
|
#ifdef CONFIG_CCLK_DIV_4
|
|
# define CONFIG_CCLK_ACT_DIV CCLK_DIV4
|
|
# define CONFIG_CCLK_DIV 4
|
|
#endif
|
|
|
|
#ifdef CONFIG_CCLK_DIV_8
|
|
# define CONFIG_CCLK_ACT_DIV CCLK_DIV8
|
|
# define CONFIG_CCLK_DIV 8
|
|
#endif
|
|
|
|
#ifndef CONFIG_PLL_BYPASS
|
|
# ifndef CONFIG_CLKIN_HALF
|
|
# define CONFIG_VCO_HZ (CONFIG_CLKIN_HZ * CONFIG_VCO_MULT)
|
|
# else
|
|
# define CONFIG_VCO_HZ ((CONFIG_CLKIN_HZ * CONFIG_VCO_MULT)/2)
|
|
# endif
|
|
|
|
# define CONFIG_CCLK_HZ (CONFIG_VCO_HZ/CONFIG_CCLK_DIV)
|
|
# define CONFIG_SCLK_HZ (CONFIG_VCO_HZ/CONFIG_SCLK_DIV)
|
|
|
|
#else
|
|
# define CONFIG_VCO_HZ (CONFIG_CLKIN_HZ)
|
|
# define CONFIG_CCLK_HZ (CONFIG_CLKIN_HZ)
|
|
# define CONFIG_SCLK_HZ (CONFIG_CLKIN_HZ)
|
|
# define CONFIG_VCO_MULT 0
|
|
#endif
|
|
|
|
#endif
|