Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
08e2d98d
Commit
08e2d98d
authored
6 years ago
by
Troy Kisky
Browse files
Options
Downloads
Patches
Plain Diff
boundary: common: eth: add CONFIG_FEC_RESET_PULLUP support
Signed-off-by:
Troy Kisky
<
troy.kisky@boundarydevices.com
>
parent
334bafc0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/boundary/common/Kconfig
+4
-0
4 additions, 0 deletions
board/boundary/common/Kconfig
board/boundary/common/eth-imx8mm.c
+4
-0
4 additions, 0 deletions
board/boundary/common/eth-imx8mm.c
board/boundary/common/eth.c
+13
-2
13 additions, 2 deletions
board/boundary/common/eth.c
with
21 additions
and
2 deletions
board/boundary/common/Kconfig
+
4
−
0
View file @
08e2d98d
...
...
@@ -11,6 +11,10 @@ config MAX77823
default y if TARGET_NITROGEN6_SCM
default y if TARGET_VP
config FEC_RESET_PULLUP
bool
default y if TARGET_NITROGEN8MM
config OTG_CHARGER
bool "otg_charger"
depends on MAX77823
...
...
This diff is collapsed.
Click to expand it.
board/boundary/common/eth-imx8mm.c
+
4
−
0
View file @
08e2d98d
...
...
@@ -19,7 +19,11 @@
#ifdef CONFIG_PHY_ATHEROS
static
const
iomux_v3_cfg_t
enet_ar8035_gpio_pads
[]
=
{
#define GP_RGMII_PHY_RESET IMX_GPIO_NR(3, 15)
#ifdef CONFIG_FEC_RESET_PULLUP
IMX8MM_PAD_NAND_RE_B_GPIO3_IO15
|
MUX_PAD_CTRL
(
WEAK_PULLUP_OUTPUT
),
#else
IMX8MM_PAD_NAND_RE_B_GPIO3_IO15
|
MUX_PAD_CTRL
(
WEAK_PULLDN_OUTPUT
),
#endif
IMX8MM_PAD_ENET_RD0_GPIO1_IO26
|
MUX_PAD_CTRL
(
PULL_GP
(
STRAP_AR8035
,
0
)),
IMX8MM_PAD_ENET_RD1_GPIO1_IO27
|
MUX_PAD_CTRL
(
PULL_GP
(
STRAP_AR8035
,
1
)),
IMX8MM_PAD_ENET_RD2_GPIO1_IO28
|
MUX_PAD_CTRL
(
PULL_GP
(
STRAP_AR8035
,
2
)),
...
...
This diff is collapsed.
Click to expand it.
board/boundary/common/eth.c
+
13
−
2
View file @
08e2d98d
...
...
@@ -376,6 +376,15 @@ static void setup_enet_ksz9021(void)
#endif
#if defined(CONFIG_PHY_ATHEROS) || defined(CONFIG_PHY_MICREL)
static
void
release_phy_reset
(
int
gp
)
{
#ifdef CONFIG_FEC_RESET_PULLUP
gpio_direction_input
(
gp
);
#else
gpio_set_value
(
gp
,
1
);
#endif
}
static
void
setup_iomux_enet
(
int
kz
)
{
#ifdef GP_KS8995_RESET
...
...
@@ -396,11 +405,13 @@ static void setup_iomux_enet(int kz)
/* 1 ms minimum reset pulse for ar8035 */
udelay
(
1000
*
10
);
#ifdef GP_RGMII2_PHY_RESET
gpio_set_value
(
GP_RGMII2_PHY_RESET
,
1
);
/* PHY reset */
release_phy_reset
(
GP_RGMII2_PHY_RESET
);
#endif
#ifdef GP_RGMII_PHY_RESET
gpio_set_value
(
GP_RGMII_PHY_RESET
,
1
);
/* PHY reset */
release_phy_reset
(
GP_RGMII_PHY_RESET
);
#endif
#ifdef GP_KS8995_POWER_DOWN
gpio_direction_output
(
GP_KS8995_POWER_DOWN
,
1
);
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment