-
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: 331332 b: refs/heads/master c: 0510c8a h: refs/heads/master v: v3
- Loading branch information
Valentin Longchamp
authored and
Jason Cooper
committed
Sep 21, 2012
1 parent
9893e17
commit cea0566
Showing
8 changed files
with
106 additions
and
1 deletion.
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: 903234673f1421f5ad9a74bafca427b812f59c93 | ||
refs/heads/master: 0510c8a014432b45f09509d1fb450922ec96b40d |
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,29 @@ | ||
/dts-v1/; | ||
|
||
/include/ "kirkwood.dtsi" | ||
|
||
/ { | ||
model = "Keymile Kirkwood Reference Design"; | ||
compatible = "keymile,km_kirkwood", "marvell,kirkwood-98DX4122", "marvell,kirkwood"; | ||
|
||
memory { | ||
device_type = "memory"; | ||
reg = <0x00000000 0x08000000>; | ||
}; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,115200n8 earlyprintk"; | ||
}; | ||
|
||
ocp@f1000000 { | ||
serial@12000 { | ||
clock-frequency = <200000000>; | ||
status = "ok"; | ||
}; | ||
|
||
nand@3000000 { | ||
status = "ok"; | ||
chip-delay = <25>; | ||
}; | ||
}; | ||
}; |
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
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,57 @@ | ||
/* | ||
* Copyright 2012 2012 KEYMILE AG, CH-3097 Bern | ||
* Valentin Longchamp <valentin.longchamp@keymile.com> | ||
* | ||
* arch/arm/mach-kirkwood/board-km_kirkwood.c | ||
* | ||
* Keymile km_kirkwood Reference Desing Init for drivers not converted to | ||
* flattened device tree yet. | ||
* | ||
* This file is licensed under the terms of the GNU General Public | ||
* License version 2. This program is licensed "as is" without any | ||
* warranty of any kind, whether express or implied. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/mv643xx_eth.h> | ||
#include <linux/clk.h> | ||
#include <linux/clk-private.h> | ||
#include "common.h" | ||
#include "mpp.h" | ||
|
||
static struct mv643xx_eth_platform_data km_kirkwood_ge00_data = { | ||
.phy_addr = MV643XX_ETH_PHY_ADDR(0), | ||
}; | ||
|
||
static unsigned int km_kirkwood_mpp_config[] __initdata = { | ||
MPP8_GPIO, /* I2C SDA */ | ||
MPP9_GPIO, /* I2C SCL */ | ||
0 | ||
}; | ||
|
||
void __init km_kirkwood_init(void) | ||
{ | ||
struct clk *sata_clk; | ||
/* | ||
* Basic setup. Needs to be called early. | ||
*/ | ||
kirkwood_mpp_conf(km_kirkwood_mpp_config); | ||
|
||
/* | ||
* Our variant of kirkwood (integrated in the Bobcat) hangs on accessing | ||
* SATA bits (14-15) of the Clock Gating Control Register. Since these | ||
* devices are also not present in this variant, their clocks get | ||
* disabled because unused when clk_disable_unused() gets called. | ||
* That's why we change the flags to these clocks to CLK_IGNORE_UNUSED | ||
*/ | ||
sata_clk = clk_get_sys("sata_mv.0", "0"); | ||
if (!IS_ERR(sata_clk)) | ||
sata_clk->flags |= CLK_IGNORE_UNUSED; | ||
sata_clk = clk_get_sys("sata_mv.0", "1"); | ||
if (!IS_ERR(sata_clk)) | ||
sata_clk->flags |= CLK_IGNORE_UNUSED; | ||
|
||
kirkwood_ehci_init(); | ||
kirkwood_ge00_init(&km_kirkwood_ge00_data); | ||
} |
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