mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-05 00:41:17 +01:00
ipq9574: Add eth_init support during boot up
During boot flow, when u-boot enters into u-boot, eth init must be done. This patch adds support for the same. Change-Id: I00c39308e2f9afde59abae5b8a71fa281a7b3b51 Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
This commit is contained in:
parent
929b70f32f
commit
3600a5e5f5
1 changed files with 14 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#define DLOAD_DISABLED 0x40
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
struct sdhci_host mmc_host;
|
||||
extern int ipq9574_edma_init(void *cfg);
|
||||
extern int ipq_spi_init(u16);
|
||||
|
||||
unsigned int qpic_frequency = 0, qpic_phase = 0, qpic_training_offset = 0;
|
||||
|
|
@ -629,6 +630,19 @@ int set_uuid_bootargs(char *boot_args, char *part_name, int buflen, bool gpt_fla
|
|||
return 0;
|
||||
}
|
||||
|
||||
int board_eth_init(bd_t *bis)
|
||||
{
|
||||
int ret=0;
|
||||
|
||||
/* eth_clock_enable must be added */
|
||||
ret = ipq9574_edma_init(NULL);
|
||||
|
||||
if (ret != 0)
|
||||
printf("%s: ipq9574_edma_init failed : %d\n", __func__, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
unsigned long timer_read_counter(void)
|
||||
{
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue