The number of BTB blocks was modified to be different between the two chip flavors supported (BB/K2) as a result, this lead to a re-write of selecting the default hsi value based on the chip. This patch creates a lookup table for hsi values per chip rather than ask again and again for every value.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -663,8 +663,8 @@ · 662 unmodified lines | |||
| 663 | #define PBF_MAX_CMD_LINES 3328 | 663 | #define PBF_MAX_CMD_LINES 3328 |
| 664 | 664 | ||
| 665 | /* Number of BTB blocks. Each block is 256B. */ | 665 | /* Number of BTB blocks. Each block is 256B. */ |
| 666 | #define BTB_MAX_BLOCKS 1440 | 666 | #define BTB_MAX_BLOCKS_BB 1440 |
| 667 | 667 | #define BTB_MAX_BLOCKS_K2 1840 | |
| 668 | /*****************/ | 668 | /*****************/ |
| 669 | /* PRS CONSTANTS */ | 669 | /* PRS CONSTANTS */ |
| 670 | /*****************/ | 670 | /*****************/ |