Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201664
b: refs/heads/master
c: a7ebd93
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wang authored and Sascha Hauer committed Jul 26, 2010
1 parent af45f77 commit 9b1806b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: beaac6f32ce484bf141d550bc0f26005782161fe
refs/heads/master: a7ebd93143bc883b51227457e59ec774b1eb6c03
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-mx5/clock-mx51.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,10 @@ static struct clk gpt_32k_clk = {
.parent = &ckil_clk,
};

static struct clk kpp_clk = {
.id = 0,
};

#define DEFINE_CLOCK(name, i, er, es, gr, sr, p, s) \
static struct clk name = { \
.id = i, \
Expand Down Expand Up @@ -832,6 +836,7 @@ static struct clk_lookup lookups[] = {
_REGISTER_CLOCK("mxc-ehci.1", "usb_ahb", ahb_clk)
_REGISTER_CLOCK("fsl-usb2-udc", "usb", usboh3_clk)
_REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", ahb_clk)
_REGISTER_CLOCK("imx-keypad.0", NULL, kpp_clk)
};

static void clk_tree_init(void)
Expand Down
19 changes: 19 additions & 0 deletions trunk/arch/arm/mach-mx5/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,25 @@ struct platform_device mxc_wdt = {
.resource = mxc_wdt_resources,
};

static struct resource mxc_kpp_resources[] = {
{
.start = MX51_MXC_INT_KPP,
.end = MX51_MXC_INT_KPP,
.flags = IORESOURCE_IRQ,
} , {
.start = MX51_KPP_BASE_ADDR,
.end = MX51_KPP_BASE_ADDR + 0x8 - 1,
.flags = IORESOURCE_MEM,
},
};

struct platform_device mxc_keypad_device = {
.name = "imx-keypad",
.id = 0,
.num_resources = ARRAY_SIZE(mxc_kpp_resources),
.resource = mxc_kpp_resources,
};

static struct mxc_gpio_port mxc_gpio_ports[] = {
{
.chip.label = "gpio-0",
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mx5/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ extern struct platform_device mxc_wdt;
extern struct platform_device mxc_i2c_device0;
extern struct platform_device mxc_i2c_device1;
extern struct platform_device mxc_hsi2c_device;
extern struct platform_device mxc_keypad_device;

0 comments on commit 9b1806b

Please sign in to comment.