blob: 97f80f277aa134492fcca986ebf2b10c261dde8f [file] [log] [blame]
# Copyright 2015 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.
import hw_driver
class crosChip(hw_driver.HwDriver):
"""Driver for getting chip name of EC or PD."""
def __init__(self, interface, params):
"""Constructor.
Args:
interface: driver interface object
params: dictionary of params
"""
super(crosChip, self).__init__(interface, params)
self._chip = self._params.get('chip', 'unknown')
def _Get_chip(self):
"""Get the EC chip name."""
return self._chip