From 5d49b4a4bcbc878256dac40ef834e07ea7101673 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Mon, 27 Jun 2016 18:21:34 -0700 Subject: google/gru: Read RAM & board ids from the ADC - Update so that the RAM id is read from ADC instead of hard-coded from the config array. - Update the boardid readings so that they are bucketed instead of within an error margin. BRANCH=None BUG=chrome-os-partner:54566,chrome-os-partner:53988 TEST=hexdump /proc/device-tree/firmware/coreboot/ram-code and boardid when OS boots up. Also verified that voltage read in debug output returns correct id. Change-Id: I963406d8c440cd90c3024c814c0de61d35ebe2fd Signed-off-by: Martin Roth Original-Commit-Id: 068705a38734d2604f71c8a7b5bf2cc15b0f7045 Original-Change-Id: I1c847558d54a0f7f9427904eeda853074ebb0e2e Original-Signed-off-by: Shelley Chen Original-Reviewed-on: https://chromium-review.googlesource.com/356584 Original-Reviewed-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/15586 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/mainboard/google/gru/sdram_configs.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/mainboard/google/gru/sdram_configs.c') diff --git a/src/mainboard/google/gru/sdram_configs.c b/src/mainboard/google/gru/sdram_configs.c index f1f889c334..562055d158 100644 --- a/src/mainboard/google/gru/sdram_configs.c +++ b/src/mainboard/google/gru/sdram_configs.c @@ -58,9 +58,3 @@ const struct rk3399_sdram_params *get_sdram_config() return &sdram_configs[speed]; } - - -uint32_t ram_code(void) -{ - return get_sdram_index(); -} -- cgit v1.2.3