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/AM5718: Change DDR address map

Part Number: AM5718
Other Parts Discussed in Thread: TMDXIDK5718

Tool/software: Linux

Hi,

My customers want to change DDR address map.
Device tree sources are assigned as follows, and they want to change these addresses.
(dts: am571x-idk-lcd-osd101t2587.dts)

0x99000000 ~ 0x9CFFFFFF:DSP
0xA0000000 ~ 0xABFFFFFF:CMEM

Question:
Do we have any files to fix other than dts?
(I think it is necessary to fix other files.)

Environment:
OS: Ubuntu 16.04.4 LTS
SDK: PROCESSOR-SDK-LINUX-RT-AM57X 05_02_00_10
EVM: TMDXIDK5718
Option: TMDXIDK57X-LCD

Regards,
Rei

  • Supplement

     

    My customers use the following dts because they use the option LCD(TMDXIDK57X-LCD).

    I checked the address of CMEM and DSP, it was described in the following file.

    /home/user/ti-processor-sdk-linux-~~/board-support/linux-rt~~~/arch/arm/boot/dts

     

    ■am57xx-evm-cmem-am571x.dtsi

    / {

           reserved-memory {

                   #address-cells = <2>;

                   #size-cells = <2>;

                   ranges;

     

                   cmem_block_mem_0: cmem_block_mem@a0000000 {

                           reg = <0x0 0xa0000000 0x0 0x0c000000>;

                           no-map;

                           status = "okay";

                   };

           };

     

           cmem {

                   compatible = "ti,cmem";

                   #address-cells = <1>;

                   #size-cells = <0>;

     

    #pool-size-cells = <2>;

     

                   status = "okay";

     

                   cmem_block_0: cmem_block@0 {

                           reg = <0>;

                           memory-region = <&cmem_block_mem_0>;

                           cmem-buf-pools = <1 0x0 0x0c000000>;

                   };

           };

    };

     

    ■am571x-idk-common.dtsi

    dsp1_memory_region: dsp1-memory@99000000 {

    compatible = "shared-dma-pool";

    reg = <0x0 0x99000000 0x0 0x4000000>;

    reusable;

    status = "okay";

    };

     

    Question:

    If we want to change the address, what else should we modify besides the above file?

     

    Regards,

    Rei

  • Please respond,,,
  • Hi, Rei,

    Sorry I was out of office last week, and couldn't reply to the thread.

    On Linux side, you only need to change the dts file.

    Rex

  • Hi, Rei,

    For some reason, I don't see your post in the thread. I wonder if you deleted it.
    In case you still confuse about it, I'll elaborate more.

    To change DDR mapping, I interprted it as you want to use different DDR areas for DSP from default setting, then yes, the changes should be reflected in dts file, and corresponding areas be defined in DSP code.

    DSP code defines the usage of its memory space. Usually it's in its linker cmd file in which it defines areas for TEXT, STACK, HEAP, etc

    Hope this is clear. If it answers your questions, please click "Resolved"

    Rex