diff options
author | Vic Yang <victoryang@chromium.org> | 2013-10-28 17:18:41 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-10-29 03:55:35 +0000 |
commit | e589e87b48d0a66bb818a648da9c29fc509896a2 (patch) | |
tree | 89867b3794f26ff0d50493bddbbe133b47fce0fc /chip/lm4/mock_lpc.c | |
parent | 718f4bb5e3a806f75b514295b9c9770a9a3b8e6a (diff) | |
download | chrome-ec-stabilize-4886.B.tar.gz |
Remove QEMU testsstabilize-4886.B
QEMU tests served us well, but it has been more and more difficult to
maintain as we now have more chips and use more functionality from each
EC chip. With emulator tests in place to test common code and hardware
test to test per-chip/per-board drivers, it's time to remove QEMU tests
to simplify our code base.
QEMU tests that are covered by other emulator tests are removed
completely; tests that are not covered are left alone for now to
preserve the test logic.
BUG=chrome-os-partner:18343
TEST=util/make_all.sh
BRANCH=None
Change-Id: I5a4dd2f5ac42f7f66f86fdce0b62dbd2c65bf66a
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/174669
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4/mock_lpc.c')
-rw-r--r-- | chip/lm4/mock_lpc.c | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/chip/lm4/mock_lpc.c b/chip/lm4/mock_lpc.c deleted file mode 100644 index b4b7164352..0000000000 --- a/chip/lm4/mock_lpc.c +++ /dev/null @@ -1,79 +0,0 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -/* Mock LPC module for Chrome EC */ - -#include "common.h" -#include "ec_commands.h" -#include "lpc.h" -#include "registers.h" -#include "uart.h" - - -void lpc_set_host_event_state(uint32_t mask) -{ - uart_printf("Host event: %x\n", mask); -} - - -uint32_t lpc_get_host_event_state(void) -{ - /* Not implemented */ - return 0; -} - - -void lpc_clear_host_event_state(uint32_t mask) -{ - uart_printf("Clear host event: %x\n", mask); -} - - -void lpc_set_host_event_mask(enum lpc_host_event_type type, uint32_t mask) -{ - uart_printf("Set host event mask: type %d = %x\n", type, mask); -} - - -uint32_t lpc_get_host_event_mask(enum lpc_host_event_type type) -{ - /* Not implemented */ - return 0; -} - - -int lpc_comx_has_char(void) -{ - /* Not implemented */ - return 0; -} - - -int lpc_comx_get_char(void) -{ - /* Not implemented */ - return 0; -} - - -void lpc_comx_put_char(int c) -{ - /* Not implemented */ - return; -} - -#define LPC_POOL_OFFS_CMD_DATA 512 /* Data range for host commands - 512-767 */ -#define LPC_POOL_CMD_DATA (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_CMD_DATA) - -uint8_t *lpc_get_memmap_range(void) -{ - return (uint8_t *)LPC_POOL_CMD_DATA + EC_HOST_PARAM_SIZE * 2; -} - - -uint8_t *host_get_buffer(void) -{ - return (uint8_t *)LPC_POOL_CMD_DATA; -} |