From 5122733d01e955e290215ff6f0e4a7c75d46a923 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Mon, 3 Feb 2014 19:09:57 +0100 Subject: [PATCH] PLL/clocks configuration offset in FLASH --- u-boot/include/configs/ap121.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/u-boot/include/configs/ap121.h b/u-boot/include/configs/ap121.h index 59f4df4..2053fcf 100755 --- a/u-boot/include/configs/ap121.h +++ b/u-boot/include/configs/ap121.h @@ -963,6 +963,16 @@ #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 -- 2.25.1