~ubuntu-branches/ubuntu/raring/ipxe/raring

« back to all changes in this revision

Viewing changes to src/drivers/bitbash/spi_bit.c

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-11-14 15:47:31 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20121114154731-jhuy5d1h2jw75qe9
Tags: 1.0.0+git-4.d6b0b76-0ubuntu1
* New upstream snapshot:
  - d/p/iscsi*.patch: Dropped - included in snapshot.
  - Refreshed all other patches.
* d/p/enable-https.patch: Enable HTTPS support (LP: #1025239).

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 *
14
14
 * You should have received a copy of the GNU General Public License
15
15
 * along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
17
 * 02110-1301, USA.
17
18
 */
18
19
 
19
20
FILE_LICENCE ( GPL2_OR_LATER );
162
163
        uint32_t tmp_address;
163
164
        uint32_t tmp_address_detect;
164
165
 
 
166
        /* Open bit-bashing interface */
 
167
        open_bit ( &spibit->basher );
 
168
 
165
169
        /* Deassert chip select to reset specified slave */
166
170
        spi_bit_set_slave_select ( spibit, device->slave, DESELECT_SLAVE );
167
171
 
213
217
        /* Deassert chip select on specified slave */
214
218
        spi_bit_set_slave_select ( spibit, device->slave, DESELECT_SLAVE );
215
219
 
 
220
        /* Close bit-bashing interface */
 
221
        close_bit ( &spibit->basher );
 
222
 
216
223
        return 0;
217
224
}
218
225