Skip to content

Commit 338f4bc

Browse files
dgarskedanielinux
authored andcommitted
Peer review feedback.
1 parent 11f46a5 commit 338f4bc

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

hal/nxp_p1021.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#define ENABLE_MP /* multi-core support */
3838
#define ENABLE_IRQ
3939
/* #define ENABLE_QE_CRC32 */ /* CRC32 check on QE disabled by default */
40-
/* #define ENABLE_ETHERNET */ /* Does not support Ethernet UEC */
4140
#endif
4241

4342
/* Debugging */
@@ -984,12 +983,6 @@ static int hal_cpld_init(void)
984983
ELBC_ORG_CSCT | ELBC_ORG_XACS | ELBC_ORG_SCY | ELBC_ORG_TRLX |
985984
ELBC_ORG_EHTR | ELBC_ORG_EAD));
986985

987-
#ifdef ENABLE_ETHERNET /* ethernet (uec) setup not required */
988-
/* reset micrel phy for each UEC */
989-
set8(BCSR11, get8(BCSR11) & ~BCSR11_ENET_MICRST);
990-
set8(BCSR11, get8(BCSR11) | BCSR11_ENET_MICRST);
991-
#endif
992-
993986
return 0;
994987
}
995988
#endif
@@ -1491,7 +1484,7 @@ static void hal_mp_init(void)
14911484
#endif /* ENABLE_MP */
14921485

14931486
#ifdef ENABLE_IRQ
1494-
void hal_irq_init(void)
1487+
static void hal_irq_init(void)
14951488
{
14961489
uint32_t reg;
14971490

@@ -1505,7 +1498,7 @@ void hal_irq_init(void)
15051498
#endif
15061499

15071500
#ifdef ENABLE_L2_CACHE
1508-
void hal_l2_init(void)
1501+
static void hal_l2_init(void)
15091502
{
15101503
uint32_t reg;
15111504

0 commit comments

Comments
 (0)