diff options
| -rw-r--r-- | arch/arm/mach-mx25/clock.c | 2 | ||||
| -rw-r--r-- | arch/arm/mach-mx25/devices.c | 19 | ||||
| -rw-r--r-- | arch/arm/mach-mx25/devices.h | 1 | ||||
| -rw-r--r-- | arch/arm/plat-mxc/include/mach/mx25.h | 4 |
4 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/clock.c b/arch/arm/mach-mx25/clock.c index ef26951a5275..6e838b857712 100644 --- a/arch/arm/mach-mx25/clock.c +++ b/arch/arm/mach-mx25/clock.c | |||
| @@ -173,6 +173,7 @@ DEFINE_CLOCK(pwm4_clk, 0, CCM_CGCR2, 2, get_rate_ipg, NULL); | |||
| 173 | DEFINE_CLOCK(kpp_clk, 0, CCM_CGCR1, 28, get_rate_ipg, NULL); | 173 | DEFINE_CLOCK(kpp_clk, 0, CCM_CGCR1, 28, get_rate_ipg, NULL); |
| 174 | DEFINE_CLOCK(tsc_clk, 0, CCM_CGCR2, 13, get_rate_ipg, NULL); | 174 | DEFINE_CLOCK(tsc_clk, 0, CCM_CGCR2, 13, get_rate_ipg, NULL); |
| 175 | DEFINE_CLOCK(i2c_clk, 0, CCM_CGCR0, 6, get_rate_i2c, NULL); | 175 | DEFINE_CLOCK(i2c_clk, 0, CCM_CGCR0, 6, get_rate_i2c, NULL); |
| 176 | DEFINE_CLOCK(fec_clk, 0, CCM_CGCR0, 23, get_rate_ipg, NULL); | ||
| 176 | 177 | ||
| 177 | #define _REGISTER_CLOCK(d, n, c) \ | 178 | #define _REGISTER_CLOCK(d, n, c) \ |
| 178 | { \ | 179 | { \ |
| @@ -204,6 +205,7 @@ static struct clk_lookup lookups[] = { | |||
| 204 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk) | 205 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk) |
| 205 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c_clk) | 206 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c_clk) |
| 206 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c_clk) | 207 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c_clk) |
| 208 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | ||
| 207 | }; | 209 | }; |
| 208 | 210 | ||
| 209 | int __init mx25_clocks_init(unsigned long fref) | 211 | int __init mx25_clocks_init(unsigned long fref) |
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index 63511de3a559..9fdeea1c083b 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
| @@ -419,3 +419,22 @@ int __init mxc_register_gpios(void) | |||
| 419 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); | 419 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); |
| 420 | } | 420 | } |
| 421 | 421 | ||
| 422 | static struct resource mx25_fec_resources[] = { | ||
| 423 | { | ||
| 424 | .start = MX25_FEC_BASE_ADDR, | ||
| 425 | .end = MX25_FEC_BASE_ADDR + 0xfff, | ||
| 426 | .flags = IORESOURCE_MEM, | ||
| 427 | }, | ||
| 428 | { | ||
| 429 | .start = MX25_INT_FEC, | ||
| 430 | .end = MX25_INT_FEC, | ||
| 431 | .flags = IORESOURCE_IRQ, | ||
| 432 | }, | ||
| 433 | }; | ||
| 434 | |||
| 435 | struct platform_device mx25_fec_device = { | ||
| 436 | .name = "fec", | ||
| 437 | .id = 0, | ||
| 438 | .num_resources = ARRAY_SIZE(mx25_fec_resources), | ||
| 439 | .resource = mx25_fec_resources, | ||
| 440 | }; | ||
diff --git a/arch/arm/mach-mx25/devices.h b/arch/arm/mach-mx25/devices.h index fe6bf88ad1dd..fe5420fcd11f 100644 --- a/arch/arm/mach-mx25/devices.h +++ b/arch/arm/mach-mx25/devices.h | |||
| @@ -17,3 +17,4 @@ extern struct platform_device mxc_keypad_device; | |||
| 17 | extern struct platform_device mxc_i2c_device0; | 17 | extern struct platform_device mxc_i2c_device0; |
| 18 | extern struct platform_device mxc_i2c_device1; | 18 | extern struct platform_device mxc_i2c_device1; |
| 19 | extern struct platform_device mxc_i2c_device2; | 19 | extern struct platform_device mxc_i2c_device2; |
| 20 | extern struct platform_device mx25_fec_device; | ||
diff --git a/arch/arm/plat-mxc/include/mach/mx25.h b/arch/arm/plat-mxc/include/mach/mx25.h index 91e738144804..854e2dc58481 100644 --- a/arch/arm/plat-mxc/include/mach/mx25.h +++ b/arch/arm/plat-mxc/include/mach/mx25.h | |||
| @@ -41,4 +41,8 @@ | |||
| 41 | #define UART1_BASE_ADDR 0x43f90000 | 41 | #define UART1_BASE_ADDR 0x43f90000 |
| 42 | #define UART2_BASE_ADDR 0x43f94000 | 42 | #define UART2_BASE_ADDR 0x43f94000 |
| 43 | 43 | ||
| 44 | #define MX25_FEC_BASE_ADDR 0x50038000 | ||
| 45 | |||
| 46 | #define MX25_INT_FEC 57 | ||
| 47 | |||
| 44 | #endif /* __MACH_MX25_H__ */ | 48 | #endif /* __MACH_MX25_H__ */ |
