mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
Blackfin: bf518f-ezbrd: convert to portmux framework
Rather than bang MMRs directly, use the new portmux framework to handle the details. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
0c929426f8
commit
032c44e0a5
1 changed files with 6 additions and 12 deletions
|
@ -14,6 +14,7 @@
|
||||||
#include <spi.h>
|
#include <spi.h>
|
||||||
#include <asm/blackfin.h>
|
#include <asm/blackfin.h>
|
||||||
#include <asm/net.h>
|
#include <asm/net.h>
|
||||||
|
#include <asm/portmux.h>
|
||||||
#include <asm/mach-common/bits/otp.h>
|
#include <asm/mach-common/bits/otp.h>
|
||||||
#include <asm/sdh.h>
|
#include <asm/sdh.h>
|
||||||
|
|
||||||
|
@ -146,18 +147,11 @@ int misc_init_r(void)
|
||||||
|
|
||||||
int board_early_init_f(void)
|
int board_early_init_f(void)
|
||||||
{
|
{
|
||||||
#if !defined(CONFIG_SYS_NO_FLASH)
|
/* connect async banks by default */
|
||||||
/* setup BF518-EZBRD GPIO pin PG11 to AMS2. */
|
const unsigned short pins[] = {
|
||||||
bfin_write_PORTG_MUX((bfin_read_PORTG_MUX() & ~PORT_x_MUX_6_MASK) | PORT_x_MUX_6_FUNC_2);
|
P_AMS2, P_AMS3, 0,
|
||||||
bfin_write_PORTG_FER(bfin_read_PORTG_FER() | PG11);
|
};
|
||||||
|
return peripheral_request_list(pins, "async");
|
||||||
# if !defined(CONFIG_BFIN_SPI)
|
|
||||||
/* setup BF518-EZBRD GPIO pin PG15 to AMS3. */
|
|
||||||
bfin_write_PORTG_MUX((bfin_read_PORTG_MUX() & ~PORT_x_MUX_7_MASK) | PORT_x_MUX_7_FUNC_3);
|
|
||||||
bfin_write_PORTG_FER(bfin_read_PORTG_FER() | PG15);
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BFIN_SDH
|
#ifdef CONFIG_BFIN_SDH
|
||||||
|
|
Loading…
Reference in a new issue