Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Board functions for Siemens CORVUS (AT91SAM9G45) based board |
| 4 | * (C) Copyright 2013 Siemens AG |
| 5 | * |
| 6 | * Based on: |
| 7 | * U-Boot file: board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c |
| 8 | * (C) Copyright 2007-2008 |
| 9 | * Stelian Pop <stelian@popies.net> |
| 10 | * Lead Tech Design <www.leadtechdesign.com> |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 11 | */ |
| 12 | |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 13 | #include <common.h> |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 14 | #include <dm.h> |
Simon Glass | 8e16b1e | 2019-12-28 10:45:05 -0700 | [diff] [blame] | 15 | #include <init.h> |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 16 | #include <asm/io.h> |
| 17 | #include <asm/arch/at91sam9g45_matrix.h> |
| 18 | #include <asm/arch/at91sam9_smc.h> |
| 19 | #include <asm/arch/at91_common.h> |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 20 | #include <asm/arch/at91_rstc.h> |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 21 | #include <asm/arch/atmel_serial.h> |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 22 | #include <asm/arch/gpio.h> |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 23 | #include <asm/gpio.h> |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 24 | #include <asm/arch/clk.h> |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 25 | #if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB) |
| 26 | #include <net.h> |
| 27 | #endif |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 28 | #ifndef CONFIG_DM_ETH |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 29 | #include <netdev.h> |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 30 | #endif |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 31 | #include <spi.h> |
| 32 | |
Heiko Schocher | 08c5df2 | 2015-08-21 11:28:20 +0200 | [diff] [blame] | 33 | #ifdef CONFIG_USB_GADGET_ATMEL_USBA |
| 34 | #include <asm/arch/atmel_usba_udc.h> |
| 35 | #endif |
| 36 | |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 37 | DECLARE_GLOBAL_DATA_PTR; |
| 38 | |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 39 | static void corvus_request_gpio(void) |
| 40 | { |
| 41 | gpio_request(CONFIG_SYS_NAND_ENABLE_PIN, "nand ena"); |
| 42 | gpio_request(CONFIG_SYS_NAND_READY_PIN, "nand rdy"); |
| 43 | gpio_request(AT91_PIN_PD7, "d0"); |
| 44 | gpio_request(AT91_PIN_PD8, "d1"); |
| 45 | gpio_request(AT91_PIN_PA12, "d2"); |
| 46 | gpio_request(AT91_PIN_PA13, "d3"); |
| 47 | gpio_request(AT91_PIN_PA15, "d4"); |
| 48 | gpio_request(AT91_PIN_PB7, "recovery button"); |
| 49 | gpio_request(AT91_PIN_PD1, "USB0"); |
| 50 | gpio_request(AT91_PIN_PD3, "USB1"); |
| 51 | gpio_request(AT91_PIN_PB18, "SPICS1"); |
| 52 | gpio_request(AT91_PIN_PB3, "SPICS0"); |
| 53 | gpio_request(CONFIG_RED_LED, "red led"); |
| 54 | gpio_request(CONFIG_GREEN_LED, "green led"); |
| 55 | } |
| 56 | |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 57 | static void corvus_nand_hw_init(void) |
| 58 | { |
| 59 | struct at91_smc *smc = (struct at91_smc *)ATMEL_BASE_SMC; |
| 60 | struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX; |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 61 | unsigned long csa; |
| 62 | |
| 63 | /* Enable CS3 */ |
| 64 | csa = readl(&matrix->ebicsa); |
| 65 | csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA; |
| 66 | writel(csa, &matrix->ebicsa); |
| 67 | |
| 68 | /* Configure SMC CS3 for NAND/SmartMedia */ |
Heiko Schocher | 22ab132 | 2014-11-18 11:53:53 +0100 | [diff] [blame] | 69 | writel(AT91_SMC_SETUP_NWE(2) | AT91_SMC_SETUP_NCS_WR(0) | |
| 70 | AT91_SMC_SETUP_NRD(2) | AT91_SMC_SETUP_NCS_RD(0), |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 71 | &smc->cs[3].setup); |
Heiko Schocher | 22ab132 | 2014-11-18 11:53:53 +0100 | [diff] [blame] | 72 | writel(AT91_SMC_PULSE_NWE(4) | AT91_SMC_PULSE_NCS_WR(4) | |
| 73 | AT91_SMC_PULSE_NRD(4) | AT91_SMC_PULSE_NCS_RD(4), |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 74 | &smc->cs[3].pulse); |
Heiko Schocher | 22ab132 | 2014-11-18 11:53:53 +0100 | [diff] [blame] | 75 | writel(AT91_SMC_CYCLE_NWE(7) | AT91_SMC_CYCLE_NRD(7), |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 76 | &smc->cs[3].cycle); |
| 77 | writel(AT91_SMC_MODE_RM_NRD | AT91_SMC_MODE_WM_NWE | |
| 78 | AT91_SMC_MODE_EXNW_DISABLE | |
| 79 | #ifdef CONFIG_SYS_NAND_DBW_16 |
| 80 | AT91_SMC_MODE_DBW_16 | |
| 81 | #else /* CONFIG_SYS_NAND_DBW_8 */ |
| 82 | AT91_SMC_MODE_DBW_8 | |
| 83 | #endif |
| 84 | AT91_SMC_MODE_TDF_CYCLE(3), |
| 85 | &smc->cs[3].mode); |
| 86 | |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 87 | at91_periph_clk_enable(ATMEL_ID_PIOC); |
Heiko Schocher | 22ab132 | 2014-11-18 11:53:53 +0100 | [diff] [blame] | 88 | at91_periph_clk_enable(ATMEL_ID_PIOA); |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 89 | |
| 90 | /* Enable NandFlash */ |
| 91 | at91_set_gpio_output(CONFIG_SYS_NAND_ENABLE_PIN, 1); |
Heiko Schocher | 22ab132 | 2014-11-18 11:53:53 +0100 | [diff] [blame] | 92 | at91_set_gpio_input(CONFIG_SYS_NAND_READY_PIN, 1); |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 93 | } |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 94 | |
| 95 | #if defined(CONFIG_SPL_BUILD) |
| 96 | #include <spl.h> |
| 97 | #include <nand.h> |
| 98 | |
Heiko Schocher | 8189a08 | 2015-08-21 11:28:19 +0200 | [diff] [blame] | 99 | void spl_board_init(void) |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 100 | { |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 101 | corvus_request_gpio(); |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 102 | /* |
| 103 | * For on the sam9m10g45ek board, the chip wm9711 stay in the test |
| 104 | * mode, so it need do some action to exit mode. |
| 105 | */ |
| 106 | at91_set_gpio_output(AT91_PIN_PD7, 0); |
| 107 | at91_set_gpio_output(AT91_PIN_PD8, 0); |
| 108 | at91_set_pio_pullup(AT91_PIO_PORTD, 7, 1); |
| 109 | at91_set_pio_pullup(AT91_PIO_PORTD, 8, 1); |
| 110 | at91_set_pio_pullup(AT91_PIO_PORTA, 12, 1); |
| 111 | at91_set_pio_pullup(AT91_PIO_PORTA, 13, 1); |
| 112 | at91_set_pio_pullup(AT91_PIO_PORTA, 15, 1); |
| 113 | |
| 114 | corvus_nand_hw_init(); |
| 115 | |
| 116 | /* Configure recovery button PINs */ |
| 117 | at91_set_gpio_input(AT91_PIN_PB7, 1); |
| 118 | |
| 119 | /* check if button is pressed */ |
| 120 | if (at91_get_gpio_value(AT91_PIN_PB7) == 0) { |
| 121 | u32 boot_device; |
| 122 | |
| 123 | debug("Recovery button pressed\n"); |
| 124 | boot_device = spl_boot_device(); |
| 125 | switch (boot_device) { |
| 126 | #ifdef CONFIG_SPL_NAND_SUPPORT |
| 127 | case BOOT_DEVICE_NAND: |
| 128 | nand_init(); |
| 129 | spl_nand_erase_one(0, 0); |
| 130 | break; |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 131 | #endif |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 132 | } |
| 133 | } |
| 134 | } |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 135 | |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 136 | #include <asm/arch/atmel_mpddrc.h> |
Wenyou Yang | aa0a58d | 2016-02-01 18:12:15 +0800 | [diff] [blame] | 137 | static void ddr2_conf(struct atmel_mpddrc_config *ddr2) |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 138 | { |
| 139 | ddr2->md = (ATMEL_MPDDRC_MD_DBW_16_BITS | ATMEL_MPDDRC_MD_DDR2_SDRAM); |
| 140 | |
| 141 | ddr2->cr = (ATMEL_MPDDRC_CR_NC_COL_10 | |
| 142 | ATMEL_MPDDRC_CR_NR_ROW_14 | |
| 143 | ATMEL_MPDDRC_CR_DIC_DS | |
| 144 | ATMEL_MPDDRC_CR_DQMS_SHARED | |
| 145 | ATMEL_MPDDRC_CR_CAS_DDR_CAS3); |
| 146 | ddr2->rtr = 0x24b; |
| 147 | |
| 148 | ddr2->tpr0 = (6 << ATMEL_MPDDRC_TPR0_TRAS_OFFSET |/* 6*7.5 = 45 ns */ |
| 149 | 2 << ATMEL_MPDDRC_TPR0_TRCD_OFFSET |/* 2*7.5 = 15 ns */ |
| 150 | 2 << ATMEL_MPDDRC_TPR0_TWR_OFFSET | /* 2*7.5 = 15 ns */ |
| 151 | 8 << ATMEL_MPDDRC_TPR0_TRC_OFFSET | /* 8*7.5 = 75 ns */ |
| 152 | 2 << ATMEL_MPDDRC_TPR0_TRP_OFFSET | /* 2*7.5 = 15 ns */ |
| 153 | 1 << ATMEL_MPDDRC_TPR0_TRRD_OFFSET | /* 1*7.5= 7.5 ns*/ |
| 154 | 1 << ATMEL_MPDDRC_TPR0_TWTR_OFFSET | /* 1 clk cycle */ |
| 155 | 2 << ATMEL_MPDDRC_TPR0_TMRD_OFFSET); /* 2 clk cycles */ |
| 156 | |
| 157 | ddr2->tpr1 = (2 << ATMEL_MPDDRC_TPR1_TXP_OFFSET | /* 2*7.5 = 15 ns */ |
| 158 | 200 << ATMEL_MPDDRC_TPR1_TXSRD_OFFSET | |
| 159 | 16 << ATMEL_MPDDRC_TPR1_TXSNR_OFFSET | |
| 160 | 14 << ATMEL_MPDDRC_TPR1_TRFC_OFFSET); |
| 161 | |
| 162 | ddr2->tpr2 = (1 << ATMEL_MPDDRC_TPR2_TRTP_OFFSET | |
| 163 | 0 << ATMEL_MPDDRC_TPR2_TRPA_OFFSET | |
| 164 | 7 << ATMEL_MPDDRC_TPR2_TXARDS_OFFSET | |
| 165 | 2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); |
| 166 | } |
| 167 | |
| 168 | void mem_init(void) |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 169 | { |
Wenyou Yang | aa0a58d | 2016-02-01 18:12:15 +0800 | [diff] [blame] | 170 | struct atmel_mpddrc_config ddr2; |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 171 | |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 172 | ddr2_conf(&ddr2); |
| 173 | |
Wenyou Yang | 78f8976 | 2016-02-03 10:16:50 +0800 | [diff] [blame] | 174 | at91_system_clk_enable(AT91_PMC_DDR); |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 175 | |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 176 | /* DDRAM2 Controller initialize */ |
Erik van Luijk | 59d780a | 2015-08-13 15:43:18 +0200 | [diff] [blame] | 177 | ddr2_init(ATMEL_BASE_DDRSDRC0, ATMEL_BASE_CS6, &ddr2); |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 178 | } |
| 179 | #endif |
| 180 | |
| 181 | #ifdef CONFIG_CMD_USB |
| 182 | static void taurus_usb_hw_init(void) |
| 183 | { |
| 184 | at91_periph_clk_enable(ATMEL_ID_PIODE); |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 185 | |
| 186 | at91_set_gpio_output(AT91_PIN_PD1, 0); |
| 187 | at91_set_gpio_output(AT91_PIN_PD3, 0); |
| 188 | } |
| 189 | #endif |
| 190 | |
| 191 | #ifdef CONFIG_MACB |
| 192 | static void corvus_macb_hw_init(void) |
| 193 | { |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 194 | /* Enable clock */ |
Heiko Schocher | 25d74a3 | 2014-10-31 08:31:06 +0100 | [diff] [blame] | 195 | at91_periph_clk_enable(ATMEL_ID_EMAC); |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 196 | |
| 197 | /* |
| 198 | * Disable pull-up on: |
| 199 | * RXDV (PA15) => PHY normal mode (not Test mode) |
| 200 | * ERX0 (PA12) => PHY ADDR0 |
| 201 | * ERX1 (PA13) => PHY ADDR1 => PHYADDR = 0x0 |
| 202 | * |
| 203 | * PHY has internal pull-down |
| 204 | */ |
| 205 | at91_set_pio_pullup(AT91_PIO_PORTA, 15, 0); |
| 206 | at91_set_pio_pullup(AT91_PIO_PORTA, 12, 0); |
| 207 | at91_set_pio_pullup(AT91_PIO_PORTA, 13, 0); |
| 208 | |
| 209 | at91_phy_reset(); |
| 210 | |
| 211 | /* Re-enable pull-up */ |
| 212 | at91_set_pio_pullup(AT91_PIO_PORTA, 15, 1); |
| 213 | at91_set_pio_pullup(AT91_PIO_PORTA, 12, 1); |
| 214 | at91_set_pio_pullup(AT91_PIO_PORTA, 13, 1); |
| 215 | |
| 216 | /* And the pins. */ |
| 217 | at91_macb_hw_init(); |
| 218 | } |
| 219 | #endif |
| 220 | |
| 221 | int board_early_init_f(void) |
| 222 | { |
| 223 | at91_seriald_hw_init(); |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 224 | corvus_request_gpio(); |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 225 | return 0; |
| 226 | } |
| 227 | |
Heiko Schocher | 08c5df2 | 2015-08-21 11:28:20 +0200 | [diff] [blame] | 228 | #ifdef CONFIG_USB_GADGET_ATMEL_USBA |
| 229 | /* from ./arch/arm/mach-at91/armv7/sama5d3_devices.c */ |
| 230 | void at91_udp_hw_init(void) |
| 231 | { |
Heiko Schocher | 08c5df2 | 2015-08-21 11:28:20 +0200 | [diff] [blame] | 232 | /* Enable UPLL clock */ |
Wenyou Yang | 0c25229 | 2016-02-02 11:11:54 +0800 | [diff] [blame] | 233 | at91_upll_clk_enable(); |
Wenyou Yang | 78f8976 | 2016-02-03 10:16:50 +0800 | [diff] [blame] | 234 | |
Heiko Schocher | 08c5df2 | 2015-08-21 11:28:20 +0200 | [diff] [blame] | 235 | /* Enable UDPHS clock */ |
| 236 | at91_periph_clk_enable(ATMEL_ID_UDPHS); |
| 237 | } |
| 238 | #endif |
| 239 | |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 240 | int board_init(void) |
| 241 | { |
| 242 | /* address of boot parameters */ |
| 243 | gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; |
| 244 | |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 245 | /* we have to request the gpios again after relocation */ |
| 246 | corvus_request_gpio(); |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 247 | #ifdef CONFIG_CMD_NAND |
| 248 | corvus_nand_hw_init(); |
| 249 | #endif |
| 250 | #ifdef CONFIG_ATMEL_SPI |
| 251 | at91_spi0_hw_init(1 << 4); |
| 252 | #endif |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 253 | #ifdef CONFIG_MACB |
| 254 | corvus_macb_hw_init(); |
| 255 | #endif |
| 256 | #ifdef CONFIG_CMD_USB |
| 257 | taurus_usb_hw_init(); |
| 258 | #endif |
Heiko Schocher | 08c5df2 | 2015-08-21 11:28:20 +0200 | [diff] [blame] | 259 | #ifdef CONFIG_USB_GADGET_ATMEL_USBA |
| 260 | at91_udp_hw_init(); |
| 261 | usba_udc_probe(&pdata); |
| 262 | #endif |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 263 | return 0; |
| 264 | } |
| 265 | |
| 266 | int dram_init(void) |
| 267 | { |
| 268 | gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, |
| 269 | CONFIG_SYS_SDRAM_SIZE); |
| 270 | return 0; |
| 271 | } |
| 272 | |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 273 | #ifndef CONFIG_DM_ETH |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 274 | int board_eth_init(bd_t *bis) |
| 275 | { |
| 276 | int rc = 0; |
| 277 | #ifdef CONFIG_MACB |
| 278 | rc = macb_eth_initialize(0, (void *)ATMEL_BASE_EMAC, 0x00); |
| 279 | #endif |
| 280 | return rc; |
| 281 | } |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 282 | #endif |
Heiko Schocher | 3757e97 | 2013-12-02 07:47:23 +0100 | [diff] [blame] | 283 | |
| 284 | /* SPI chip select control */ |
| 285 | int spi_cs_is_valid(unsigned int bus, unsigned int cs) |
| 286 | { |
| 287 | return bus == 0 && cs < 2; |
| 288 | } |
| 289 | |
| 290 | void spi_cs_activate(struct spi_slave *slave) |
| 291 | { |
| 292 | switch (slave->cs) { |
| 293 | case 1: |
| 294 | at91_set_gpio_output(AT91_PIN_PB18, 0); |
| 295 | break; |
| 296 | case 0: |
| 297 | default: |
| 298 | at91_set_gpio_output(AT91_PIN_PB3, 0); |
| 299 | break; |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | void spi_cs_deactivate(struct spi_slave *slave) |
| 304 | { |
| 305 | switch (slave->cs) { |
| 306 | case 1: |
| 307 | at91_set_gpio_output(AT91_PIN_PB18, 1); |
| 308 | break; |
| 309 | case 0: |
| 310 | default: |
| 311 | at91_set_gpio_output(AT91_PIN_PB3, 1); |
| 312 | break; |
| 313 | } |
| 314 | } |
Heiko Schocher | 914aff1 | 2016-05-25 07:23:45 +0200 | [diff] [blame] | 315 | |
| 316 | static struct atmel_serial_platdata at91sam9260_serial_plat = { |
| 317 | .base_addr = ATMEL_BASE_DBGU, |
| 318 | }; |
| 319 | |
| 320 | U_BOOT_DEVICE(at91sam9260_serial) = { |
| 321 | .name = "serial_atmel", |
| 322 | .platdata = &at91sam9260_serial_plat, |
| 323 | }; |