-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 313126 b: refs/heads/master c: 4a31bd2 h: refs/heads/master v: v3
- Loading branch information
Linus Walleij
committed
Jun 10, 2012
1 parent
e235de5
commit 126381e
Showing
9 changed files
with
54 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: b5111d9ed4cba9a29ee454db162c4a88c6b944bf | ||
refs/heads/master: 4a31bd28e86ac50eb620f6b5b36464c45b5fa38f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,6 @@ | |
|
||
# Object file lists. | ||
|
||
obj-y += clock.o | ||
|
||
# Cpu revision | ||
obj-$(CONFIG_NOMADIK_8815) += cpu-8815.o | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include <linux/clk.h> | ||
#include <linux/clkdev.h> | ||
#include <linux/err.h> | ||
#include <linux/io.h> | ||
#include <linux/clk-provider.h> | ||
|
||
/* | ||
* The Nomadik clock tree is described in the STN8815A12 DB V4.2 | ||
* reference manual for the chip, page 94 ff. | ||
*/ | ||
|
||
void __init nomadik_clk_init(void) | ||
{ | ||
struct clk *clk; | ||
|
||
clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0); | ||
clk_register_clkdev(clk, "apb_pclk", NULL); | ||
clk_register_clkdev(clk, NULL, "gpio.0"); | ||
clk_register_clkdev(clk, NULL, "gpio.1"); | ||
clk_register_clkdev(clk, NULL, "gpio.2"); | ||
clk_register_clkdev(clk, NULL, "gpio.3"); | ||
clk_register_clkdev(clk, NULL, "rng"); | ||
|
||
/* | ||
* The 2.4 MHz TIMCLK reference clock is active at boot time, this is | ||
* actually the MXTALCLK @19.2 MHz divided by 8. This clock is used | ||
* by the timers and watchdog. See page 105 ff. | ||
*/ | ||
clk = clk_register_fixed_rate(NULL, "TIMCLK", NULL, CLK_IS_ROOT, | ||
2400000); | ||
clk_register_clkdev(clk, NULL, "mtu0"); | ||
clk_register_clkdev(clk, NULL, "mtu1"); | ||
|
||
/* | ||
* At boot time, PLL2 is set to generate a set of fixed clocks, | ||
* one of them is CLK48, the 48 MHz clock, routed to the UART, MMC/SD | ||
* I2C, IrDA, USB and SSP blocks. | ||
*/ | ||
clk = clk_register_fixed_rate(NULL, "CLK48", NULL, CLK_IS_ROOT, | ||
48000000); | ||
clk_register_clkdev(clk, NULL, "uart0"); | ||
clk_register_clkdev(clk, NULL, "uart1"); | ||
clk_register_clkdev(clk, NULL, "mmci"); | ||
clk_register_clkdev(clk, NULL, "ssp"); | ||
clk_register_clkdev(clk, NULL, "nmk-i2c.0"); | ||
clk_register_clkdev(clk, NULL, "nmk-i2c.1"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* Minimal platform data header */ | ||
void nomadik_clk_init(void); |