~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/arch/arm/cpu/armv7/keystone/spl.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * common spl init code
 
3
 *
 
4
 * (C) Copyright 2012-2014
 
5
 *     Texas Instruments Incorporated, <www.ti.com>
 
6
 *
 
7
 * SPDX-License-Identifier:     GPL-2.0+
 
8
 */
 
9
#include <common.h>
 
10
#include <config.h>
 
11
#include <ns16550.h>
 
12
#include <malloc.h>
 
13
#include <spl.h>
 
14
#include <spi_flash.h>
 
15
 
 
16
#include <asm/u-boot.h>
 
17
#include <asm/utils.h>
 
18
 
 
19
DECLARE_GLOBAL_DATA_PTR;
 
20
 
 
21
static struct pll_init_data spl_pll_config[] = {
 
22
        CORE_PLL_799,
 
23
        TETRIS_PLL_500,
 
24
};
 
25
 
 
26
void spl_init_keystone_plls(void)
 
27
{
 
28
        init_plls(ARRAY_SIZE(spl_pll_config), spl_pll_config);
 
29
}
 
30
 
 
31
void spl_board_init(void)
 
32
{
 
33
        spl_init_keystone_plls();
 
34
        preloader_console_init();
 
35
}
 
36
 
 
37
u32 spl_boot_device(void)
 
38
{
 
39
#if defined(CONFIG_SPL_SPI_LOAD)
 
40
        return BOOT_DEVICE_SPI;
 
41
#else
 
42
        puts("Unknown boot device\n");
 
43
        hang();
 
44
#endif
 
45
}