commit | 9951133e467e1936180263907d51ef42237c7851 | [log] [tgz] |
---|---|---|
author | Cédric Le Goater <clg@kaod.org> | Tue Sep 01 14:21:51 2020 +0200 |
committer | Cédric Le Goater <clg@kaod.org> | Tue Sep 01 14:21:51 2020 +0200 |
tree | df252418a3d39367456d72928d28b5655610fcc7 | |
parent | 57de884d551dda5b58548168e6a88f428dd59524 [diff] |
aspeed/sdmc: Simplify calculation of RAM bits Changes in commit 533eb415df2e ("arm/aspeed: actually check RAM size") introduced a 'valid_ram_sizes' array which can be used to compute the associated bit field value encoding the RAM size. The field is simply the index of the array. Reviewed-by: Joel Stanley <joel@jms.id.au> Message-Id: <20200819100956.2216690-19-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>