diff options
| author | Pavel Machek <[email protected]> | 2014-09-08 14:08:45 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2014-10-06 17:46:49 +0200 |
| commit | a832ddba55f79801b6f75b79e96c3f5e1469335a (patch) | |
| tree | e4c3dfcc5ec01dfad5167a0a739b09b4754d8502 /include | |
| parent | 0911af00b09c065444e4f8842a67a11c0d9b03cd (diff) | |
arm: socfpga: clock: Add code to read clock configuration
Add the entire bulk of code to read out clock configuration from the SoCFPGA
CPU registers. This is important for MMC, QSPI and UART drivers as otherwise
they cannot determine the frequency of their upstream clock.
Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Cc: Chin Liang See <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Pavel Machek <[email protected]>
V2: Fixed the L4 MP clock divider and synced the clock code with latest
rocketboards codebase (thanks Dinh for pointing this out)
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/socfpga_cyclone5.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h index 39e9368340e..708309b08f7 100644 --- a/include/configs/socfpga_cyclone5.h +++ b/include/configs/socfpga_cyclone5.h @@ -24,6 +24,7 @@ #define CONFIG_MISC_INIT_R #define CONFIG_SINGLE_BOOTLOADER #define CONFIG_SOCFPGA +#define CONFIG_CLOCKS /* base address for .text section */ #ifdef CONFIG_SOCFPGA_VIRTUAL_TARGET |
