This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TMS320DM8148: How to Enable single EMIF interface

Part Number: TMS320DM8148


Tool/software: Linux

Hi,

I am using DVR RDK on DM8148. I want to use only one EMIF interface. In uboot by default both EMIFs are enabled and configured. To enable single EMIF I followed http://processors.wiki.ti.com/index.php/TI814x-DDR3-Init-U-Boot  link. Got a U-Boot patch http://processors.wiki.ti.com/index.php/File:Ti8148_single_emif_patch.zip from this link.

But above link specifies changes regarding U-Boot only. Are there any changes required in kernel or configuration files in file system like physical address, DDR memory map, linux memory? If required can you please guide me how to change those settings ??

Regards,

Pranay kumar

  • Hi Pranay,

    EMIF interface is configured in u-boot only. I am not aware of changes needed in kernel or configuration files in filesystem, where EMIF is already configured and running.

    Regards,
    Pavel
  • Hi Pavel,

    Right now we have 2Gb of DDR space and both EMIFs are working. Now, when I disable a EMIF interface half of my DDR space is gone.

    Is there no need to indicate this to file system or kernel ?

    We have a DDR configuration file config_512M.bld which is used to create the DDR Memory map and memory allocations for various processors. Should I modify that file ?

    In uboot enviroment variables we have variables like mem=384M@0x98000000, mem=256M, ddr_mem=512M, vmalloc=384M etc. Should I modify any of these variables ??

    Regards,
    Pranay Kumar
  • kashetty pranay kumar said:
    Right now we have 2Gb of DDR space and both EMIFs are working. Now, when I disable a EMIF interface half of my DDR space is gone.

    When you disable one EMIF, do you double the memory attached to other EMIF? From what I find your description, the answer is no.

    You have 2Gbit on your device, 1Gbit on EMIF0 and 1Gbit on EMIF1. You disable EMIF1, and keep 1Gbit on EMIF0 and use only EMIF0. There is no SW option to make your 1Gbit memory on EMIF0 to become 2Gbit.

    Regards,
    Pavel

  • You have 2Gbit on your device, 1Gbit on EMIF0 and 1Gbit on EMIF1. You disable EMIF1, and keep 1Gbit on EMIF0 and use only EMIF0. There is no SW option to make your 1Gbit memory on EMIF0 to become 2Gbit.

    I dont want to double the Memory on EMIF0. When I disable EMIF1 half of my memory is gone. So I should indicate software that half of my memory is gone. How to indicate it ??

    Regards,
    Pranay kumar
  • You just need to change the memory map from 2Gbit to 1Gbit, that is all.

    If you have 1Gbit on EMIF0 and 1Gbit on EMIF1, and disable EMIF1, this is same as if you have 1Gbit on EMIF0 and 1Gbit on EMIF1 and change that to 512MBit on EMIF0 and 512Mbit on EMIF1.

    Regards,
    Pavel