Shopping Cart | 中文网站
 
 
Overview
Online Support
FAQ
  Atmel Series  (29) TOP10
  MYS-SAM9X5 (3)
  MYS-SAM9G45 (1)
  MYD-SAM9X5 (7)
  MYD-SAM9X5-V2 (2)
  MYD-JA5D2X (0)
  MYD-SAMA5D3X (11)
  MYD-SAMA5D3X-C (0)
  MYD-JA5D4X (0)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-JA5D2X (0)
  MYC-SAMA5D3X (0)
  MCC-SAMA5D3X-C (0)
  MYC-JA5D4X (0)
  NXP Series  (23) TOP10
  MYS-6ULX (4)
  MYD-Y6ULX (3)
  MYD-Y6ULX-HMI (1)
  MYD-IMX28X (2)
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  MYC-Y6ULX (4)
  MYC-IMX28X (0)
  i.MX 6UL/6ULL (6)
  TI Series  (24) TOP10
  MYD-AM335X (12)
  MYD-AM335X-Y (0)
  MYD-AM335X-J (0)
  MYD-C437X (0)
  MYD-C437X-PRU (5)
  Rico Board (6)
  MYC-AM335X (1)
  MCC-AM335X-Y (0)
  MCC-AM335X-J (0)
  MYC-C437X (0)
  Xilinx Series  (20) TOP10
  Z-turn Board (9)
  Z-turn Lite (2)
  MYD-C7Z010/20 (0)
  MYD-C7Z015 (7)
  MYD-Y7Z010/007S (0)
  MYC-C7Z010/20 (0)
  MYC-C7Z015 (0)
  MYC-Y7Z010/007S (0)
  HMI Solutions  (0) TOP10
  MYD-Y6ULX-CHMI (0)
  MY-EVC5100S-HMI (0)
  Others  (1) TOP10
  MY-WF003U (1)
 
  Home >  Support > Atmel Series > MYS-SAM9X5
 
Enable SPI driver for SAM9X5 Board
 
Question
How to enable SPI driver for the SAM9X5 board?
Answer

MYIR's SAM9X5 board has not enabled SPI driver by default. If you want to use, you need to enable SPI driver when compiling the kernel. Please follow below steps:


1. Open menuconfig

$ make ARCH=arm myir_MYD-SAM9X5_4.3lcd_defconfig
$ make menuconfig

2. Please find the item "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)", i.e. "CONFIG_MTD_M25P80" as in below location and open it.

-> Device Drivers
  |       -> Memory Technology Device (MTD) support (MTD [=y])              |  
  |         -> Self-contained MTD device drivers    

Press space twice to open it:

3. Re-compile the kernel

$ make ARCH=arm uImage CROSS_COMPILE=/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-


4. The SPI driver will be shown after the board booted under the path "/dev/mtd4


5. Please download below test program for using the SPI linux driver which can be used for the MYD-SAM9X5 and MYS-SAM9X5 boards.


test_program.tar.bz2 

 

Room 04, 6th Floor, Building No.2, Fada Road, Yunli Smart Park, Bantian, Longgang District, Shenzhen, Guangdong, China 518129
E-mail: sales@myirtech.com or myirtech@yahoo.com  Phone: +86-755-22984836  Fax: +86-755-25532724
Copyright © MYIR Tech Limited 2011-2020 all rights reserved.
myirtech_facebook myirtech_Twitter myirtech_linkedin myirtech_youtube