~ubuntu-branches/ubuntu/saucy/u-boot/saucy

« back to all changes in this revision

Viewing changes to board/imx31_phycore/imx31_phycore.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2011-07-24 09:35:32 UTC
  • mfrom: (16.1.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110724093532-8gkkvtczkjagf4gv
Tags: 2011.06-3
Add DreamPlug support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
DECLARE_GLOBAL_DATA_PTR;
32
32
 
33
 
int dram_init (void)
34
 
{
35
 
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
36
 
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
37
 
 
38
 
        return 0;
39
 
}
40
 
 
41
 
int board_init (void)
 
33
int dram_init(void)
 
34
{
 
35
        /* dram_init must store complete ramsize in gd->ram_size */
 
36
        gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1,
 
37
                                PHYS_SDRAM_1_SIZE);
 
38
        return 0;
 
39
}
 
40
 
 
41
int board_init(void)
 
42
{
 
43
 
 
44
        gd->bd->bi_arch_number = MACH_TYPE_PCM037;      /* board id for linux */
 
45
        gd->bd->bi_boot_params = (0x80000100);  /* adress of boot parameters */
 
46
 
 
47
        return 0;
 
48
}
 
49
 
 
50
int board_early_init_f(void)
42
51
{
43
52
        __REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */
44
53
        __REG(CSCR_L(0)) = 0x10000d03;
62
71
        mx31_gpio_mux(MUX_CSPI2_MOSI__I2C2_SCL);
63
72
        mx31_gpio_mux(MUX_CSPI2_MISO__I2C2_SDA);
64
73
 
65
 
        gd->bd->bi_arch_number = MACH_TYPE_PCM037;      /* board id for linux */
66
 
        gd->bd->bi_boot_params = (0x80000100);          /* adress of boot parameters */
67
 
 
68
74
        return 0;
69
75
}
70
76