Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a759544f
Commit
a759544f
authored
Dec 21, 2009
by
Baruch Siach
Committed by
Sascha Hauer
Jan 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mx25: add support for FEC on i.MX25
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
dda71f16
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
arch/arm/mach-mx25/clock.c
arch/arm/mach-mx25/clock.c
+2
-0
arch/arm/mach-mx25/devices.c
arch/arm/mach-mx25/devices.c
+19
-0
arch/arm/mach-mx25/devices.h
arch/arm/mach-mx25/devices.h
+1
-0
arch/arm/plat-mxc/include/mach/mx25.h
arch/arm/plat-mxc/include/mach/mx25.h
+4
-0
No files found.
arch/arm/mach-mx25/clock.c
View file @
a759544f
...
...
@@ -173,6 +173,7 @@ DEFINE_CLOCK(pwm4_clk, 0, CCM_CGCR2, 2, get_rate_ipg, NULL);
DEFINE_CLOCK
(
kpp_clk
,
0
,
CCM_CGCR1
,
28
,
get_rate_ipg
,
NULL
);
DEFINE_CLOCK
(
tsc_clk
,
0
,
CCM_CGCR2
,
13
,
get_rate_ipg
,
NULL
);
DEFINE_CLOCK
(
i2c_clk
,
0
,
CCM_CGCR0
,
6
,
get_rate_i2c
,
NULL
);
DEFINE_CLOCK
(
fec_clk
,
0
,
CCM_CGCR0
,
23
,
get_rate_ipg
,
NULL
);
#define _REGISTER_CLOCK(d, n, c) \
{ \
...
...
@@ -204,6 +205,7 @@ static struct clk_lookup lookups[] = {
_REGISTER_CLOCK
(
"imx-i2c.0"
,
NULL
,
i2c_clk
)
_REGISTER_CLOCK
(
"imx-i2c.1"
,
NULL
,
i2c_clk
)
_REGISTER_CLOCK
(
"imx-i2c.2"
,
NULL
,
i2c_clk
)
_REGISTER_CLOCK
(
"fec.0"
,
NULL
,
fec_clk
)
};
int
__init
mx25_clocks_init
(
unsigned
long
fref
)
...
...
arch/arm/mach-mx25/devices.c
View file @
a759544f
...
...
@@ -419,3 +419,22 @@ int __init mxc_register_gpios(void)
return
mxc_gpio_init
(
imx_gpio_ports
,
ARRAY_SIZE
(
imx_gpio_ports
));
}
static
struct
resource
mx25_fec_resources
[]
=
{
{
.
start
=
MX25_FEC_BASE_ADDR
,
.
end
=
MX25_FEC_BASE_ADDR
+
0xfff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MX25_INT_FEC
,
.
end
=
MX25_INT_FEC
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mx25_fec_device
=
{
.
name
=
"fec"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
mx25_fec_resources
),
.
resource
=
mx25_fec_resources
,
};
arch/arm/mach-mx25/devices.h
View file @
a759544f
...
...
@@ -17,3 +17,4 @@ extern struct platform_device mxc_keypad_device;
extern
struct
platform_device
mxc_i2c_device0
;
extern
struct
platform_device
mxc_i2c_device1
;
extern
struct
platform_device
mxc_i2c_device2
;
extern
struct
platform_device
mx25_fec_device
;
arch/arm/plat-mxc/include/mach/mx25.h
View file @
a759544f
...
...
@@ -41,4 +41,8 @@
#define UART1_BASE_ADDR 0x43f90000
#define UART2_BASE_ADDR 0x43f94000
#define MX25_FEC_BASE_ADDR 0x50038000
#define MX25_INT_FEC 57
#endif
/* __MACH_MX25_H__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment