summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rush_ryu/bootblock.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-08-06 13:41:51 -0500
committerAaron Durbin <adurbin@chromium.org>2016-08-09 01:31:59 +0200
commit0c634159a35ff567fc4897df25dddddd181a1a8c (patch)
tree95314a0c45f2a7c8dff4e30d419163b85f45bcee /src/mainboard/google/rush_ryu/bootblock.c
parente67cd9ee909e1ac415711fec243a0ca0a47d87fd (diff)
downloadcoreboot-0c634159a35ff567fc4897df25dddddd181a1a8c.tar.xz
mainboard/google/rush_ryu: remove rush_ryu mainboard
The rush_ryu board was a development platform that never made it into a product. Remove it as it's not available to anyone. BUG=chrome-os-partner:55932 Change-Id: Ia3836ff8cade3009730543177a66736ae197572b Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16107 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/google/rush_ryu/bootblock.c')
-rw-r--r--src/mainboard/google/rush_ryu/bootblock.c89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/mainboard/google/rush_ryu/bootblock.c b/src/mainboard/google/rush_ryu/bootblock.c
deleted file mode 100644
index 2b80d52fcf..0000000000
--- a/src/mainboard/google/rush_ryu/bootblock.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright 2014 Google 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 <arch/io.h>
-#include <bootblock_common.h>
-#include <console/console.h>
-#include <device/i2c.h>
-#include <soc/addressmap.h>
-#include <soc/clk_rst.h>
-#include <soc/clock.h>
-#include <soc/funitcfg.h>
-#include <soc/nvidia/tegra/i2c.h>
-#include <soc/padconfig.h>
-
-#include "pmic.h"
-
-static const struct pad_config uart_console_pads[] = {
- /* UARTA: tx and rx. */
- PAD_CFG_SFIO(KB_ROW9, PINMUX_PULL_NONE, UA3),
- PAD_CFG_SFIO(KB_ROW10, PINMUX_INPUT_ENABLE | PINMUX_PULL_UP, UA3),
- /*
- * Disable UART2 pads as they are default connected to UARTA controller.
- */
- PAD_CFG_UNUSED(UART2_RXD),
- PAD_CFG_UNUSED(UART2_TXD),
- PAD_CFG_UNUSED(UART2_RTS_N),
- PAD_CFG_UNUSED(UART2_CTS_N),
-};
-
-static const struct pad_config pmic_pads[] = {
- PAD_CFG_SFIO(PWR_I2C_SCL, PINMUX_INPUT_ENABLE, I2CPMU),
- PAD_CFG_SFIO(PWR_I2C_SDA, PINMUX_INPUT_ENABLE, I2CPMU),
-};
-
-static const struct pad_config spiflash_pads[] = {
- /* mosi, miso, clk, cs0 */
- PAD_CFG_SFIO(GPIO_PG6, PINMUX_INPUT_ENABLE | PINMUX_PULL_UP, SPI4),
- PAD_CFG_SFIO(GPIO_PG7, PINMUX_INPUT_ENABLE | PINMUX_PULL_UP, SPI4),
- PAD_CFG_SFIO(GPIO_PG5, PINMUX_INPUT_ENABLE, SPI4),
- PAD_CFG_SFIO(GPIO_PI3, PINMUX_INPUT_ENABLE, SPI4),
-};
-
-static const struct funit_cfg funits[] = {
- /* PMIC on I2C5 (PWR_I2C* pads) at 400kHz. */
- FUNIT_CFG(I2C5, PLLP, 400, pmic_pads, ARRAY_SIZE(pmic_pads)),
- /* SPI flash at 33MHz on SPI4 controller. */
- FUNIT_CFG(SBC4, PLLP, 33333, spiflash_pads, ARRAY_SIZE(spiflash_pads)),
-};
-
-void bootblock_mainboard_early_init(void)
-{
- soc_configure_pads(uart_console_pads, ARRAY_SIZE(uart_console_pads));
-}
-
-static void set_clock_sources(void)
-{
- /* UARTA gets PLLP, deactivate CLK_UART_DIV_OVERRIDE */
- write32(CLK_RST_REG(clk_src_uarta), PLLP << CLK_SOURCE_SHIFT);
-}
-
-static const struct pad_config padcfgs[] = {
- /* Board build id bits 1:0 */
- PAD_CFG_GPIO_INPUT(KB_COL4, PINMUX_PULL_NONE),
- PAD_CFG_GPIO_INPUT(KB_COL3, PINMUX_PULL_NONE),
-};
-
-void bootblock_mainboard_init(void)
-{
- set_clock_sources();
-
- /* Set up controllers and pads to load romstage. */
- soc_configure_funits(funits, ARRAY_SIZE(funits));
- soc_configure_pads(padcfgs, ARRAY_SIZE(padcfgs));
-
- i2c_init(I2CPWR_BUS);
- pmic_init(I2CPWR_BUS);
-}