diff options
author | Hakim Giydan <hgiydan@marvell.com> | 2016-09-09 11:29:09 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-09-13 17:03:53 +0200 |
commit | e889b19ba08830882da18614494b811c3698520e (patch) | |
tree | 4e4de097c8ebb727f6ce4a644a3272d32ab7cd11 /src/mainboard | |
parent | f727c7ce38cc58eaf24c55d440e885a1b24a26a1 (diff) |
soc/marvell/mvmap2315: Add DDR driver
This driver is only a prototype driver, real driver
will be integrated at a later time.
Testing: booted successfully.
Change-Id: I372764962e96e5c9c827d524bc369978c5c1fda8
Signed-off-by: Hakim Giydan <hgiydan@marvell.com>
Reviewed-on: https://review.coreboot.org/16554
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/rotor/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/rotor/dram_params.c | 245 |
2 files changed, 246 insertions, 0 deletions
diff --git a/src/mainboard/google/rotor/Makefile.inc b/src/mainboard/google/rotor/Makefile.inc index e0015e3426..f2fa3e161d 100644 --- a/src/mainboard/google/rotor/Makefile.inc +++ b/src/mainboard/google/rotor/Makefile.inc @@ -25,4 +25,5 @@ ramstage-$(CONFIG_CHROMEOS) += chromeos.c romstage-y += memlayout.ld romstage-y += reset.c +romstage-y += dram_params.c romstage-$(CONFIG_CHROMEOS) += chromeos.c diff --git a/src/mainboard/google/rotor/dram_params.c b/src/mainboard/google/rotor/dram_params.c new file mode 100644 index 0000000000..60a417b6c9 --- /dev/null +++ b/src/mainboard/google/rotor/dram_params.c @@ -0,0 +1,245 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2016 Marvell, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <soc/sdram.h> + +struct mvmap2315_sdram_params ddr_params = { + { + 0x1f1f1f1f, + 0x00000100, + 0x00000100, + 0x1f1f1f1f, + 0x00000100, + 0x00000100, + 0x1f1f1f1f, + 0x00000100, + 0x00000100, + 0x1f1f1f1f, + 0x00000100, + 0x00000100, + 0x00010100, + 0x00000100, + 0x00003100, + 0x00010100, + 0x00000100, + 0x00003100, + 0x00010100, + 0x00000100, + 0x00003100, + 0x00010100, + 0x00000100, + 0x00003100, + 0x03230080, + 0x03230081, + 0x03230085, + 0x03230081, + 0x03230080, + 0x03230081, + 0x03230085, + 0x03230081, + 0x03230080, + 0x03230081, + 0x03230085, + 0x03230081, + 0x03230080, + 0x03230081, + 0x03230085, + 0x03230081, + 0x000b0681, + 0x000b0681, + 0x2A1001B8, + 0x2A1001B8, + 0x8000bb04, + 0x8000bb04, + 0x88087700, + 0x88087700, + 0x000b0681, + 0x000b0681, + 0x2A1001B8, + 0x2A1001B8, + 0x8000bb04, + 0x8000bb04, + 0x88087700, + 0x88087700, + 0x000b0681, + 0x000b0681, + 0x2A1001B8, + 0x2A1001B8, + 0x8000bb04, + 0x8000bb04, + 0x88087700, + 0x88087700, + 0x000b0681, + 0x000b0681, + 0x2A1001B8, + 0x2A1001B8, + 0x8000bb04, + 0x8000bb04, + 0x88087700, + 0x88087700, + 0x00bb0000, + 0x00bb0000, + 0x00bb0000, + 0x00bb0000, + 0x00bb0000, + 0x00bb0000, + 0x00bb0000, + 0x00bb0000, + 0x00000508, + 0x2A1001B8, + 0x00000508, + 0x00010508, + 0x00010508, + 0x00000508, + 0x2A1001B8, + 0x00000508, + 0x00010508, + 0x00010508, + 0x00000508, + 0x2A1001B8, + 0x00000508, + 0x00010508, + 0x00010508, + 0x00000508, + 0x2A1001B8, + 0x00000508, + 0x00010508, + 0x00010508 + }, + { + 0x04020632, + 0x04020632, + 0x04020632, + 0x04020632, + 0x04020632, + 0x04020632, + 0x04020632, + 0x04020632, + 0x00000010, + 0x00000010, + 0x00000010, + 0x00000010, + 0x00100000, + 0x00100000, + 0x00100000, + 0x00100000, + 0x00100000, + 0x00100000, + 0x00100000, + 0x00100000, + 0x00000000, + 0x00100001, + 0x00000000, + 0x40100001, + 0x00000000, + 0x80100003, + 0x00000000, + 0xc0100001, + 0x00000001, + 0x00100001, + 0x00000001, + 0x40100001, + 0x00000001, + 0x80100003, + 0x00000001, + 0xc0100001, + 0x221d0c1d, + 0x221d0c1d, + 0x221d0c1d, + 0x221d0c1d, + 0x40601d44, + 0x40601d44, + 0x40601d44, + 0x40601d44, + 0x10001000, + 0x10001000, + 0x10001000, + 0x10001000, + 0x00011000, + 0x00011000, + 0x00011000, + 0x00011000, + 0x0000020a, + 0x0000020a, + 0x0000020a, + 0x0000020a, + 0x0000027e, + 0x0004de19, + 0x0c7600a5, + 0x0000027e, + 0x0004de19, + 0x0c7600a5, + 0x0000027e, + 0x0004de19, + 0x0c7600a5, + 0x0000027e, + 0x0004de19, + 0x0c7600a5, + 0x02020404, + 0x02020404, + 0x02020404, + 0x02020404, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000004, + 0x00000004, + 0x00000004, + 0x00000004, + 0x0060003d, + 0x0060003d, + 0x0060003d, + 0x0060003d, + 0x00e000e0, + 0x00e000e0, + 0x00e000e0, + 0x00e000e0, + 0x010c0c08, + 0x010c0c08, + 0x010c0c08, + 0x010c0c08, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000e1c, + 0x00000e1c, + 0x00000e1c, + 0x00000e1c, + 0x0005a200, + 0x000000b0, + 0x000000b0, + 0x000000b0, + 0x000000b0, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x16000c00, + 0x16000c00, + 0x16000c00, + 0x16000c00, + 0x00000ff1, + 0xf3000001, + 0xf3020001, + 0xf3020002, + 0xf302000d + }, +}; |