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. |
Vadim Bendebury | 32005aa | 2014-10-16 11:07:41 -0700 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #include <stddef.h> |
| 16 | #include <spi-generic.h> |
| 17 | |
| 18 | struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs) |
| 19 | { |
| 20 | return NULL; |
| 21 | } |
| 22 | |
| 23 | int spi_claim_bus(struct spi_slave *slave) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | void spi_release_bus(struct spi_slave *slave) |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | int spi_xfer(struct spi_slave *slave, const void *dout, |
| 33 | unsigned out_bytes, void *din, unsigned in_bytes) |
| 34 | { |
| 35 | return 0; |
| 36 | } |