Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342535
b: refs/heads/master
c: 13e35b4
h: refs/heads/master
i:
  342533: 16b1051
  342531: 671b198
  342527: 90b7387
v: v3
  • Loading branch information
Kuninori Morimoto authored and Simon Horman committed Nov 8, 2012
1 parent cd3728b commit 39091fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8c3243c7594858da9a8f51672984f79cd1585d3
refs/heads/master: 13e35b408ad0dd5592a7d2d1e6ad6c4962b8c4c5
38 changes: 3 additions & 35 deletions trunk/arch/arm/mach-shmobile/board-armadillo800eva.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,32 +768,6 @@ static struct platform_device ceu0_device = {
};

/* FSI */
static int fsi_hdmi_set_rate(struct device *dev, int rate, int enable)
{
struct clk *fsib;
int ret;

/* it support 48KHz only */
if (48000 != rate)
return -EINVAL;

fsib = clk_get(dev, "ickb");
if (IS_ERR(fsib))
return -EINVAL;

if (enable) {
ret = SH_FSI_ACKMD_256 | SH_FSI_BPFMD_64;
clk_enable(fsib);
} else {
ret = 0;
clk_disable(fsib);
}

clk_put(fsib);

return ret;
}

static struct sh_fsi_platform_info fsi_info = {
/* FSI-WM8978 */
.port_a = {
Expand All @@ -802,8 +776,8 @@ static struct sh_fsi_platform_info fsi_info = {
/* FSI-HDMI */
.port_b = {
.flags = SH_FSI_FMT_SPDIF |
SH_FSI_ENABLE_STREAM_MODE,
.set_rate = fsi_hdmi_set_rate,
SH_FSI_ENABLE_STREAM_MODE |
SH_FSI_CLK_CPG,
.tx_id = SHDMA_SLAVE_FSIB_TX,
}
};
Expand Down Expand Up @@ -938,13 +912,11 @@ static void __init eva_clock_init(void)
struct clk *xtal1 = clk_get(NULL, "extal1");
struct clk *usb24s = clk_get(NULL, "usb24s");
struct clk *fsibck = clk_get(NULL, "fsibck");
struct clk *fsib = clk_get(&fsi_device.dev, "ickb");

if (IS_ERR(system) ||
IS_ERR(xtal1) ||
IS_ERR(usb24s) ||
IS_ERR(fsibck) ||
IS_ERR(fsib)) {
IS_ERR(fsibck)) {
pr_err("armadillo800eva board clock init failed\n");
goto clock_error;
}
Expand All @@ -956,9 +928,7 @@ static void __init eva_clock_init(void)
clk_set_parent(usb24s, system);

/* FSIBCK is 12.288MHz, and it is parent of FSI-B */
clk_set_parent(fsib, fsibck);
clk_set_rate(fsibck, 12288000);
clk_set_rate(fsib, 12288000);

clock_error:
if (!IS_ERR(system))
Expand All @@ -969,8 +939,6 @@ static void __init eva_clock_init(void)
clk_put(usb24s);
if (!IS_ERR(fsibck))
clk_put(fsibck);
if (!IS_ERR(fsib))
clk_put(fsib);
}

/*
Expand Down

0 comments on commit 39091fb

Please sign in to comment.