PLL/clocks configuration offset in FLASH
authorPiotr Dymacz <pepe2k@gmail.com>
Mon, 3 Feb 2014 18:09:57 +0000 (19:09 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 3 Feb 2014 18:09:57 +0000 (19:09 +0100)
u-boot/include/configs/ap121.h

index 59f4df44e744e5235cb98545ea5933902e3761af..2053fcf560608263f4c01d1f9966dd826ce2823c 100755 (executable)
        #define PLL_IN_FLASH_DATA_BLOCK_OFFSET  0x00030000
        #define PLL_IN_FLASH_DATA_BLOCK_LENGTH  0x00010000
        #define PLL_IN_FLASH_MAGIC_OFFSET               0x0000FFF0      // last 16 bytes
+#elif defined(CONFIG_FOR_DRAGINO_V2)
+       /*
+        * We will store PLL and CLOCK registers
+        * configuration at the end of environment
+        * sector (64 KB, environment uses only half!)
+        */
+       #define PLL_IN_FLASH_MAGIC                              0x504C4C73
+       #define PLL_IN_FLASH_DATA_BLOCK_OFFSET  0x00030000
+       #define PLL_IN_FLASH_DATA_BLOCK_LENGTH  0x00010000
+       #define PLL_IN_FLASH_MAGIC_OFFSET               0x0000FFF0      // last 16 bytes
 #else
        /*
         * All TP-Link routers have a lot of unused space