aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMario Six2018-10-04 02:00:40 -0500
committerSimon Glass2018-11-14 11:16:27 -0600
commit82744c20e6eaf45311b5dc92820c329de4a7219b (patch)
treee49f76979860962f2cacf6c3d04a074f3280cd5c /test
parent73fe41117d2c2838376802a5f15d6435c1dec8da (diff)
downloadu-boot-82744c20e6eaf45311b5dc92820c329de4a7219b.tar.gz
u-boot-82744c20e6eaf45311b5dc92820c329de4a7219b.tar.xz
u-boot-82744c20e6eaf45311b5dc92820c329de4a7219b.zip
test: regmap: Increase size of syscon0 memory
The upcoming changes to the regmap interface will contain a proper check for plausibility when reading/writing from/to a register map. To still have the current tests pass, increase the size of the memory region for the syscon0 device, since one of the tests reads and writes beyond this range. Reviewed-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'test')
-rw-r--r--test/dm/regmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/regmap.c b/test/dm/regmap.c
index d4b86b3b03..b28d6a6cd1 100644
--- a/test/dm/regmap.c
+++ b/test/dm/regmap.c
@@ -25,7 +25,7 @@ static int dm_test_regmap_base(struct unit_test_state *uts)
25 ut_assertok_ptr(map); 25 ut_assertok_ptr(map);
26 ut_asserteq(1, map->range_count); 26 ut_asserteq(1, map->range_count);
27 ut_asserteq(0x10, map->ranges[0].start); 27 ut_asserteq(0x10, map->ranges[0].start);
28 ut_asserteq(4, map->ranges[0].size); 28 ut_asserteq(16, map->ranges[0].size);
29 ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0))); 29 ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0)));
30 30
31 ut_assertok(uclass_get_device(UCLASS_SYSCON, 1, &dev)); 31 ut_assertok(uclass_get_device(UCLASS_SYSCON, 1, &dev));