LSP210DeviceDrivers

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

NAND driver

      of 2048 bytes of data + 64 bytes of OOB or 4096 bytes of data + 128 bytes of OOB.
      with a page size of 2K and a 2GB SLC NAND from SAMSUNG with a page size of 4K
      point of time.


NAND driver - continued

      128KB and 256KB. This option is DAVINCI_NAND_256KB_BLOCKS. This should be used if a NAND with
      a block size of 256K is used.


#ifdef CONFIG_DAVINCI_NAND_256KB_BLOCKS

  1. define NAND_BLOCK_SIZE (SZ_256K)
  2. else
  3. define NAND_BLOCK_SIZE (SZ_128K)
  4. endif

static struct mtd_partition nand_partitions[] = {

/* bootloader (UBL, U-Boot, BBT) */

{

.name = "bootloader",

.offset = 0,

.size = 30 * NAND_BLOCK_SIZE,

.mask_flags = MTD_WRITEABLE, /* force read-only */

}

};

NAND driver - continued

      the U-Boot binary, the NAND programmer writes U-Boot to blocks 25 and 26. 
      The reason why we write U-Boot to block 25 is because RBL searches for a valid UBL header in the first 24 blocks of NAND.
     for the bootloader components are modified.


MTD utilities for NAND

     was added as even open source does not have support for 4K devices.


MTD utilities for NAND - Continued

      trying to perform operations on the NAND.


EDMA driver

      from the board specific code instead of modifying the driver.


EDMA – New API’s

      is equal to the PARAM no and the TCC. With this we acquire a ‘symmetrical’ channel.
      TCC as ‘EDMA_TCC_SYMM’. This finds the first instance where a channel # = PARAM # = TCC#. The API will not
      acquire a channel that has been reserved for the LSP drivers
      as an argument and return either the tcc or the param associated with the channel.


EDMA API to request contiguous PARAMs


Davinci_request_params - variations

      that is passed as an argument to the API.
      starting at a PARAM No that is passed as an argument to the API. If this fails then the API continues to scan 
      the remaining PARAMs to find a set of contiguous PARAMs
      first try to find a set of 5 PARAMS starting at PARAM 80. If this fails the API will continue to search the remaining PARAMs 
      to check whether it is possible to find 5 contiguous PARAMs


EDMA API to free contiguous PARAMs

      of contiguous PARAMs begins along with the number of PARAMs
      is also called to free resources.


SPI Driver

     This file is generic, should not need to modify this.


MMC/SD

      By default in LSP 2.10, DM355, DM357 and DM6446 will use Q0 and DM365 will use Q3. 
      The queue to be used can be changed in the board specific file in /arch/arm/mach-davinci folder.
      For example
      static struct resource mmc0_resources[] = {
      /* this is a new option that can be passed to the driver */

[4] = { /* event queue */

.start = EVENTQ_3,

.end = EVENTQ_3,

.flags = IORESOURCE_DMA | IORESOURCE_DMA_EVENT_Q,,

},

};


Keypad Driver

     remove the keypad module. We can then insert the NAND driver module if NAND driver is required
     the correct key pressed on the DM365 EVM. The default mapping in the driver corresponds to a standard keyboard


Input Subsystem

</center>

DM365-keyscan.jpg

Other Drivers

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox