upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
875 B
39 lines
875 B
11 years ago
|
/*
|
||
|
* Copyright 2011 Freescale Semiconductor, Inc.
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0+
|
||
|
*/
|
||
|
|
||
8 years ago
|
#include <asm/mach-imx/iomux-v3.h>
|
||
11 years ago
|
#include <asm/arch/iomux.h>
|
||
|
#include <asm/io.h>
|
||
11 years ago
|
#include <asm/arch/clock.h>
|
||
11 years ago
|
#include <asm/arch/sys_proto.h>
|
||
11 years ago
|
|
||
|
int setup_sata(void)
|
||
|
{
|
||
11 years ago
|
struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
|
||
11 years ago
|
int ret;
|
||
11 years ago
|
|
||
9 years ago
|
if (!is_mx6dq() && !is_mx6dqp())
|
||
11 years ago
|
return 1;
|
||
|
|
||
|
ret = enable_sata_clock();
|
||
11 years ago
|
if (ret)
|
||
|
return ret;
|
||
|
|
||
|
clrsetbits_le32(&iomuxc_regs->gpr[13],
|
||
|
IOMUXC_GPR13_SATA_MASK,
|
||
|
IOMUXC_GPR13_SATA_PHY_8_RXEQ_3P0DB
|
||
|
|IOMUXC_GPR13_SATA_PHY_7_SATA2M
|
||
|
|IOMUXC_GPR13_SATA_SPEED_3G
|
||
|
|(3<<IOMUXC_GPR13_SATA_PHY_6_SHIFT)
|
||
|
|IOMUXC_GPR13_SATA_SATA_PHY_5_SS_DISABLED
|
||
|
|IOMUXC_GPR13_SATA_SATA_PHY_4_ATTEN_9_16
|
||
|
|IOMUXC_GPR13_SATA_PHY_3_TXBOOST_0P00_DB
|
||
|
|IOMUXC_GPR13_SATA_PHY_2_TX_1P104V
|
||
|
|IOMUXC_GPR13_SATA_PHY_1_SLOW);
|
||
|
|
||
|
return 0;
|
||
|
}
|