Vadim Bendebury | 32005aa | 2014-10-16 11:07:41 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * Copyright 2014 Google Inc. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; version 2 of the License. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #include <stddef.h> |
| 20 | #include <spi-generic.h> |
| 21 | |
| 22 | struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs) |
| 23 | { |
| 24 | return NULL; |
| 25 | } |
| 26 | |
| 27 | int spi_claim_bus(struct spi_slave *slave) |
| 28 | { |
| 29 | return 0; |
| 30 | } |
| 31 | |
| 32 | void spi_release_bus(struct spi_slave *slave) |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | int spi_xfer(struct spi_slave *slave, const void *dout, |
| 37 | unsigned out_bytes, void *din, unsigned in_bytes) |
| 38 | { |
| 39 | return 0; |
| 40 | } |