Commit 98e56a3 1 parent 058e679 commit 98e56a3 Copy full SHA for 98e56a3
File tree 1 file changed +15
-0
lines changed
board/freescale/ls1046ccx
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: GPL-2.0+
2
2
/*
3
3
* Copyright 2016 Freescale Semiconductor, Inc.
4
+ * Updates Copyright 2020 CCX Technologies, Inc.
4
5
*/
5
6
6
7
#include <common.h>
@@ -37,6 +38,19 @@ int checkboard(void)
37
38
return 0 ;
38
39
}
39
40
41
+ void config_floating_gpio_as_outputs (void )
42
+ {
43
+ u32 val ;
44
+ struct ccsr_gpio * pgpio = (void * )(GPIO2_BASE_ADDR );
45
+
46
+ val = in_be32 (& pgpio -> gpdir );
47
+ /* configure GPIO2 12-15 as outputs, NOTE bit endianess flip */
48
+ val |= 0x00070000 ;
49
+ out_be32 (& pgpio -> gpdir , val );
50
+
51
+ printf ("GPIO Config: complete\n" );
52
+ }
53
+
40
54
int pld_enable_reset_req (void )
41
55
{
42
56
int err ;
@@ -141,6 +155,7 @@ void config_board_mux(void)
141
155
int misc_init_r (void )
142
156
{
143
157
config_board_mux ();
158
+ config_floating_gpio_as_outputs ();
144
159
return pld_enable_reset_req ();
145
160
}
146
161
#endif
You can’t perform that action at this time.
0 commit comments