Make Carambola 2 use only half of the FLASH sector for storing env variables, so...
authorPiotr Dymacz <pepe2k@gmail.com>
Thu, 20 Mar 2014 11:37:53 +0000 (12:37 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Thu, 20 Mar 2014 11:37:53 +0000 (12:37 +0100)
u-boot/include/configs/ap121.h

index 45a7f601564925e0acb75445a7eae7b1da85a34d..5c434d680ad2449e4d265db79a0a267d264ac455 100755 (executable)
        #define CFG_ENV_ADDR            0x9F030000
        #define CFG_ENV_SIZE            0x8000
        #define CFG_ENV_SECT_SIZE       0x10000
+#elif defined(CONFIG_FOR_8DEVICES_CARAMBOLA2)
+       #define CFG_ENV_ADDR            0x9F040000
+       #define CFG_ENV_SIZE            0x8000
+       #define CFG_ENV_SECT_SIZE       0x10000
 #else
        #define CFG_ENV_ADDR            0x9F040000
        #define CFG_ENV_SIZE            0x10000
 #elif defined(CONFIG_FOR_8DEVICES_CARAMBOLA2)
        /*
         * We will store PLL and CLOCK registers
-        * configuration at the end of U-Boot
-        * image (4th 64 KiB block)
-        * It implies that binary image can't
-        * be bigger than 192 KiB!
-        *
-        * TODO: fix me
+        * 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_OFFSET  0x00040000
        #define PLL_IN_FLASH_DATA_BLOCK_LENGTH  0x00010000
        #define PLL_IN_FLASH_MAGIC_OFFSET               0x0000FFF0      // last 16 bytes
 #elif defined(CONFIG_FOR_DRAGINO_V2)