diff options
| author | Wolfgang Denk <wd@denx.de> | 2009-04-04 22:15:46 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2009-04-04 22:15:46 +0200 | 
| commit | 5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee (patch) | |
| tree | 0e748004387ad33d791977718a100f090b59a5c6 /cpu/arm926ejs/at91/at91sam9rl_spi.c | |
| parent | 66932ac3929c7a145a6ef6574a96fd7535154951 (diff) | |
| parent | 03bab0091948196b9558248684c04f60943ca4b5 (diff) | |
| download | olio-uboot-2014.01-5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee.tar.xz olio-uboot-2014.01-5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-at91
Diffstat (limited to 'cpu/arm926ejs/at91/at91sam9rl_spi.c')
| -rw-r--r-- | cpu/arm926ejs/at91/at91sam9rl_spi.c | 18 | 
1 files changed, 15 insertions, 3 deletions
| diff --git a/cpu/arm926ejs/at91/at91sam9rl_spi.c b/cpu/arm926ejs/at91/at91sam9rl_spi.c index aa9c18317..389d6d80d 100644 --- a/cpu/arm926ejs/at91/at91sam9rl_spi.c +++ b/cpu/arm926ejs/at91/at91sam9rl_spi.c @@ -38,15 +38,27 @@ void at91_spi0_hw_init(unsigned long cs_mask)  	at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9RL_ID_SPI);  	if (cs_mask & (1 << 0)) { -		at91_set_gpio_output(AT91_PIN_PA28, 1); +		at91_set_A_periph(AT91_PIN_PA28, 1);  	}  	if (cs_mask & (1 << 1)) { -		at91_set_gpio_output(AT91_PIN_PB7, 1); +		at91_set_B_periph(AT91_PIN_PB7, 1);  	}  	if (cs_mask & (1 << 2)) { -		at91_set_gpio_output(AT91_PIN_PD8, 1); +		at91_set_A_periph(AT91_PIN_PD8, 1);  	}  	if (cs_mask & (1 << 3)) { +		at91_set_B_periph(AT91_PIN_PD9, 1); +	} +	if (cs_mask & (1 << 4)) { +		at91_set_gpio_output(AT91_PIN_PA28, 1); +	} +	if (cs_mask & (1 << 5)) { +		at91_set_gpio_output(AT91_PIN_PB7, 1); +	} +	if (cs_mask & (1 << 6)) { +		at91_set_gpio_output(AT91_PIN_PD8, 1); +	} +	if (cs_mask & (1 << 7)) {  		at91_set_gpio_output(AT91_PIN_PD9, 1);  	}  } |