/*
    This module implements an interface to the SPI on the lpc22xx.
    Copyright (C) 2006  Embedded Artists AB (www.embeddedartists.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include <config.h>
#include <common.h>
#include <asm/errno.h>
#include <asm/arch/hardware.h>
#include "spi.h"

unsigned long spi_flags;
unsigned char spi_idle = 0x00;

int spi_init(void)
{
	unsigned long pinsel0_value;

	/* activate spi pins */
	pinsel0_value = GET32(PINSEL0);
	pinsel0_value &= ~(0xFFl << 8);
	pinsel0_value |= (0x55l << 8);
	PUT32(PINSEL0, pinsel0_value);

	return 0;
}
