/*
**************************************************************************
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2014-2015, Marvell International Ltd.

Alternatively, this software may be distributed under the terms of the GNU
General Public License Version 2, and any use shall comply with the terms and
conditions of the GPL.  A copy of the GPL is available at
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
ARE EXPRESSLY DISCLAIMED.  The GPL license provides additional details about
this warranty disclaimer.
 ******************************************************************************
*/

pic_verification is a simple kernel-loadable module that does a bypass
test for PIC.  Data is injected into PIC using the ICETest hardware
block.  The ICETest IDMA is set up, PIC is put into bypass, and the
PIC WDMAs are set up and started.  Then the ICETest IDMA is started,
and the data goes through PIC unchanged - the compare between the
input data and the output data verifies that

To run the PIC Test:
    echo "t" > /sys/firmware/pic_verification/pictest/pictest

It's often good to run the basic register test first:
    echo "a" > /sys/firmware/pic_verification/pictest/pictest

Other functionality in this file is run by echoing its respective command out to the icetest sysfs file:

      cat < /sys/firmware/pic_verification/pictest/pictest



