diff options
author | Tom Warren <twarren@nvidia.com> | 2013-01-23 14:01:01 -0700 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2013-02-11 10:35:24 -0700 |
commit | f29f086a098a8462f8b375da0509246843f7fdd1 (patch) | |
tree | 8a8b14f6e45bc232e0aea4668b07129f025ce311 /arch/arm/include/asm/arch-tegra20/clock-tables.h | |
parent | d83152d8e42940d193589b351f874a8600335468 (diff) | |
download | u-boot-imx-f29f086a098a8462f8b375da0509246843f7fdd1.zip u-boot-imx-f29f086a098a8462f8b375da0509246843f7fdd1.tar.gz u-boot-imx-f29f086a098a8462f8b375da0509246843f7fdd1.tar.bz2 |
Tegra: Move common clock code to arch/arm/cpu/tegra-common/clock.c
This 'commonizes' much of the clock/pll code. SoC-dependent code
and tables are left in arch/cpu/tegraXXX-common/clock.c
Some T30 tables needed whitespace fixes due to checkpatch complaints.
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/include/asm/arch-tegra20/clock-tables.h')
-rw-r--r-- | arch/arm/include/asm/arch-tegra20/clock-tables.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra20/clock-tables.h b/arch/arm/include/asm/arch-tegra20/clock-tables.h index 53708e0..6ec5ccb 100644 --- a/arch/arm/include/asm/arch-tegra20/clock-tables.h +++ b/arch/arm/include/asm/arch-tegra20/clock-tables.h @@ -193,4 +193,8 @@ enum pll_out_id { #define clock_id_is_pll(id) ((id) >= CLOCK_ID_FIRST && \ (id) < CLOCK_ID_FIRST_SIMPLE) +/* return 1 if a peripheral ID is in range */ +#define clock_periph_id_isvalid(id) ((id) >= PERIPH_ID_FIRST && \ + (id) < PERIPH_ID_COUNT) + #endif /* _CLOCK_TABLES_H_ */ |