summaryrefslogtreecommitdiff
path: root/src/mainboard/google/veyron_pinky/sdram_configs.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2014-09-26 17:48:28 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-03-27 08:06:51 +0100
commite35e2e7867607520fa242d4f7d1b0b0e96fa959a (patch)
tree11e221de7415c8f5146335b70a3c221e6526f8e1 /src/mainboard/google/veyron_pinky/sdram_configs.c
parent5c8b034f21ddc0c8c362814f832be16b752f106a (diff)
downloadcoreboot-e35e2e7867607520fa242d4f7d1b0b0e96fa959a.tar.xz
rk3288: Add GPIO() macro
The static gpio_t initializers are stylish, but they are still a little too annoying to write and read in day-to-day use. Let's wrap that in a macro to make it a little easier to handle. BUG=None TEST=None Change-Id: If41b2b3fd3c3f94797d314ba5f3ffcb2a250a005 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 102a5c0a800f43d688d11d1d7bbc51e360341517 Original-Change-Id: I385ae5182776c8cbb20bbf3c79b986628040f1cf Original-Signed-off-by: Julius Werner <jwerner@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/220250 Original-Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/9052 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/veyron_pinky/sdram_configs.c')
-rw-r--r--src/mainboard/google/veyron_pinky/sdram_configs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/google/veyron_pinky/sdram_configs.c b/src/mainboard/google/veyron_pinky/sdram_configs.c
index b3600fbfff..21a483ce73 100644
--- a/src/mainboard/google/veyron_pinky/sdram_configs.c
+++ b/src/mainboard/google/veyron_pinky/sdram_configs.c
@@ -42,10 +42,10 @@ static struct rk3288_sdram_params sdram_configs[] = {
#include "sdram_inf/sdram-unused.inc" /* ram_code = 1111 */
};
-#define GPIO_RAMCODE0 (gpio_t){.port = 8, .bank = GPIO_A, .idx = 0}
-#define GPIO_RAMCODE1 (gpio_t){.port = 8, .bank = GPIO_A, .idx = 1}
-#define GPIO_RAMCODE2 (gpio_t){.port = 8, .bank = GPIO_A, .idx = 2}
-#define GPIO_RAMCODE3 (gpio_t){.port = 8, .bank = GPIO_A, .idx = 3}
+#define GPIO_RAMCODE0 GPIO(8, A, 0)
+#define GPIO_RAMCODE1 GPIO(8, A, 1)
+#define GPIO_RAMCODE2 GPIO(8, A, 2)
+#define GPIO_RAMCODE3 GPIO(8, A, 3)
u32 sdram_get_ram_code(void)
{