Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183211
b: refs/heads/master
c: 77a92c7
h: refs/heads/master
i:
  183209: bd88809
  183207: 51ff45a
v: v3
  • Loading branch information
Nageswari Srinivasan authored and Kevin Hilman committed Feb 4, 2010
1 parent 2119448 commit 16a54c4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 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: 5b8972d1b6461d0081d2d49dde4d129290da26f0
refs/heads/master: 77a92c710b65864fe07491864f3bbac9fbac51bc
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-davinci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ obj-$(CONFIG_MACH_SFFSDR) += board-sffsdr.o
obj-$(CONFIG_MACH_NEUROS_OSD2) += board-neuros-osd2.o
obj-$(CONFIG_MACH_DAVINCI_DM355_EVM) += board-dm355-evm.o
obj-$(CONFIG_MACH_DM355_LEOPARD) += board-dm355-leopard.o
obj-$(CONFIG_MACH_DAVINCI_DM6467_EVM) += board-dm646x-evm.o
obj-$(CONFIG_MACH_DAVINCI_DM6467_EVM) += board-dm646x-evm.o cdce949.o
obj-$(CONFIG_MACH_DAVINCI_DM365_EVM) += board-dm365-evm.o
obj-$(CONFIG_MACH_DAVINCI_DA830_EVM) += board-da830-evm.o
obj-$(CONFIG_MACH_DAVINCI_DA850_EVM) += board-da850-evm.o
Expand Down
31 changes: 31 additions & 0 deletions trunk/arch/arm/mach-davinci/board-dm646x-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include <mach/serial.h>
#include <mach/i2c.h>
#include <mach/nand.h>
#include <mach/clock.h>
#include <mach/cdce949.h>

#include "clock.h"

Expand Down Expand Up @@ -389,6 +391,9 @@ static struct i2c_board_info __initdata i2c_info[] = {
{
I2C_BOARD_INFO("cpld_video", 0x3b),
},
{
I2C_BOARD_INFO("cdce949", 0x6c),
},
};

static struct davinci_i2c_platform_data i2c_pdata = {
Expand Down Expand Up @@ -681,9 +686,35 @@ static void __init evm_init_i2c(void)
evm_init_video();
}

#define CDCE949_XIN_RATE 27000000

/* CDCE949 support - "lpsc" field is overridden to work as clock number */
static struct clk cdce_clk_in = {
.name = "cdce_xin",
.rate = CDCE949_XIN_RATE,
};

static struct davinci_clk cdce_clks[] = {
CLK(NULL, "xin", &cdce_clk_in),
CLK(NULL, NULL, NULL),
};

static void __init cdce_clk_init(void)
{
struct davinci_clk *c;
struct clk *clk;

for (c = cdce_clks; c->lk.clk; c++) {
clk = c->lk.clk;
clkdev_add(&c->lk);
clk_register(clk);
}
}

static void __init davinci_map_io(void)
{
dm646x_init();
cdce_clk_init();
}

static struct davinci_uart_config uart_config __initdata = {
Expand Down

0 comments on commit 16a54c4

Please sign in to comment.