aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-09-02 19:53:46 -0500
committerAaron Durbin <adurbin@chromium.org>2016-09-06 20:16:32 +0200
commitd94967dd22f66adf92a751e31e677924a9fc868d (patch)
tree7fdf125c78490dabf54cd0e01a461498468024b3 /src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h
parent475d2cb19e5e822c10239167864faf647a5d93c5 (diff)
mainboard/google/reef: add baseboard memory configuration
Move the current memory configuration implementation to the baseboard area such that other variants can leverage it. The swizzle config is exported as a global to allow duplicate swizzles to use the same structure while still allowing different memory SKUs. BUG=chrome-os-partner:56677 Change-Id: I57201118053051c01f0e3f164ab4bbaf650b892b Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16430 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h')
-rw-r--r--src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h
index e1883a49c2..84e6a30cf3 100644
--- a/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h
@@ -17,6 +17,7 @@
#define BASEBOARD_VARIANTS_H
#include <soc/gpio.h>
+#include <soc/meminit.h>
#include <stdint.h>
#include <vendorcode/google/chromeos/chromeos.h>
@@ -29,6 +30,13 @@ const struct pad_config *variant_gpio_table(size_t *num);
const struct pad_config *variant_early_gpio_table(size_t *num);
const struct pad_config *variant_sleep_gpio_table(size_t *num);
+/* Baseboard default swizzle. Can be reused if swizzle is same. */
+extern const struct lpddr4_swizzle_cfg baseboard_lpddr4_swizzle;
+/* Return LPDDR4 configuration structure. */
+const struct lpddr4_cfg *variant_lpddr4_config(void);
+/* Return memory SKU for the board. */
+size_t variant_memory_sku(void);
+
/* Return ChromeOS gpio table and fill in number of entries. */
const struct cros_gpio *variant_cros_gpios(size_t *num);