/* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * * Copyright (C) 2010 John Crispin <john@phrozen.org> * Copyright (C) 2013-2015 Lantiq Beteiligungs-GmbH & Co.KG */ #include <linux/io.h> #include <linux/export.h> #include <linux/clk.h> #include <asm/time.h> #include <asm/irq.h> #include <asm/div64.h> #include <lantiq_soc.h> #include "../clk.h" static unsigned int ram_clocks[] = { CLOCK_167M, CLOCK_133M, CLOCK_111M, CLOCK_83M }; #define DDR_HZ ram_clocks[ltq_cgu_r32(CGU_SYS) & 0x3] /* legacy xway clock */ #define CGU_SYS 0x10 /* vr9, ar10/grx390 clock */ #define CGU_SYS_XRX 0x0c #define CGU_IF_CLK_AR10 0x24
unsigned long ltq_danube_fpi_hz(void) { unsigned long ddr_clock = DDR_HZ; if (ltq_cgu_r32(CGU_SYS) & 0x40) return ddr_clock >> 1; return ddr_clock; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 45 | 100.00% | 1 | 100.00% |
Total | 45 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 66 | 100.00% | 1 | 100.00% |
Total | 66 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 38 | 100.00% | 2 | 100.00% |
Total | 38 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 29 | 100.00% | 1 | 100.00% |
Total | 29 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 108 | 99.08% | 1 | 50.00% |
Hauke Mehrtens | 1 | 0.92% | 1 | 50.00% |
Total | 109 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 92 | 98.92% | 1 | 50.00% |
Hauke Mehrtens | 1 | 1.08% | 1 | 50.00% |
Total | 93 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 55 | 83.33% | 1 | 50.00% |
Hauke Mehrtens | 11 | 16.67% | 1 | 50.00% |
Total | 66 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 100 | 100.00% | 1 | 100.00% |
Total | 100 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 56 | 100.00% | 1 | 100.00% |
Total | 56 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 58 | 100.00% | 1 | 100.00% |
Total | 58 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 112 | 100.00% | 1 | 100.00% |
Total | 112 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 107 | 100.00% | 1 | 100.00% |
Total | 107 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 66 | 100.00% | 1 | 100.00% |
Total | 66 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 551 | 51.69% | 4 | 57.14% |
Hauke Mehrtens | 515 | 48.31% | 3 | 42.86% |
Total | 1066 | 100.00% | 7 | 100.00% |